/* ============================================================
   Your AI-Assisted Automation app – Site Styles  |  Your AI-Assisted Automation app
   ============================================================ */

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

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

:root {
    --bg-deep:       #08090f;
    --bg-navy:       #0e0f1c;
    --bg-mid:        #141529;
    --bg-card:       rgba(20, 21, 41, 0.75);
    --bg-card-hover: rgba(26, 28, 54, 0.90);
    --accent:        #00BCD4;
    --accent-dark:   #1976D2;
    --accent-glow:   rgba(0, 188, 212, 0.25);
    --accent-2:      #4FC3F7;
    --text:          #dde2f0;
    --text-muted:    #7a82a8;
    --text-dim:      #4a5070;
    --border:        rgba(255, 255, 255, 0.07);
    --border-accent: rgba(0, 188, 212, 0.35);
    --radius:        10px;
    --radius-lg:     16px;
    --shadow-glow:   0 0 40px rgba(233, 69, 96, 0.12);
    --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);
    --font-display:  'Inter', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
    --max-width:     1140px;
    --nav-h:         68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(76px + 18px); }

body {
    position: relative;
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 15% 0%, rgba(0, 188, 212, 0.08), transparent 34rem);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
    background-attachment: fixed;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-navy); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Fixed faint background branding */
body::after {
    content: '';
    position: fixed;
    top: clamp(6rem, 14vh, 10rem);
    right: clamp(1rem, 5vw, 4rem);
    width: min(42vw, 620px);
    height: min(42vw, 620px);
    background: url('../img/icon.svg') center / contain no-repeat;
    opacity: 0.09;
    filter: saturate(0.7) drop-shadow(0 0 44px rgba(0, 188, 212, 0.18));
    pointer-events: none;
    z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff7a90; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(79, 195, 247, 0.95);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 6000;
    transform: translateY(-160%);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    color: #07111f;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    color: #07111f;
}

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.75rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    height: var(--nav-h);
    background: linear-gradient(180deg, rgba(8, 9, 15, 1), rgba(8, 9, 15, 0.99));
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.32);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    isolation: isolate;
}
.site-header.scrolled {
    background: rgba(8, 9, 15, 0.995);
    border-bottom-color: rgba(255,255,255,0.16);
    box-shadow: 0 1px 0 var(--border), 0 10px 32px rgba(0,0,0,0.62);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
}
.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 188, 212, 0.22));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.brand-tagline {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.18rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    max-height: calc(var(--nav-h) - 10px);
    overflow: visible;
    padding: 0.18rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 36px rgba(0,0,0,0.20);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.05rem;
    padding: 0.34rem 0.62rem;
    font-size: clamp(0.74rem, 0.66vw, 0.84rem);
    font-weight: 600;
    color: rgba(244,247,251,0.90);
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
    letter-spacing: 0.005em;
    white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.11); transform: translateY(-1px); }
