/* =============================================
   ASSAM UTILITY HUB — White Light Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* Color Palette — Light Theme Base */
    --black:       #FFFFFF;
    --black-soft:  #f1f5f9; 
    --black-card:  #FFFFFF;
    --black-glass: rgba(0, 0, 0, 0.9); /* Darkened for top-nav glass */
    --green:       #10B981;
    --green-light: #34D399;
    --green-dim:   rgba(16, 185, 129, 0.1);
    --green-glow:  rgba(16, 185, 129, 0.2);
    --yellow:      #FBBF24;
    --yellow-dim:  rgba(251, 191, 36, 0.1);
    --yellow-glow: rgba(251, 191, 36, 0.2);
    --white:       #000000; 
    --text:        #0f172a; /* Body text near-black */
    --muted:       #475569; 
    --border:      rgba(15, 23, 42, 0.08);
    --border-str:  rgba(16, 185, 129, 0.2); /* Tinted with brand green */

    /* Pure Black & Brand Theme (Navigation & Footer) */
    --nav-bg:      #000000; /* Pure Black for strong differentiation */
    --nav-text:    #f8fafc; /* Slate-50 */
    --nav-muted:   #94a3b8; /* Slate-400 */
    --nav-border:  rgba(16, 185, 129, 0.15); /* Subtle brand green border */

    /* Typography */
    --font: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Effects */
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.07);
    --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.1);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;

    /* Layout */
    --max-width: 1180px;
    --nav-h: 150px; /* Increased for 2nd row nav */
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: #FFFFFF;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F3F6F4; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* =============================================
   BACKGROUND
   ============================================= */
.bg-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 10% 20%, rgba(5,150,105,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(202,138,4,0.04) 0%, transparent 70%),
        #FFFFFF;
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
    background-image:
        linear-gradient(var(--green) 1px, transparent 1px),
        linear-gradient(90deg, var(--green) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =============================================
   LAYOUT
   ============================================= */
.app-container { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; width: 100%; }
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}
main { flex: 1; }

/* =============================================
   NAVIGATION
   ============================================= */
.top-nav {
    position: sticky; top: 0; z-index: 1000;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--nav-border);
    display: flex; flex-direction: column;
}

/* Row 1: Logo & Potential Actions */
.nav-top-bar {
    height: 65px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--nav-border);
}

/* Row 2: Menu Items */
.nav-bottom-bar {
    height: auto;
    min-height: 50px;
    display: flex; align-items: center;
    padding: 0.4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.nav-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 2rem; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

/* Logo specific tweak for top bar */
.nav-top-bar .nav-inner { justify-content: center; } /* Centers logo by default, or change to space-between if adding search */

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    display: grid; place-items: center;
    font-size: 0.9rem; font-weight: 900; color: #000;
}
.nav-logo-text { font-size: 1.15rem; font-weight: 800; color: #FFFFFF; letter-spacing: -0.4px; }
.nav-logo-text span { 
    background: linear-gradient(135deg, var(--green), var(--yellow));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; 
}

/* Menu specific tweak for bottom bar */
.nav-bottom-bar .nav-inner { justify-content: center; }
/* Desktop Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem 0.5rem;
    max-width: 1180px;
    margin: 0 auto;
}
.nav-links a {
    display: flex; align-items: center; gap: 6px;
    padding: 0.4rem 0.8rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; color: var(--nav-muted);
    transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links li.active a {
    color: #FFFFFF;
    background: rgba(16, 185, 129, 0.08); /* Green tinted hover */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}
.nav-links li.active a { color: var(--green-light); font-weight: 700; }

/* Navigation Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav Active States (Toggle On) */
.nav-active .menu-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-active .menu-toggle .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-active .menu-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
    :root { --nav-h: 64px; }
    
    .menu-toggle { display: flex; }

    .nav-top-bar { height: var(--nav-h); position: relative; z-index: 1002; }
    .nav-top-bar .nav-inner { justify-content: space-between !important; }

    .nav-bottom-bar {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #000000;
        display: flex; align-items: center; justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        padding: 80px 1.5rem 2rem;
    }
    .nav-active .nav-bottom-bar { transform: translateY(0); }

    .nav-bottom-bar .nav-inner { 
        height: 100%; width: 100%; max-width: 400px;
        display: flex; flex-direction: column; 
        justify-content: flex-start; align-items: center; 
    }
    .nav-bottom-bar nav { width: 100%; }

    .nav-links {
        display: flex !important; flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100%; padding: 0;
        gap: 0.5rem !important;
        max-height: calc(100vh - 140px);
        overflow-y: auto; text-align: center;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        font-size: 1.15rem !important; justify-content: center;
        padding: 0.7rem !important;
        color: #FFFFFF !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links svg { width: 18px; height: 18px; }
    
    .top-nav { position: relative !important; }
}

