/* ===================================================================
   OctoProxy Official Website
   Theme: Dark / Neon Cyan
   =================================================================== */

/* ---------- 1. Variables & Reset ---------- */
:root {
    --color-bg-0:        #05070d;
    --color-bg-1:        #0a0f1c;
    --color-bg-2:        #0f1729;
    --color-surface:     rgba(255, 255, 255, 0.04);
    --color-surface-hi:  rgba(255, 255, 255, 0.08);
    --color-border:      rgba(0, 229, 255, 0.15);
    --color-border-hi:   rgba(0, 229, 255, 0.35);

    --color-cyan:        #00e5ff;
    --color-cyan-soft:   #5eead4;
    --color-blue:        #38bdf8;
    --color-gradient:    linear-gradient(135deg, #5eead4 0%, #00e5ff 50%, #38bdf8 100%);
    --color-gradient-dim:linear-gradient(135deg, rgba(94,234,212,.2), rgba(56,189,248,.2));

    --color-text:        #e7ecf3;
    --color-text-dim:    #9aa3b2;
    --color-text-mute:   #6b7280;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.25);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);

    --max-w: 1200px;
    --nav-h: 72px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg-0);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--color-cyan); color: #001018; }

/* ---------- 2. Background Aurora ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,255,.18), transparent 60%),
                radial-gradient(ellipse 60% 50% at 90% 30%, rgba(94,234,212,.10), transparent 60%),
                radial-gradient(ellipse 60% 50% at 10% 70%, rgba(56,189,248,.12), transparent 60%),
                linear-gradient(180deg, #05070d 0%, #060a14 100%);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}

/* ---------- 3. Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(0,229,255,.05);
    color: var(--color-cyan);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin-top: 16px;
    color: var(--color-text-dim);
    font-size: 17px;
    max-width: 640px;
    margin-inline: auto;
}

.gradient-text {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 4. Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(5, 7, 13, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: rgba(255,255,255,0.06);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.nav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,229,255,.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--color-text-dim);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: #00131a;
    background: var(--color-gradient);
    box-shadow: 0 6px 24px rgba(0,229,255,.35);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,229,255,.5); }
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-toggle:hover { background: var(--color-surface); }

/* Mobile menu — hidden by default on every viewport;
   the mobile media query below re-enables it as a fixed dropdown. */
.mobile-menu { display: none; }

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    color: #00131a;
    background: var(--color-gradient);
    box-shadow: 0 8px 30px rgba(0,229,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,229,255,.5); }

.btn-ghost {
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface-hi); border-color: var(--color-border-hi); }

.btn svg { width: 18px; height: 18px; }

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 80px) 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,229,255,.06);
    border: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-cyan-soft);
    margin-bottom: 24px;
}
.hero-tag .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero p.lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--color-text-dim);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stats .stat .num {
    font-size: 28px;
    font-weight: 700;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats .stat .lbl {
    font-size: 13px;
    color: var(--color-text-mute);
    margin-top: 4px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}
.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,.35), rgba(94,234,212,.15) 40%, transparent 70%);
    filter: blur(20px);
    animation: float 8s ease-in-out infinite;
}
.hero-logo {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 56px;
    box-shadow: 0 30px 80px rgba(0,229,255,.35), 0 10px 40px rgba(0,0,0,.6);
    animation: float 6s ease-in-out infinite;
}
.hero-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.hero-rings span {
    position: absolute;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}
.hero-rings span:nth-child(1) { width: 460px; height: 460px; border-color: rgba(0,229,255,.12); }
.hero-rings span:nth-child(2) { width: 580px; height: 580px; border-color: rgba(0,229,255,.08); animation-duration: 50s; animation-direction: reverse; }
.hero-rings span:nth-child(3) { width: 700px; height: 700px; border-color: rgba(0,229,255,.05); animation-duration: 70s; }

