/* Tooo AI — SaaS Landing · NTD-Inspired Deep Blue Theme */

:root {
    --primary: #10B981;
    --primary-hover: #34d399;
    --primary-dark: #059669;
    --cyan: #6ee7b7;
    --gradient: linear-gradient(135deg, #10B981 0%, #34d399 50%, #6ee7b7 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(52,211,153,0.06) 100%);
    --dark: #0a0f0d;
    --dark-light: #111a16;
    --dark-card: #141f1a;
    --dark-border: rgba(255,255,255,0.1);
    --text: #FFFFFF;
    --text-light: rgba(255,255,255,0.78);
    --text-muted: rgba(255,255,255,0.5);
    --white: #FFFFFF;
    --radius: 14px;
    --radius-lg: 18px;
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font); font-weight: 400; color: var(--text);
    background: var(--dark); line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    position: relative; overflow-x: hidden;
}

/* ===== BACKGROUND GLOW (lightweight, no animation) ===== */
.bg-animation {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(16,185,129,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(52,211,153,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(110,231,183,0.05) 0%, transparent 50%);
}
.bg-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-content { position: relative; z-index: 1; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: -9999px; top: auto; z-index: 9999; padding: 12px 24px; background: var(--primary); color: #fff; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Multi-language — !important to override any other display rules */
[lang-en], [lang-zh-cn], [lang-zh-tw], [lang-es], [lang-ko] { display: none !important; }
body.lang-en [lang-en] { display: inline !important; }
body.lang-zh-tw [lang-zh-tw] { display: inline !important; }
body.lang-es [lang-es] { display: inline !important; }
body.lang-ko [lang-ko] { display: inline !important; }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(2,44,34,0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16,185,129,0.1);
}
.header-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

nav ul { list-style: none; display: flex; align-items: center; gap: 24px; }
nav a { color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 400; }
nav a:hover { color: var(--white); }
nav a[aria-current="page"] { color: var(--white); }

.nav-cta-btn {
    background: var(--gradient); color: #fff !important; padding: 9px 22px;
    border-radius: 8px; font-weight: 600; font-size: 0.85rem;
}
.nav-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.lang-switch { position: relative; display: inline-block; }
.lang-switch select {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
    padding: 6px 28px 6px 10px; font-size: 0.8rem;
    appearance: none; cursor: pointer; font-family: var(--font);
}
.lang-switch::after {
    content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.7rem; pointer-events: none;
}

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--white); display: block; transition: var(--transition); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; transition: var(--transition);
    cursor: pointer; border: none; text-decoration: none;
}
.btn-gradient { background: var(--gradient); color: #fff; }
.btn-gradient:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(5,150,105,0.3); color: #fff; }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-hover); transform: translateY(-2px); }

/* ===== SECTION ===== */
.section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600; color: #6ee7b7;
    background: rgba(110,231,183,0.1); border: 1px solid rgba(110,231,183,0.18);
    padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 1px;
}
.section-sub { color: var(--text-light); font-size: 1rem; max-width: 560px; line-height: 1.8; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ===== FEATURE CARDS ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: rgba(15,30,51,0.8); border: 1px solid var(--dark-border);
    border-radius: var(--radius); padding: 32px 24px;
    transition: var(--transition); position: relative; overflow: hidden;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient); opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(16,185,129,0.35); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
    background: rgba(15,30,51,0.8); border: 1px solid var(--dark-border);
    border-radius: var(--radius); padding: 36px 28px; text-align: center;
    transition: var(--transition); position: relative;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(5,150,105,0.08) 0%, rgba(15,30,51,0.8) 100%); }
.pricing-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.pricing-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; color: #6ee7b7;
    background: rgba(110,231,183,0.1); padding: 4px 12px; border-radius: 20px;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.pricing-amount { font-size: 2.8rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.pricing-amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin: 20px 0 28px; text-align: left; }
.pricing-features li {
    padding: 8px 0; font-size: 0.88rem; color: var(--text-light);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pricing-features li::before { content: '✓'; color: var(--cyan); font-weight: 700; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: step; }
.step-card {
    background: rgba(15,30,51,0.8); border: 1px solid var(--dark-border);
    border-radius: var(--radius); padding: 32px 24px;
    transition: var(--transition); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.step-card:hover { border-color: rgba(16,185,129,0.2); }
.step-num {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(52,211,153,0.1); color: var(--cyan);
    font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 8px; font-size: 1rem; }
.step-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.7; }

/* ===== NS GUIDE ===== */
.ns-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ns-card {
    background: rgba(15,30,51,0.8); border: 1px solid var(--dark-border);
    border-radius: var(--radius); padding: 28px 24px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: var(--transition);
}
.ns-card:hover { border-color: rgba(16,185,129,0.2); }
.ns-card h3 { margin-bottom: 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.ns-card ol { padding-left: 18px; color: var(--text-light); font-size: 0.85rem; }
.ns-card ol li { margin-bottom: 6px; line-height: 1.7; }

/* ===== REFERRAL ===== */
.referral-highlight {
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.06) 100%);
    border: 1px solid rgba(16,185,129,0.12);
    border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
}
.referral-big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.06) 100%);
    border-top: 1px solid rgba(16,185,129,0.08);
    padding: 80px 0; text-align: center;
}

/* ===== HERO ANIMATIONS (NTD-style) ===== */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-anim > *:nth-child(1) { animation: heroFadeUp 0.7s ease-out 0.1s both; }
.hero-anim > *:nth-child(2) { animation: heroFadeUp 0.7s ease-out 0.25s both; }
.hero-anim > *:nth-child(3) { animation: heroFadeUp 0.7s ease-out 0.4s both; }
.hero-anim > *:nth-child(4) { animation: heroFadeUp 0.7s ease-out 0.55s both; }
.hero-anim > *:nth-child(5) { animation: heroFadeUp 0.7s ease-out 0.7s both; }

/* Gradient text */
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block;
}

/* Card glow on hover */
.feature-card:hover {
    box-shadow: 0 0 30px rgba(16,185,129,0.08), 0 12px 40px rgba(0,0,0,0.3);
}
.pricing-card:hover {
    box-shadow: 0 0 30px rgba(5,150,105,0.08), 0 12px 40px rgba(0,0,0,0.3);
}

/* Scroll fade-in */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
footer {
    background: rgba(2,30,20,0.95); border-top: 1px solid var(--dark-border);
    padding: 40px 0 20px; text-align: center;
    position: relative; z-index: 1;
}
footer p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
footer a { color: var(--text-light); }
footer a:hover { color: var(--cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .menu-toggle { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--dark); transition: right 0.4s ease; box-shadow: -4px 0 30px rgba(0,0,0,0.5); padding: 80px 24px; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 16px; }
    .feature-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .steps-grid, .ns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .referral-highlight { padding: 32px 20px; }
}