.nav-link--cta {
    color: #061018;
    border: 1px solid rgba(0,188,212,0.55);
    background: linear-gradient(135deg, var(--accent), #7b61ff);
    box-shadow: 0 0 18px rgba(0,188,212,0.24);
    padding: 0.34rem 0.76rem;
}
.nav-link--cta:hover { background: linear-gradient(135deg, #33d6ea, #947eff); color: #fff; border-color: rgba(255,255,255,0.24); }
.nav-link--external::after { content: " ↗"; font-size: 0.7em; opacity: 0.6; }
.nav-menu-item { position: relative; }
.nav-menu { position: relative; }
.nav-menu-trigger { cursor: pointer; list-style: none; }
.nav-menu-trigger::-webkit-details-marker { display: none; }
.nav-menu-trigger::after {
    content: "⌄";
    margin-left: 0.35rem;
    font-size: 0.78em;
    opacity: 0.72;
    transition: transform 0.2s;
}
.nav-menu[open] .nav-menu-trigger::after { transform: rotate(180deg); }
.nav-submenu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 5100;
    min-width: 12rem;
    padding: 0.4rem;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background: rgba(10, 13, 23, 0.96);
    box-shadow: 0 22px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.nav-submenu-link {
    display: block;
    padding: 0.62rem 0.78rem;
    border-radius: 12px;
    color: rgba(244,247,251,0.88);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-submenu-link:hover { color: #fff; background: rgba(0,188,212,0.13); }

.site-header, main, .site-footer { position: relative; }
main, .site-footer { z-index: 1; }
main:focus { outline: none; }
main section[id], main h1[id], main h2[id], main h3[id] { scroll-margin-top: calc(76px + 18px); }

@media (max-width: 980px) {
    .site-header { height: auto; min-height: 76px; background: #08090f; }
    .header-inner { height: auto; min-height: 76px; align-items: flex-start; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-direction: column; }
    .brand { width: 100%; overflow: visible; }
    .brand-name { font-size: clamp(0.98rem, 4.4vw, 1.2rem); line-height: 1.08; overflow-wrap: anywhere; }
    .brand-tagline { font-size: clamp(0.54rem, 2.4vw, 0.62rem); overflow-wrap: anywhere; }
    .site-nav { width: 100%; }
    .nav-list { align-items: flex-start; justify-content: flex-start; max-height: none; overflow-x: auto; overflow-y: visible; flex-wrap: nowrap; padding-bottom: 0.25rem; scrollbar-width: thin; }
    .nav-menu { display: inline-flex; flex-direction: column; align-items: flex-start; }
    .nav-link { white-space: nowrap; background: rgba(255,255,255,0.045); }
    .nav-menu[open] .nav-submenu {
        position: static;
        min-width: 10.5rem;
        width: max-content;
        margin-top: 0.35rem;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    .nav-link--cta,
    .nav-link--cta:visited { color: #061018; background: linear-gradient(135deg, var(--accent), #7b61ff); border-color: rgba(0,188,212,0.55); }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header, .site-header.scrolled {
        background: #08090f;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ============================================================
   PAGE HEADER BAND
   ============================================================ */
.page-band {
    position: relative;
    background: linear-gradient(155deg, var(--bg-mid) 0%, var(--bg-navy) 60%, var(--bg-deep) 100%);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    overflow: hidden;
}
.page-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(233,69,96,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% -20%, rgba(123,97,255,0.08) 0%, transparent 60%);
}
.page-band::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.page-band .container { position: relative; }
.page-band h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}
.page-band p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-deep);
}
.hero::before {
    content: '';
    position: absolute;
    top: clamp(4rem, 9vh, 7rem);
    left: 50%;
    width: min(42vw, 46vh, 520px);
    height: min(42vw, 46vh, 520px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: url('../img/icon.svg') center / contain no-repeat;
    opacity: 0.12;
    filter: drop-shadow(0 0 44px rgba(0, 188, 212, 0.18));
    pointer-events: none;
}

/* Animated grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
/* Radial glow blobs */
.hero-glow-1 {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,69,96,0.18) 0%, transparent 65%);
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    animation: pulse-blob 6s ease-in-out infinite;
}
.hero-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,97,255,0.12) 0%, transparent 65%);
    top: 60%; left: 65%;
    transform: translate(-50%, -50%);
    animation: pulse-blob 8s ease-in-out infinite reverse;
}
@keyframes pulse-blob {
    0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Floating particles */
.hero-particles {
    position: absolute; inset: 0; overflow: hidden;
}
.hero-particles span {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: float-dot var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes float-dot {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

.hero-content {
    position: relative;
    max-width: 780px;
    padding: 2rem 1.5rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding: 0.35rem 1rem;
    border: 1px solid var(--border-accent);
    border-radius: 99px;
    background: rgba(233,69,96,0.08);
    animation: fade-up 0.8s both;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fade-up 0.8s 0.1s both;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-copy {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    font-weight: 300;
    animation: fade-up 0.8s 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 0.8s 0.3s both;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fade-up 1s 0.8s both;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%,100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
    background: #ff5a74;
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(233,69,96,0.3);
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233,69,96,0.06);
}
.btn--ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border-color: var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.btn--sm { padding: 0.45rem 1.1rem; font-size: 0.82rem; }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-navy); }
.section--tight { padding: 3rem 0; }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-copy {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.75;
    font-weight: 300;
}
.text-center { text-align: center; }
.text-center .section-copy { margin: 0 auto; }

/* Divider line */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233,69,96,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), 0 0 30px var(--accent-glow);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: rgba(233,69,96,0.12);
    border: 1px solid rgba(233,69,96,0.2);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}