.hero-rings span::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 16px var(--color-cyan);
    transform: translateX(-50%);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- 7. Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,229,255,.12), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hi);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--color-gradient-dim);
    border: 1px solid var(--color-border);
    color: var(--color-cyan);
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.feature-card p {
    position: relative;
    color: var(--color-text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- 8. Showcase (App Screenshots) ---------- */
.showcase {
    background: linear-gradient(180deg, transparent, rgba(0,229,255,.025), transparent);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: end;
}

.phone-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(160deg, #1c2231, #0a0f1c);
    box-shadow:
        0 30px 60px rgba(0,0,0,.6),
        0 0 0 1px rgba(255,255,255,.06),
        inset 0 0 0 1px rgba(255,255,255,.04);
    transition: transform .4s ease;
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: -12px; bottom: -12px;
    border-radius: 56px;
    background: radial-gradient(circle, rgba(0,229,255,.2), transparent 70%);
    z-index: -1;
    opacity: .6;
    transition: opacity .4s ease;
}
.phone-card:hover .phone-frame { transform: translateY(-8px) rotate(-1deg); }
.phone-card:hover .phone-frame::before { opacity: 1; }

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.phone-caption {
    margin-top: 28px;
}
.phone-caption h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.phone-caption p {
    color: var(--color-text-mute);
    font-size: 14px;
}

/* Stagger middle phone up */
.showcase-grid .phone-card:nth-child(2) .phone-frame { transform: translateY(-32px); }
.showcase-grid .phone-card:nth-child(2):hover .phone-frame { transform: translateY(-40px) rotate(-1deg); }

/* ---------- 9. Download CTA ---------- */
.cta-band {
    margin-top: 40px;
}
.cta-box {
    position: relative;
    padding: 72px 48px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(0,229,255,.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(94,234,212,.15), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid var(--color-border);
    text-align: center;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,229,255,.4), transparent 50%, rgba(94,234,212,.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta-box p {
    color: var(--color-text-dim);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto 36px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    background: #0f1422;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--color-text);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    min-width: 200px;
}
.store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-hi);
    background: #131a2c;
}
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn .meta { text-align: left; line-height: 1.2; }
.store-btn .meta .small { font-size: 11px; color: var(--color-text-mute); }
.store-btn .meta .big { font-size: 17px; font-weight: 600; }

/* ---------- 10. Footer ---------- */
.footer {
    margin-top: 40px;
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    color: var(--color-text-dim);
    font-size: 14px;
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.7;
}
.footer h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text);
    margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
    color: var(--color-text-dim);
    font-size: 14px;
    transition: color .2s ease;
}
.footer ul a:hover { color: var(--color-cyan); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-text-mute);
    font-size: 13px;
}

/* ---------- 11. Legal page (Terms / Privacy) ---------- */
.legal {
    padding: calc(var(--nav-h) + 64px) 0 80px;
}
.legal-header {
    text-align: center;
    margin-bottom: 56px;
}
.legal-header h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.legal-header .updated {
    color: var(--color-text-mute);
    font-size: 14px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 52px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--color-cyan-soft);
}
.legal-content p {
    color: var(--color-text-dim);
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 14px;
}
.legal-content ul {
    margin: 0 0 18px 24px;
    color: var(--color-text-dim);
    font-size: 15.5px;
    line-height: 1.8;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--color-text); }

/* ---------- 12. Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 960px) {
    .section { padding: 80px 0; }
    .hero { padding: calc(var(--nav-h) + 40px) 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero p.lead { margin-inline: auto; }
    .hero-visual { min-height: 360px; }
    .hero-logo { width: 240px; height: 240px; border-radius: 44px; }
    .hero-rings span:nth-child(1) { width: 340px; height: 340px; }
    .hero-rings span:nth-child(2) { width: 440px; height: 440px; }
    .hero-rings span:nth-child(3) { width: 540px; height: 540px; }

    .features-grid { grid-template-columns: 1fr; gap: 18px; }
    .showcase-grid { grid-template-columns: 1fr; gap: 56px; }
    .showcase-grid .phone-card:nth-child(2) .phone-frame { transform: translateY(0); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .cta-box { padding: 56px 28px; }

    .legal-content { padding: 36px 24px; }

    .nav-links, .nav-cta-desktop { display: none; }
    .nav-toggle { display: inline-flex; }

    .mobile-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(5,7,13,.96);
        -webkit-backdrop-filter: blur(18px);
                backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(255,255,255,.06);
        padding: 16px 24px 24px;
        z-index: 99;

        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
    }
    .mobile-menu.open {
        max-height: 70vh;
        opacity: 1;
        pointer-events: auto;
        padding-top: 16px;
        padding-bottom: 24px;
    }
    .mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
    .mobile-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
        color: var(--color-text);
        font-size: 16px;
        font-weight: 500;
        transition: background .2s ease;
    }
    .mobile-menu a:hover { background: var(--color-surface); }
    .mobile-menu .nav-cta { margin-top: 12px; width: 100%; justify-content: center; }

    .nav-toggle .icon-close { display: none; }
    .nav-toggle.is-open .icon-open { display: none; }
    .nav-toggle.is-open .icon-close { display: block; }

    body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .container { padding-inline: 18px; }
    .hero h1 { font-size: 40px; }
    .section-title { font-size: 30px; }
    .hero-stats { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
}