/* =============================================
   FOOTER
   ============================================= */
.bottom-footer {
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    padding: 4rem 2rem;
    color: var(--nav-muted);
}
@media (max-width: 768px) {
    .bottom-footer { padding: 3rem 1.5rem; }
    .footer-links { gap: 2.5rem !important; }
    .footer-link-col { min-width: 140px; }
    .footer-bottom { padding-top: 2rem; }
}

/* =============================================
   FOOTER
   ============================================= */
.bottom-footer {
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    padding: 4rem 2rem;
    color: var(--nav-muted);
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; flex-direction: column; gap: 4rem;
}
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.footer-link-col { display: flex; flex-direction: column; gap: 0.8rem; min-width: 160px; }
.footer-link-title { font-size: 0.72rem; font-weight: 800; color: #FFFFFF; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: var(--nav-muted); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-bottom {
    padding-top: 3rem; border-top: 1px solid var(--nav-border);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    text-align: center;
}
.footer-badge {
    font-size: 0.78rem; color: var(--nav-muted);
    background: rgba(16, 185, 129, 0.05); border: 1px solid var(--nav-border);
    padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
    font-family: var(--mono);
    align-self: center;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    padding: 6rem 2rem 5rem;
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; min-height: calc(100vh - var(--nav-h));
}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding: 4rem 1rem 3rem; min-height: auto; }
    .hero-left { align-items: center; }
    .hero-eyebrow { margin: 0 auto; }
    .hero-desc { margin: 0 auto; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; gap: 2rem; }
}

.hero-left { display: flex; flex-direction: column; gap: 1.8rem; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    width: fit-content;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: var(--green-dim);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-pill);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-light);
}
.hero-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 900; line-height: 1.08;
    color: #111111; letter-spacing: -1.5px;
}
.hero-title .hl {
    background: linear-gradient(135deg, var(--green) 0%, var(--yellow) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; display: inline-block;
}

.hero-desc {
    font-size: 1.05rem; color: var(--muted); line-height: 1.8;
    max-width: 460px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.85rem 1.8rem;
    background: var(--green);
    color: #fff; font-weight: 800; font-size: 0.95rem;
    border-radius: var(--radius-md); border: none; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-primary:hover { 
    background: var(--yellow);
    color: #111111;
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(253, 224, 71, 0.3); 
}
.btn-primary svg { transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.85rem 1.8rem;
    background: transparent;
    color: #111111; font-weight: 700; font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1.5px solid #d1d5db; cursor: pointer;
    transition: all 0.25s ease;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-dim); }

/* Hero Stats */
.hero-stats { display: flex; gap: 2rem; padding-top: 0.5rem; }
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.5rem; font-weight: 900; color: #111111; letter-spacing: -0.5px; }
.stat-num span { color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Hero Right - Tool Showcase Grid */
.hero-right { display: flex; flex-direction: column; gap: 1rem; }

.hero-tool-card {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: #F9FBF9;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer; text-decoration: none; color: inherit;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative; overflow: hidden;
}
.hero-tool-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, var(--green), var(--yellow));
    border-radius: 0 2px 2px 0; opacity: 0;
    transition: opacity 0.25s;
}
.hero-tool-card:hover { border-color: var(--border-str); transform: translateX(6px); background: #F0FAF6; }
.hero-tool-card:hover::before { opacity: 1; }

.htc-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--green-dim); border: 1px solid var(--border);
    display: grid; place-items: center;
}
.htc-body { flex: 1; min-width: 0; }
.htc-name { font-size: 0.92rem; font-weight: 700; color: #111111; margin-bottom: 2px; }
.htc-desc { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htc-arrow { color: var(--muted); flex-shrink: 0; transition: all 0.25s; }
.hero-tool-card:hover .htc-arrow { color: var(--green); transform: translateX(3px); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center; margin-bottom: 4rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.35rem 1rem;
    background: var(--green-dim); border: 1px solid var(--border-str);
    border-radius: var(--radius-pill);
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--green);
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900; color: #111111; letter-spacing: -0.8px;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* =============================================
   TOOLS SECTION
   ============================================= */
.tools-section { padding: 6rem 2rem; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card { padding: 1.5rem; }
    .section-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .tools-section { padding: 3rem 0; }
    .why-section { padding: 3rem 0; }
}

.tool-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    text-decoration: none; color: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.tool-card::after {
    content: ''; position: absolute;
    inset: 0; border-radius: var(--radius-xl);
    background: radial-gradient(ellipse at 30% 0%, var(--green-dim) 0%, transparent 65%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.tool-card:hover { border-color: var(--border-str); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1), var(--shadow-glow); }
.tool-card:hover::after { opacity: 1; }

.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tc-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: var(--green-dim); border: 1px solid var(--border-str);
    display: grid; place-items: center;
}
.tc-badge {
    padding: 0.28rem 0.75rem;
    background: rgba(202, 138, 4, 0.1); border: 1px solid rgba(202, 138, 4, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--yellow);
    white-space: nowrap;
}
.tc-body { display: flex; flex-direction: column; gap: 0.5rem; }
.tc-title { font-size: 1.2rem; font-weight: 800; color: #111111; margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.tc-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

.tc-features { display: flex; flex-direction: column; gap: 0.5rem; }
.tc-feat {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.83rem; color: var(--text); font-weight: 500;
}
.tc-feat-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--yellow));
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.tc-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--green);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem; font-weight: 800; color: #fff;
    transition: all 0.25s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.tool-card:hover .tc-cta { 
    background: var(--yellow); 
    color: #111111; 
    box-shadow: 0 6px 15px rgba(253, 224, 71, 0.25);
}
.tc-cta-arrow { transition: transform 0.25s; }
.tool-card:hover .tc-cta-arrow { transform: translateX(4px); }