.feature-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   EXPLORE CARDS
   ============================================================ */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}
.explore-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(12px);
}
.explore-card:hover {
    border-left-color: var(--accent);
    transform: translateX(3px);
    box-shadow: var(--shadow-card);
}
.explore-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.explore-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   DOWNLOAD CARDS
   ============================================================ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.download-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}
.download-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.download-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}
.download-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s, transform 0.25s;
}
.contact-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.contact-card .icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); }
.contact-card a { color: var(--accent); }
.contact-card a:hover { color: #ff7a90; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    gap: 1rem;
}
.faq-q h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}
.faq-chevron {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s;
    padding: 0 1.5rem;
}
.faq-a p { padding-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; }

/* ============================================================
   ALERT / INFO BOXES
   ============================================================ */
.alert {
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    border: 1px solid;
}
.alert--info {
    background: rgba(123,97,255,0.08);
    border-color: rgba(123,97,255,0.25);
    color: #b0a8ff;
}
.alert--warning {
    background: rgba(255,196,0,0.07);
    border-color: rgba(255,196,0,0.25);
    color: #ffd666;
}
.alert--danger {
    background: rgba(233,69,96,0.08);
    border-color: rgba(233,69,96,0.25);
    color: #ff8a9f;
}
.alert h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.alert p { font-size: 0.875rem; line-height: 1.6; }

/* ============================================================
   SYSTEM REQUIREMENTS TABLE
   ============================================================ */
.req-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.req-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.req-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ============================================================
   PROSE / LEGAL PAGES
   ============================================================ */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.75rem;
}
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}
.prose ul, .prose ol { padding-left: 1.5rem; }

/* ============================================================
   PORTAL PAGES
   ============================================================ */
