/* HeroUI Cyan - shared marketing site styles */
:root {
    --heroui-foreground: #18181b;
    --heroui-content1: #ffffff;
    --heroui-content4: #52525b;
    --heroui-primary-50: #f0fcff;
    --heroui-primary-100: #e6fafe;
    --heroui-primary-200: #d7f8fe;
    --heroui-primary-300: #c3f4fd;
    --heroui-primary-600: #0088AA;
    --heroui-primary-700: #006688;
    --heroui-primary-800: #0e8aaa;
    --heroui-primary-900: #053b48;
    --text: var(--heroui-foreground);
    --text-muted: var(--heroui-content4);
    --primary: var(--heroui-primary-600);
    --surface: var(--heroui-content1);
    --surface-muted: var(--heroui-primary-50);
    --border: var(--heroui-primary-200);
    --heading: var(--heroui-primary-900);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-overlay-bg: rgba(255, 255, 255, 0.98);
    --aurora-stop: #ffffff;
    --radius-xl: 1.25rem;
    --shadow-lg: 0 12px 24px -4px rgb(6 183 219 / 0.15), 0 4px 8px -2px rgb(0 0 0 / 0.06);
    --shadow-primary: 0 4px 14px 0 rgb(6 183 219 / 0.4);
    --font-display: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
    --page-max: 1168px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --heroui-foreground: #e4e4e7;
        --heroui-content1: #0c1a21;
        --heroui-content4: #a1a1aa;
        --heroui-primary-50: #071f28;
        --heroui-primary-100: #0a2833;
        --heroui-primary-200: #0e3542;
        --heroui-primary-300: #124656;
        --heroui-primary-600: #22a3c4;
        --heroui-primary-700: #4db8d4;
        --heroui-primary-800: #7ee7fc;
        --heroui-primary-900: #e6fafe;
        --text: var(--heroui-foreground);
        --text-muted: var(--heroui-content4);
        --primary: var(--heroui-primary-600);
        --surface: var(--heroui-content1);
        --surface-muted: var(--heroui-primary-50);
        --border: var(--heroui-primary-200);
        --heading: var(--heroui-primary-900);
        --nav-bg: rgba(12, 26, 33, 0.92);
        --nav-overlay-bg: rgba(12, 26, 33, 0.98);
        --aurora-stop: #071018;
        --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.35), 0 4px 8px -2px rgb(0 0 0 / 0.2);
        --shadow-primary: 0 4px 14px 0 rgb(6 183 219 / 0.25);
    }
}

@media (prefers-reduced-transparency: reduce) {
    :root {
        --nav-bg: var(--surface);
        --nav-overlay-bg: var(--surface);
    }
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-on-scroll { opacity: 1; transform: none; }
}

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

body.nav-open { overflow: hidden; }

.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, var(--heroui-primary-50) 0%, var(--heroui-primary-100) 40%, var(--aurora-stop) 100%),
        radial-gradient(ellipse 90% 70% at 80% 10%, rgba(6, 183, 219, 0.18) 0%, transparent 55%);
}

.skip-link {
    position: fixed;
    left: 0;
    top: -80px;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-sprite {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 12px 20px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    z-index: 1000;
    box-shadow: 0 2px 8px rgb(6 183 219 / 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo:hover { color: var(--primary); }
.logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.logo video {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-links a.active,
.nav-links a[aria-current="true"],
.nav-links a[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 14px; }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    position: relative;
    z-index: 1001;
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--heading);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--heroui-primary-600);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--heroui-primary-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(6 183 219 / 0.35);
}
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-secondary {
    background: var(--surface);
    color: var(--heroui-primary-700);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgb(6 183 219 / 0.06);
}
.btn-secondary:hover {
    background: var(--heroui-primary-50);
    border-color: var(--heroui-primary-300);
}
.btn-secondary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin-bottom: 40px;
}
.section-title-center { text-align: center; }

.footer {
    padding: 48px 24px;
    background: #053b48;
    color: #e6fafe;
    text-align: center;
}
.footer-content { max-width: 720px; margin: 0 auto; }
.footer p { font-size: 15px; color: #a5eefd; margin-bottom: 20px; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #e6fafe;
    text-decoration: none;
    font-size: 15px;
}
.footer-links a:hover { color: #fff; }
.footer-links a[aria-current="page"] {
    color: #fff;
    font-weight: 600;
}
.footer-links a:focus-visible { outline: 2px solid #a5eefd; outline-offset: 2px; }
.footer-icp {
    font-size: 13px;
    color: #7ee7fc;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-icp a { color: inherit; text-decoration: none; }

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}
.reveal-on-scroll.is-visible {
    animation: fadeInUp 0.5s ease-out forwards;
}

@media (max-width: 767px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: var(--nav-overlay-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links a { font-size: 20px; color: var(--heading); }
}