/* =============================================
   STATS / TRUST BAR
   ============================================= */
.trust-bar {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #F3F6F4;
}
.trust-bar .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem; text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 0.5rem; }
.trust-num {
    font-size: 2.2rem; font-weight: 900; color: var(--white);
    letter-spacing: -1px; margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--green) 0%, var(--yellow) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.trust-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   WHY US SECTION
   ============================================= */
.why-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, #F3F6F4 30%, #F3F6F4 70%, transparent);
}
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}
.why-card {
    padding: 1.8rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex; flex-direction: column; gap: 1rem;
    transition: border-color 0.2s;
    box-shadow: var(--shadow-card);
}
.why-card:hover { border-color: var(--border-str); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.why-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--green-dim); border: 1px solid var(--border-str);
    display: grid; place-items: center;
}
.why-title { font-size: 1rem; font-weight: 800; color: #111111; }
.why-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* =============================================
   TOOL DETAIL PAGE (inner pages)
   ============================================= */
.page-header {
    padding: 3rem 2rem 2rem;
    max-width: var(--max-width); margin: 0 auto;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.page-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 600; color: var(--muted);
    transition: color 0.2s; width: fit-content;
}
.page-back:hover { color: var(--green); }
.page-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    width: fit-content; padding: 0.3rem 0.9rem;
    background: var(--green-dim); border: 1px solid var(--border-str);
    border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--green);
}
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; color: #111111; letter-spacing: -0.8px; line-height: 1.15;
}
.page-title .hl {
    background: linear-gradient(135deg, var(--green) 0%, var(--yellow) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-desc { font-size: 1rem; color: var(--muted); max-width: 540px; line-height: 1.75; }

/* =============================================
   TOOL PAGE TWO-COLUMN LAYOUT
   ============================================= */
.tool-page-body {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .tool-page-body { grid-template-columns: 1fr; padding-bottom: 4rem; gap: 1.5rem; }
    .tool-form-card { position: static !important; padding: 1.75rem; width: 100% !important; max-width: none !important; margin-bottom: 0 !important; }
    .tool-info-panel { order: 2; width: 100% !important; }
    .info-card { margin-bottom: 0 !important; }
    .page-header { padding: 2rem 1.5rem 1.5rem; }
    .page-title { font-size: 1.8rem; }
    .page-desc { font-size: 0.95rem; }
}

/* Sticky form card — LEFT */
.tool-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    position: sticky; top: calc(var(--nav-h) + 1.5rem);
}

/* Info panel — RIGHT */
.tool-info-panel { display: flex; flex-direction: column; gap: 1.5rem; }

/* Info card */
.info-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden; transition: border-color 0.2s;
    box-shadow: var(--shadow-card);
}
.info-card:hover { border-color: var(--border-str); }
.info-card-header {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
    background: #F9FBF9;
}
.info-card-icon {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    background: var(--green-dim); border: 1px solid var(--border-str);
    display: grid; place-items: center;
}
.info-card-title { font-size: 0.86rem; font-weight: 800; color: #111111; }
.info-card-body { padding: 1.2rem 1.4rem; }

/* Reference table */
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table tr { border-bottom: 1px solid var(--border); }
.ref-table tr:last-child { border-bottom: none; }
.ref-table td { padding: 0.6rem 0.4rem; font-size: 0.83rem; }
.ref-table td:first-child { color: var(--muted); font-weight: 600; }
.ref-table td:last-child { color: #111111; font-weight: 700; text-align: right; font-family: var(--mono); }
.ref-table .ref-hl { color: var(--green) !important; }

/* Tip list */
.tip-list { display: flex; flex-direction: column; gap: 0.75rem; }
.tip-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.tip-num {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green-dim); border: 1px solid var(--border-str);
    color: var(--green); font-size: 0.65rem; font-weight: 800;
    display: grid; place-items: center; margin-top: 2px;
}

/* Phonetic guide grid */
.phonetic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.pg-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.4rem 0.55rem;
    background: #F3F6F4; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.pg-en { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); font-weight: 600; }
.pg-as { font-size: 0.9rem; color: var(--yellow); font-family: serif; font-weight: 700; }

/* Formula block */
.formula-block {
    background: #F3F6F4; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 0.8rem;
}
.formula-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 0.35rem; }
.formula-expr { font-size: 0.83rem; color: var(--green); font-family: var(--mono); line-height: 1.7; }