.portal-shell {
    min-height: calc(100vh - var(--nav-h));
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(circle at top left, rgba(0,188,212,0.16), transparent 36rem),
        radial-gradient(circle at 85% 10%, rgba(79,195,247,0.10), transparent 28rem),
        var(--bg-deep);
}
.portal-container { max-width: 980px; }
.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(14px);
}
.portal-card h2 {
    margin-top: 0;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.portal-card p, .portal-card small { color: var(--text-muted); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 700; color: #fff; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-sizing: border-box;
    background: rgba(255,255,255,0.055);
    color: var(--text);
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,188,212,0.12); }
.btn {
    display: inline-block;
    padding: 0.68rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #07111f; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--border); }
.btn:hover { transform: translateY(-1px); opacity: 0.96; }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: rgba(220,38,38,0.14); color: #fecaca; border: 1px solid rgba(248,113,113,0.45); }
.alert-success { background: rgba(22,163,74,0.14); color: #bbf7d0; border: 1px solid rgba(74,222,128,0.45); }
.nav-links { margin-bottom: 1.5rem; display:flex; flex-wrap:wrap; gap:0.75rem; }
.nav-links a { color: var(--accent); }
.portal-card table { width: 100%; border-collapse: collapse; }
.portal-card th,
.portal-card td { padding: 0.65rem; text-align: left; border-bottom: 1px solid var(--border); }
.portal-card th { background: rgba(255,255,255,0.045); font-weight: 700; color: #fff; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.8rem; }
.badge-active { background: rgba(22,163,74,0.18); color: #bbf7d0; }
.badge-inactive { background: rgba(220,38,38,0.18); color: #fecaca; }
.bootstrap-note {
    background: rgba(0,188,212,0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

/* ============================================================
   DOCUMENTATION PAGE
   ============================================================ */
.doc-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - var(--nav-h));
    gap: 0;
}

.doc-sidebar {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--bg-navy);
    border-right: 1px solid var(--border);
    padding: 2rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    transition: width 0.22s ease, padding 0.22s ease;
}
.doc-sidebar-toggle {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    background: rgba(0,188,212,0.08);
    color: #fff;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.doc-sidebar-toggle::after { content: '−'; float: right; color: var(--accent); }
.doc-sidebar.is-collapsed .doc-sidebar-toggle::after { content: '+'; }
.doc-sidebar.is-collapsed .doc-sidebar-body { display: none; }
.doc-sidebar::-webkit-scrollbar { width: 4px; }
.doc-sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.doc-sidebar-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}
.doc-sidebar-group { margin-bottom: 1.5rem; }
.doc-sidebar-nav { list-style: none; }
.doc-sidebar-nav li + li { margin-top: 0.1rem; }
.doc-sidebar-nav a {
    display: block;
    padding: 0.4rem 0.7rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.doc-sidebar-nav a:hover,
.doc-sidebar-nav a.active { color: var(--accent); background: rgba(233,69,96,0.08); }
.doc-sidebar-nav--depth-1 { margin: 0.15rem 0 0.45rem 0.7rem; border-left: 1px solid var(--border); padding-left: 0.45rem; }
.doc-sidebar-nav--depth-1 a { font-size: 0.78rem; padding-block: 0.28rem; }

.doc-main {
    padding: 3rem 3rem 5rem;
    max-width: 900px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}
.doc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 1rem;
    color: var(--text-muted);
}
.doc-spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Rendered markdown styles */
.doc-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.doc-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.doc-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.5rem;
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.doc-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 1.25rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.doc-content p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.doc-content ul, .doc-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.doc-content li {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.3rem;
}
.doc-content li::marker { color: var(--accent); }
.doc-content strong { color: var(--text); font-weight: 600; }
.doc-content em { color: var(--text-muted); font-style: italic; }
.doc-content a { color: var(--accent); border-bottom: 1px solid var(--border-accent); }
.doc-content a:hover { color: #ff7a90; border-color: #ff7a90; }
.doc-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}
.doc-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(233,69,96,0.05);
    border-radius: 0 8px 8px 0;
}
.doc-content blockquote p { margin: 0; color: var(--text-muted); font-style: italic; }
.doc-content code {
    font-size: 0.83em;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    background: rgba(255,255,255,0.07);
    color: #e8b89a;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.doc-content pre {
    background: #0b0c17;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    position: relative;
}
.doc-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.85rem;
    line-height: 1.65;
}
.doc-content .doc-table-scroll,
.doc-content .table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    padding-bottom: 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    scrollbar-color: var(--accent) rgba(255,255,255,0.08);
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}
.doc-content .doc-table-scroll::after,
.doc-content .table-scroll::after {
    content: "Scroll table horizontally →";
    position: sticky;
    left: 0;
    display: block;
    padding: 0.35rem 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}
.doc-content .doc-table-scroll::-webkit-scrollbar,
.doc-content .table-scroll::-webkit-scrollbar { height: 0.7rem; }
.doc-content .doc-table-scroll::-webkit-scrollbar-track,
.doc-content .table-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 999px; }
.doc-content .doc-table-scroll::-webkit-scrollbar-thumb,
.doc-content .table-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.doc-content table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.88rem;
}
.doc-content table th,
.doc-content table td {
    min-width: 11rem;
    vertical-align: top;
}
.doc-content th {
    text-align: left;
    padding: 0.6rem 1rem;
    background: var(--bg-mid);
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid var(--border-accent);
}
.doc-content td {
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.doc-content tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   BLOG / CLIENTS PLACEHOLDER
   ============================================================ */
.placeholder-box {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
}
.placeholder-box p { color: var(--text-muted); font-style: italic; }
.placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* CTA box */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(12px);
}
.cta-box h3 { font-family: var(--font-display); color: #fff; margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* Stat bar */
.stat-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-navy);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    font-size: 0.875rem;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}
.footer-link {
    padding: 0.3rem 0.7rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.footer-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.footer-sep { color: var(--text-dim); padding: 0 0.1rem; }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }
