/* =========================================
   Base Variables & Resets
   ========================================= */
:root {
    --primary: #0d9488;       /* Teal */
    --primary-light: #5eead4;
    --primary-dark: #0f766e;
    --secondary: #f59e0b;     /* Amber */
    --secondary-hover: #d97706;
    
    --bg-color: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --font-family: 'Noto Sans TC', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.highlight {
    color: var(--primary);
}

.badge {
    display: inline-block;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary, .btn-secondary, .btn-primary-sm, .btn-primary-large, .btn-outline-light {
    display: inline-block;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 15px 35px;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
}
.btn-primary-sm:hover {
    background: var(--primary-dark);
}

.btn-primary-large {
    background: var(--secondary);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}
.btn-primary-large:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    padding: 16px 40px;
    border: 2px solid white;
    font-size: 1.2rem;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 0.8rem;
    background: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    position: relative;
    top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--primary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #fde68a;
    bottom: 100px;
    left: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-visual {
    flex: 1;
    perspective: 1000px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-warning {
    color: var(--secondary);
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    background: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    align-items: center;
    transition: transform 0.2s ease;
}

.alert-item:hover {
    transform: translateX(10px);
}

.alert-item .icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alert-item.success .icon { background: #d1fae5; color: var(--success); }
.alert-item.warning .icon { background: #fef3c7; color: var(--warning); }
.alert-item.danger .icon { background: #fee2e2; color: var(--danger); }

.alert-item .info {
    display: flex;
    flex-direction: column;
}

.alert-item .info strong {
    font-size: 1rem;
    color: var(--text-main);
}

.alert-item .info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   Sections General
   ========================================= */
.section {
    padding: 100px 0;
}

.section-title {
    max-width: 700px;
    margin: 0 auto 60px;
}

/* =========================================
   Problems Section
   ========================================= */
.problems-section {
    background: white;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.problem-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.problem-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px);
}

.problem-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.problem-card:hover .icon-wrapper {
    transform: rotate(0deg) scale(1.1);
    background: var(--primary);
    color: white;
}

/* =========================================
   How It Works
   ========================================= */
.how-it-works-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.half-width {
    flex: 1;
}

.visual-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.steps-list li {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-left: 4px solid var(--primary);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.step-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Circle Orbit Animation */
.circle-animation {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px dashed rgba(13, 148, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 30s linear infinite;
}

.core-icon {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.4);
    animation: spin-reverse 30s linear infinite; /* keep icon upright */
}

.orbit-item {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--primary-dark);
    animation: spin-reverse 30s linear infinite;
}

.item-1 { top: -35px; left: 50%; transform: translateX(-50%); }
.item-2 { bottom: 20%; right: -20px; }
.item-3 { bottom: 20%; left: -20px; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

/* =========================================
   Features Grid
   ========================================= */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-color);
    transition: var(--transition);
}

.feature-box:hover {
    background: #f0fdfa;
    transform: translateY(-5px);
}

.feature-box .f-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.f-content h3 {
    margin-bottom: 10px;
}
.f-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    color: white;
    padding: 120px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95) 0%, rgba(13, 148, 136, 0.85) 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #111827;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 400px;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.8rem;
    margin-right: 10px;
}

.footer-logo p {
    color: #9ca3af;
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content, .flex-row { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .glass-card { transform: none; margin-top: 40px; }
    .glass-card:hover { transform: none; }
    .steps-list li { text-align: left; }
    .circle-animation { margin-top: 40px; width: 300px; height: 300px; }
    .core-icon { width: 80px; height: 80px; font-size: 2.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .grid-3, .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; /* simple mobile hide for now */ }
    .cta-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 40px; }
}
