/* ============================================================
   ColoCommerce Design System
   Aesthetic: Dark SaaS — Linear meets Vercel
   Typography: Outfit (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* --- Google Fonts loaded in header.php --- */

:root {
    /* Surface */
    --void: #06070b;
    --base: #0a0b10;
    --surface: #0f1017;
    --elevated: #161822;
    --raised: #1e2030;
    --border: #262838;
    --border-light: #2f3248;

    /* Text */
    --text-primary: #e8e9ed;
    --text-secondary: #9399a8;
    --text-muted: #5d6272;
    --text-inverse: #0a0b10;

    /* Accents */
    --violet: #7c5cfc;
    --violet-dim: rgba(124,92,252,0.15);
    --violet-glow: rgba(124,92,252,0.4);
    --mint: #00d4aa;
    --mint-dim: rgba(0,212,170,0.12);
    --ember: #ff6b35;
    --ember-dim: rgba(255,107,53,0.12);
    --gold: #f5c542;
    --gold-dim: rgba(245,197,66,0.12);
    --sky: #38bdf8;
    --sky-dim: rgba(56,189,248,0.12);
    --rose: #f472b6;
    --rose-dim: rgba(244,114,182,0.12);

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #0f1017 0%, #1a1040 40%, #0f1017 100%);
    --grad-violet: linear-gradient(135deg, var(--violet), #a78bfa);
    --grad-mint: linear-gradient(135deg, var(--mint), #34d399);
    --grad-ember: linear-gradient(135deg, var(--ember), #fb923c);
    --grad-mesh: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124,92,252,0.15), transparent),
                 radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0,212,170,0.08), transparent);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(124,92,252,0.2);
    --shadow-glow-mint: 0 0 40px rgba(0,212,170,0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.3s;
    --duration-slow: 0.5s;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--base);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 9999;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); line-height: 1.7; }

.text-gradient {
    background: var(--grad-violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-mint {
    background: var(--grad-mint);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

a {
    color: var(--violet);
    text-decoration: none;
    transition: color var(--duration-fast);
}

a:hover { color: #a78bfa; }

img { max-width: 100%; height: auto; }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
}

.section-header p {
    font-size: 1.1rem;
    margin-top: var(--space-md);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--violet);
    background: var(--violet-dim);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(124,92,252,0.2);
    margin-bottom: var(--space-lg);
}

/* ---- Navigation ---- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,11,16,0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-base);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-logos a {
    display: flex;
    align-items: center;
    transition: filter var(--duration-base);
}

.nav-logos a:hover {
    filter: brightness(1.15);
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.3)) drop-shadow(0 0 32px rgba(255,255,255,0.12));
    transition: filter var(--duration-base);
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.5)) drop-shadow(0 0 44px rgba(255,255,255,0.2));
}

.nav-logo-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--elevated);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--duration-base);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--violet);
    color: white;
    box-shadow: 0 0 20px rgba(124,92,252,0.25);
}

.btn-primary:hover {
    background: #8b6ffd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(124,92,252,0.4);
}

.btn-secondary {
    background: var(--elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--raised);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--violet);
    background: var(--violet-dim);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ---- Cards ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,252,0.3), transparent);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.card:hover::before { opacity: 1; }

.card-glass {
    background: rgba(15,16,23,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Feature icon containers */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.icon-box-violet { background: var(--violet-dim); color: var(--violet); }
.icon-box-mint { background: var(--mint-dim); color: var(--mint); }
.icon-box-ember { background: var(--ember-dim); color: var(--ember); }
.icon-box-gold { background: var(--gold-dim); color: var(--gold); }
.icon-box-sky { background: var(--sky-dim); color: var(--sky); }
.icon-box-rose { background: var(--rose-dim); color: var(--rose); }

/* ---- Badge / Tag ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-violet { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(124,92,252,0.2); }
.badge-mint { background: var(--mint-dim); color: var(--mint); border: 1px solid rgba(0,212,170,0.2); }
.badge-ember { background: var(--ember-dim); color: var(--ember); border: 1px solid rgba(255,107,53,0.2); }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,197,66,0.2); }
.badge-new { background: var(--mint-dim); color: var(--mint); border: 1px solid rgba(0,212,170,0.2); }

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,252,0.12) 0%, transparent 70%);
    filter: blur(60px);
    animation: heroOrb 20s ease-in-out infinite alternate;
}

@keyframes heroOrb {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-40%) translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-visual-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ---- Bento Grid (Features) ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-violet);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.bento-item:hover::after { opacity: 1; }

.bento-span-2 { grid-column: span 2; }
.bento-span-row { grid-row: span 2; }

/* ---- Stats Bar ---- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding: var(--space-3xl) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--violet);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-violet);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.plan-price {
    margin-bottom: var(--space-xl);
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.plan-features li {
    padding: 0.55rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features .check {
    color: var(--mint);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-features .x {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Tool Catalog Grid ---- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.tool-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.tool-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.tool-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: var(--elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Category filter */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.filter-btn {
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    background: var(--elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.filter-btn:hover {
    border-color: var(--violet);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--violet-dim);
    border-color: var(--violet);
    color: var(--violet);
}

/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    background: var(--elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124,92,252,0.08), transparent);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 { margin-bottom: var(--space-md); }
.cta-inner p { margin-bottom: var(--space-2xl); }

/* ---- Footer ---- */
.site-footer {
    background: var(--void);
    border-top: 1px solid var(--border);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: var(--space-md);
    max-width: 320px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: var(--space-lg);
}

.footer-logos img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.22)) drop-shadow(0 0 28px rgba(255,255,255,0.08));
    transition: filter var(--duration-base);
}

.footer-logos img:hover {
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.38)) drop-shadow(0 0 36px rgba(255,255,255,0.14));
}

.footer-logo-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--duration-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--violet);
}

/* ---- Page Header (interior pages) ---- */
.page-header {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-header-content h1 {
    margin-bottom: var(--space-md);
}

/* ---- Contact Form ---- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--duration-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-dim);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%239399a8' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* ---- Comparison Table ---- */
.comparison-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    min-width: 700px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.comparison-table th {
    background: var(--elevated);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tr:hover td {
    background: var(--elevated);
}

.comparison-table .cat-row td {
    background: var(--raised);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Accordion / FAQ ---- */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question .arrow {
    transition: transform var(--duration-base);
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 var(--space-xl) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- About Page specific ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 5px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--violet);
    border: 3px solid var(--base);
}

.timeline-item h4 {
    margin-bottom: var(--space-xs);
}

.timeline-item p {
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-span-2 { grid-column: span 1; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }

    /* Mobile menu */
    .nav-links.open,
    .nav-cta.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: var(--space-lg) var(--space-xl);
        gap: var(--space-sm);
        z-index: 999;
    }

    .nav-cta.open {
        top: auto;
        bottom: 0;
        border-top: 1px solid var(--border);
        border-bottom: none;
        flex-direction: row;
        justify-content: stretch;
    }

    .nav-cta.open .btn { flex: 1; text-align: center; }

    section { padding: var(--space-3xl) 0; }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-span-2 { grid-column: span 1; }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .container { padding: 0 var(--space-lg); }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 7rem 0 3rem; }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn { flex-shrink: 0; }
}