/* Also keep .tool-card for backwards compat */
.tool-card {
    background: #FFFFFF; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2.5rem;
    max-width: 680px; margin: 0 auto 6rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}

.input-group { margin-bottom: 1.5rem; }
.input-group label {
    display: block; margin-bottom: 0.6rem;
    font-size: 0.78rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px;
}
input, select, textarea {
    width: 100%; padding: 0.85rem 1.1rem;
    background: #F9FBF9;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    color: #111111;
    font-family: var(--font); font-size: 1rem; font-weight: 500;
    transition: all 0.2s ease;
    appearance: none;
}
input:hover, select:hover { border-color: var(--border-str); }
input:focus, select:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
select option { background: #FFFFFF; color: #111111; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(5,150,105,0.06), rgba(202,138,4,0.04));
    border: 1.5px solid var(--border-str);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
}
.result-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--green), #FDE047);
}
.result-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 0.5rem; }
.result-val { font-size: 2.2rem; font-weight: 900; color: #111111; font-family: var(--mono); letter-spacing: -1.5px; line-height: 1.2; }
.result-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.7; }

.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--green);
    color: #fff; font-weight: 800; font-size: 0.95rem;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
    font-family: var(--font); letter-spacing: 0.3px;
    text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4); }

/* hero header used on tool pages */
.hero-header { padding: 0; margin-bottom: 2rem; }
.hero-header h1 { font-size: 2.4rem; font-weight: 900; color: #111111; letter-spacing: -0.5px; }
.highlight-text {
    background: linear-gradient(135deg, var(--green) 0%, var(--yellow) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.35rem 0.9rem;
    background: var(--green-dim); border: 1px solid var(--border-str);
    border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--green);
    margin-bottom: 1rem;
}
.hero-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 560px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.anim-up  { animation: fadeUp  0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.anim-in  { animation: fadeIn  0.5s ease both; }
.delay-1  { animation-delay: 0.1s; }
.delay-2  { animation-delay: 0.2s; }
.delay-3  { animation-delay: 0.3s; }
.delay-4  { animation-delay: 0.4s; }
.delay-5  { animation-delay: 0.5s; }
.delay-6  { animation-delay: 0.6s; }
.delay-7  { animation-delay: 0.7s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 4rem 1.5rem 3rem; gap: 3rem; }
    .hero-right { display: none; }
    .hero-stats { gap: 1.5rem; }
    .nav-links { display: none; }
    .tools-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2.4rem; }
    .hero-stats { flex-wrap: wrap; }
    .why-grid { grid-template-columns: 1fr; }
    .trust-bar .container { grid-template-columns: 1fr 1fr; }
    .tool-card { padding: 1.5rem; }
    .nav-inner { padding: 0 1rem; }
    .footer-inner { gap: 2.5rem; padding: 2.5rem 1.5rem; }
    .footer-links { gap: 2rem; }
    .footer-link-col { min-width: 100%; }
}
/* =============================================
   LEGAL / CONTENT PAGES
   ============================================= */
