/* ============================================================
   Optopus landing — Aurora brand v2
   Color tokens mirror mobile_app's AuroraTokens:
     cobalt        #5564FF
     aurora violet #8B5DFF
     ink           #14123F
     deep slate    #404A5F
     soft violet   #F5F3FF
     orange accent #FB923C
   ============================================================ */

:root {
    --cobalt: #5564FF;
    --aurora-violet: #8B5DFF;
    --ink: #14123F;
    --deep-slate: #404A5F;
    --muted: #5B6478;
    --soft-violet: #F5F3FF;
    --soft-violet-2: #EAE6FF;
    --orange: #FB923C;
    --border: #E4E6F3;
    --border-strong: #C0C7FF;
    --white: #FFFFFF;
    --bg: #FBFAFF;
    --shadow-sm: 0 1px 2px rgba(20, 18, 63, 0.06), 0 2px 6px rgba(85, 100, 255, 0.05);
    --shadow-md: 0 4px 12px rgba(20, 18, 63, 0.06), 0 12px 32px rgba(85, 100, 255, 0.10);
    --shadow-lg: 0 8px 24px rgba(20, 18, 63, 0.08), 0 24px 64px rgba(85, 100, 255, 0.18);
    --gradient: linear-gradient(135deg, #5564FF 0%, #8B5DFF 100%);
    --gradient-text: linear-gradient(135deg, #5564FF 0%, #8B5DFF 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--cobalt);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0; color: var(--muted); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cobalt);
    background: var(--soft-violet);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
    line-height: 1;
}
/* Small variant — used in the sticky nav. Earlier this was 0.85rem
   /weight 700, which on the cobalt→violet gradient bottomed out
   below the WCAG AA 4.5:1 contrast threshold (white on #8B5DFF is
   ~3.7:1). Bumping weight to 800 and using a SOLID cobalt fill
   (no violet tail) restores a comfortable 5+:1 contrast for small
   button text. */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 800;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(85, 100, 255, 0.32);
}
.btn-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(85, 100, 255, 0.42);
}
/* When the primary CTA appears in the small/nav size, drop the
   gradient and use solid cobalt — better contrast at low type
   sizes (white text on solid #5564FF clears WCAG AA). */
.btn-sm.btn-primary {
    background: var(--cobalt);
    box-shadow: 0 4px 12px rgba(85, 100, 255, 0.40);
}
.btn-sm.btn-primary:hover {
    background: #4854E8;
    box-shadow: 0 6px 16px rgba(85, 100, 255, 0.50);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    text-decoration: none;
    background: var(--soft-violet);
    border-color: var(--cobalt);
}

/* ─── Nav ─── */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(228, 230, 243, 0.7);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand img { display: block; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
/* Plain text links only — `.btn` anchors keep their own colour
   (e.g. white on the cobalt nav CTA). Without `:not(.btn)` the
   higher-specificity `.nav-links a` rule wins and the CTA text
   gets rendered in ink instead of white. */
.nav-links a:not(.btn) {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-links a:not(.btn):hover {
    color: var(--cobalt);
    text-decoration: none;
}

@media (max-width: 720px) {
    .nav-links a:not(.btn) { display: none; }
    .nav { height: 64px; }
}

/* ─── Hero ─── */
.hero {
    position: relative;
    padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(139, 93, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(85, 100, 255, 0.14), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy { max-width: 640px; }

.hero h1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 560px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--deep-slate);
    font-weight: 500;
}

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}
.mascot {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(85, 100, 255, 0.28));
}
.float-y {
    animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(80px);
    opacity: 0.28;
    z-index: 1;
}

/* ─── Sections ─── */
.section {
    padding: clamp(64px, 8vw, 110px) 0;
}
.section-header {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-lead {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ─── Features ─── */
.section-features {
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--white);
    margin-bottom: 18px;
    box-shadow: 0 6px 14px rgba(85, 100, 255, 0.28);
}
.feature-card h3 {
    color: var(--ink);
    margin-bottom: 8px;
}
.feature-card p { font-size: 0.95rem; }

/* ─── Audience ─── */
.section-audience {
    background: var(--white);
}
.audience-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .audience-grid { grid-template-columns: 1fr; gap: 32px; }
}
.audience-copy h2 { margin-bottom: 18px; }
.audience-copy p { margin-bottom: 20px; font-size: 1.05rem; }

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.check-list li {
    position: relative;
    padding: 9px 0 9px 32px;
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.5;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/></svg>"),
        var(--gradient);
    background-size: 14px, cover;
    background-position: center;
    background-repeat: no-repeat;
}

.audience-card {
    background: var(--soft-violet);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.audience-mascot img { margin: 0 auto 18px; }
.quote {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}
.quote-by {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── Contact ─── */
.section-contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--soft-violet) 100%);
    border-top: 1px solid var(--border);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 22px;
    color: var(--ink);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.contact-card:hover:not(.contact-static) {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: var(--cobalt);
    box-shadow: var(--shadow-md);
}
.contact-static { cursor: default; }
.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--soft-violet);
    color: var(--cobalt);
}
.contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 3px;
}
.contact-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

/* ─── Footer ─── */
/* Background = deep slate, NOT ink. The dark-bg logo variant uses
   `#14123F` (ink) as the colour of the mascot eye pupils — they'd
   blend invisibly into an ink footer. Deep slate `#404A5F` is the
   brand kit's intended dark-surface backplate and is what the dark
   logo + app icon were rendered against. */
.footer {
    background: var(--deep-slate);
    color: rgba(255, 255, 255, 0.82);
    padding: 64px 0 28px;
}
.footer a { color: rgba(255, 255, 255, 0.86); }
.footer a:hover { color: var(--white); text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* No filter — `logo-dark.svg` is the dedicated dark-background
   variant (white wordmark, dark mascot eyes baked in). Filtering
   the regular logo would turn the eye highlights into invisible
   white-on-white. */
.footer-brand img { display: block; }

.footer-legal { font-size: 0.92rem; line-height: 1.7; }
.footer-company {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}
.footer-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 0.85rem;
}
.footer-ids span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
}
.footer-meta {
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .float-y { animation: none; }
    html { scroll-behavior: auto; }
}

/* ─── #4618 Registration section ─── */
.section-register {
    background: var(--soft-violet);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.register-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 860px) {
    .register-grid { grid-template-columns: 1fr; gap: 28px; }
}
.register-copy h2 { margin: 8px 0 14px; }
.register-login {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}
.register-login a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.register-login a:hover { text-decoration: underline; }

.register-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 18px);
    box-shadow: var(--shadow-md);
    padding: 28px;
}
.register-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; }
.form-row label,
.form-consent span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-slate);
    margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    width: 100%;
    box-sizing: border-box;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(85, 100, 255, 0.15);
}
.form-row textarea { resize: vertical; }
.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) { .form-two { grid-template-columns: 1fr; } }
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 6px 0 16px;
    cursor: pointer;
}
.form-consent input { margin-top: 3px; }
.form-consent span { font-weight: 500; color: var(--muted); margin-bottom: 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.form-fineprint {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}