.footer-brand {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}
.footer-brand span { color: var(--accent); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll-triggered entrance */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.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; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-sidebar {
        --doc-mobile-sidebar-top: 7.75rem;
        position: sticky;
        top: var(--doc-mobile-sidebar-top);
        z-index: 1200;
        height: auto;
        max-height: calc(100dvh - var(--doc-mobile-sidebar-top) - 0.75rem);
        overflow: hidden;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    .doc-sidebar-body {
        max-height: calc(100dvh - var(--doc-mobile-sidebar-top) - 5.5rem);
        overflow-y: auto;
        padding-right: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }
    .doc-sidebar-nav { display: block; }
    .doc-sidebar-nav li + li { margin-top: 0.1rem; }
    .doc-sidebar-title { display: block; }
    .doc-main { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    body::after {
        top: 7rem;
        left: 50%;
        right: auto;
        width: min(78vw, 360px);
        height: min(78vw, 360px);
        transform: translateX(-50%);
    }
    .container { padding-left: clamp(1rem, 4vw, 1.35rem); padding-right: clamp(1rem, 4vw, 1.35rem); }
    .site-header { height: auto; min-height: var(--nav-h); overflow-x: clip; }
    .header-inner { flex-direction: column; height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; align-items: stretch; }
    .brand { align-self: stretch; }
    .brand-logo { width: 30px; height: 30px; }
    .site-nav { width: 100%; overflow-x: auto; padding-bottom: .15rem; }
    .nav-list { align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; font-size: 0.82rem; max-height: none; width: max-content; min-width: 100%; }
    .nav-menu[open] .nav-submenu { margin-top: 0.3rem; }
    .nav-link--cta,
    .nav-link--cta:visited { color: #061018; background: linear-gradient(135deg, var(--accent), #7b61ff); border-color: rgba(0,188,212,0.55); }
    .hero { min-height: 75vh; }
    .hero::before { top: 5.5rem; width: min(74vw, 320px); height: min(74vw, 320px); }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 3.5rem 0; }
    .features-grid, .explore-grid, .download-grid { grid-template-columns: 1fr; }
    .stat-row { gap: 1.5rem; }
}


/* ============================================================
   MERGED LEGACY CONTENT PAGES
   ============================================================ */
.legacy-content {
    padding-top: 4rem;
}
.legacy-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.75rem;
}
.legacy-content h2,
.legacy-content h3 {
    color: #fff;
    margin: 1.5rem 0 0.75rem;
}
.legacy-content .subtitle {
    color: var(--text-muted);
    max-width: 780px;
    font-size: 1.08rem;
    margin-bottom: 2rem;
}
.legacy-content p,
.legacy-content li,
.legacy-content summary {
    color: var(--text-muted);
}
.legacy-content ul,
.legacy-content ol {
    margin: 0.75rem 0 1.25rem 1.35rem;
}
.legacy-content li { margin-bottom: 0.45rem; }
.legacy-content .feature-grid,
.legacy-content .showcase-grid,
.legacy-content .pricing-grid,
.legacy-content .security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.legacy-content .card,
.legacy-content .workflow,
.legacy-content .notice,
.legacy-content details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-card);
}
.legacy-content .notice {
    border-color: var(--border-accent);
    background: rgba(233, 69, 96, 0.08);
    margin-bottom: 1.5rem;
}
.legacy-content .tag {
    display: inline-block;
    margin: 0 0.35rem 0.65rem 0;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(123, 97, 255, 0.22);
    border: 1px solid rgba(123, 97, 255, 0.38);
    font-size: 0.78rem;
    font-weight: 700;
}
.legacy-content .cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-accent);
    background: linear-gradient(155deg, rgba(233,69,96,0.14), rgba(123,97,255,0.10));
}
.legacy-content pre {
    overflow-x: auto;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.35);
    color: var(--text);
}
.legacy-content code {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9rem;
}
.legacy-content .steps > li {
    margin-bottom: 1rem;
}