.legal-page-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}
.legal-content {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-card);
}
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.5px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.legal-content ul, .legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--muted);
}
.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.legal-content strong {
    color: var(--text);
    font-weight: 700;
}
.legal-content a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.legal-content a:hover {
    color: var(--green-light);
}

@media (max-width: 600px) {
    .legal-content { padding: 2rem 1.5rem; }
    .legal-content h2 { font-size: 1.3rem; }
}

/* =============================================
   TYPING TEST STYLES
   ============================================= */
.typing-test-container {
    padding: 2.5rem;
    background: var(--black-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.typing-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.typing-stats {
    display: flex;
    gap: 1.25rem;
}

.typing-stat-card {
    background: var(--green-dim);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-str);
    min-width: 120px;
    text-align: center;
    transition: transform 0.3s ease;
}

.typing-stat-card:hover { transform: translateY(-3px); }

.typing-stat-val {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1.2;
}

.typing-stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.typing-text-display {
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--muted);
    height: 220px;
    overflow-y: auto;
    padding: 2rem;
    background: #f9fafb;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    user-select: none;
    font-family: serif;
    position: relative;
}

.typing-text-display span {
    position: relative;
    transition: all 0.1s;
    border-radius: 4px;
}

.typing-text-display span.correct {
    color: var(--green);
}

.typing-text-display span.incorrect {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.typing-text-display span.current {
    color: var(--white);
    background: var(--yellow-glow);
    border-bottom: 3px solid var(--yellow);
}

.typing-input-wrapper {
    position: relative;
}

#typeInput {
    width: 100%;
    background: var(--black-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    color: var(--white);
    font-size: 1.4rem;
    font-family: var(--font);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#typeInput:focus {
    border-color: var(--green);
    background: var(--black);
    box-shadow: 0 0 25px rgba(5, 150, 105, 0.1);
}

.typing-result-overlay {
    margin-top: 3rem;
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.typing-result-overlay.show { display: block; }

.result-card {
    background: linear-gradient(135deg, var(--green-dim) 0%, var(--yellow-glow) 100%);
    border: 1px solid var(--border-str);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.result-header {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =============================================
   TYPING TEST REFINEMENTS
   ============================================= */
.lang-pill {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--black-soft);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.lang-pill:hover {
    border-color: var(--green-light);
    color: var(--green);
    background: var(--green-dim);
    transform: translateY(-1px);
}

.lang-pill.active {
    background: var(--green);
    border-color: var(--green);
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.typing-text-display::-webkit-scrollbar {
    width: 4px;
}

.typing-text-display::-webkit-scrollbar-thumb {
    background: var(--green-dim);
    border-radius: 10px;
}

.typing-text-display::-webkit-scrollbar-thumb:hover {
    background: var(--green-light);
}

#typeInput::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

.result-card .btn {
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.15);
}

@media (max-width: 768px) {
    .typing-stat-card {
        min-width: 100px;
        padding: 0.75rem;
    }
    .typing-stat-val {
        font-size: 1.4rem;
    }
    .typing-text-display {
        font-size: 1.4rem;
        height: 200px;
    }
}

/* =============================================
   SEO CONTENT SECTION (Tool Detail Expansion)
   ============================================= */
.seo-content-section {
    padding: 6rem 2rem;
    background: rgba(16, 185, 129, 0.01);
    border-top: 1px solid var(--border);
}
.seo-content-inner {
    max-width: 900px;
    margin: 0 auto;
}
.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.seo-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.seo-block p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.seo-block ul {
    list-style: none;
    padding: 0;
}
.seo-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    color: var(--muted);
}
.seo-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s;
}
.faq-item:hover { transform: translateY(-3px); border-color: var(--border-str); }
.faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.75rem;
    display: block;
}
.faq-answer {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .seo-content-section { padding: 4rem 1.5rem; }
    .seo-content-grid { gap: 2rem; }
}
