/* eyes.cash - Swiss International Style + Optical Perception */
/* Color Palette */
:root {
    --glacier-white: #f0f3f6;
    --frost-linen: #e4e9ee;
    --slate-ink: #2d3a4a;
    --graphite-mist: #4a5568;
    --fog-silver: #8b9dad;
    --pressed-sage: #7a9e7e;
    --specimen-gold: #c4a35a;
    --obsidian-steel: #1a2332;
    --cloud-gray: #d0d8e0;
    --pale-frost: #c4cdd6;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--glacier-white);
    color: var(--slate-ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* ===== VERTICAL NAV ===== */
.vertical-nav {
    position: fixed;
    top: 0;
    left: 48px;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-rule {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--fog-silver);
    opacity: 0.5;
}

.eye-icon {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 0;
    margin-top: 24px;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eye-icon:hover {
    transform: scale(1.3);
}

.eye-icon svg {
    display: block;
}

.scroll-indicators {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--slate-ink);
    transition: background-color 300ms ease, transform 300ms ease;
    cursor: pointer;
}

.indicator.active {
    background-color: var(--specimen-gold);
    transform: scale(1.4);
}

/* ===== SPECIMEN SECTIONS ===== */
.specimen-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 120px 80px 120px;
    overflow: hidden;
}

/* ===== GRADIENT MESHES ===== */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mesh-0 {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(228, 233, 238, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(208, 216, 224, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 243, 246, 0.6) 0%, transparent 70%);
}

.mesh-1 {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(228, 233, 238, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 20%, rgba(208, 216, 224, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 243, 246, 0.5) 0%, transparent 65%);
}

.mesh-2 {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(228, 233, 238, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(208, 216, 224, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 243, 246, 0.55) 0%, transparent 60%);
}

.mesh-3 {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(122, 158, 126, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(228, 233, 238, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(208, 216, 224, 0.2) 0%, transparent 50%);
}

.mesh-4 {
    background: var(--obsidian-steel);
}

/* ===== HERO SECTION ===== */
.hero-section {
    flex-direction: column;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--slate-ink);
}

.hero-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(20px, 4vw, 56px);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--fog-silver);
    margin-top: -8px;
}

.hero-section .specimen-text {
    max-width: 520px;
    margin-top: 40px;
    color: var(--graphite-mist);
}

.fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 800ms ease 1.5s forwards;
}

/* ===== IRIS MOTIF ===== */
.iris-motif {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
    opacity: 0.3;
    animation: irisRotate 60s linear infinite;
}

.hero-section .iris-motif {
    width: min(50vw, 400px);
    height: min(50vw, 400px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.iris-motif svg {
    width: 100%;
    height: 100%;
}

.iris-motif-gold {
    opacity: 0.2;
    top: 50%;
    left: 50%;
    width: min(40vw, 300px);
    height: min(40vw, 300px);
    transform: translate(-50%, -50%);
}

@keyframes irisRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== SPECIMEN DIVIDERS ===== */
.specimen-divider {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 48px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--pale-frost);
}

.divider-botanical {
    width: 40px;
    height: 40px;
    margin: 0 20px;
    flex-shrink: 0;
}

/* ===== SPECIMEN GRIDS ===== */
.specimen-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 48px;
    max-width: 960px;
    width: 100%;
    align-items: center;
}

.specimen-grid.reverse {
    direction: rtl;
}

.specimen-grid.reverse > * {
    direction: ltr;
}

.specimen-grid.centered {
    grid-template-columns: 1fr;
    max-width: 640px;
    text-align: center;
}

.specimen-grid.centered .botanical-center {
    margin: 24px auto 0;
    max-width: 300px;
}

.specimen-content {
    position: relative;
    z-index: 2;
}

/* ===== TYPOGRAPHY ===== */
.specimen-number {
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fog-silver);
    display: block;
    margin-bottom: 16px;
}

.specimen-number-light {
    color: var(--pale-frost);
}

.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--slate-ink);
    margin-bottom: 24px;
    display: inline-block;
}

.heading-text {
    display: block;
}

.specimen-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.005em;
    color: var(--graphite-mist);
    max-width: 480px;
}

.mono-label {
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fog-silver);
    display: block;
    margin-top: 32px;
}

/* ===== UNDERLINE DRAW ANIMATION ===== */
.underline-svg {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 4px;
}

.underline-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 600ms cubic-bezier(0.65, 0, 0.35, 1);
}

.section-heading.animated .underline-path {
    stroke-dashoffset: 0;
}

/* ===== BOTANICAL SVGs ===== */
.botanical svg {
    width: 100%;
    height: auto;
    max-height: 450px;
}

.botanical-center svg {
    max-height: 200px;
}

/* ===== SNELLEN CHART FRAGMENT ===== */
.snellen-fragment {
    position: absolute;
    right: 80px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
}

.snellen-line {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

.snellen-1 {
    font-size: 24px;
    color: var(--slate-ink);
}

.snellen-2 {
    font-size: 16px;
    color: var(--fog-silver);
}

.snellen-3 {
    font-size: 11px;
    color: var(--pale-frost);
}

/* ===== CROSSHAIR RETICLE ===== */
.crosshair-reticle {
    position: absolute;
    right: 60px;
    top: 60px;
    opacity: 0.4;
}

/* ===== REGISTER (DARK) SECTION ===== */
.register-section {
    background-color: var(--obsidian-steel);
    flex-direction: column;
    text-align: center;
}

.register-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-heading .heading-text {
    color: var(--glacier-white);
    font-size: clamp(24px, 4vw, 56px);
}

.register-text {
    color: var(--fog-silver);
    max-width: 460px;
}

.register-section .mono-label {
    color: var(--pale-frost);
    opacity: 0.5;
    margin-top: 48px;
}

/* ===== SCROLL ANIMATION STATES ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms ease, transform 800ms ease;
}

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

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .specimen-section {
        padding: 60px 80px 60px 80px;
    }

    .specimen-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .specimen-grid.reverse {
        direction: ltr;
    }

    .botanical-left,
    .botanical-right {
        max-width: 200px;
        margin: 0 auto;
    }

    .snellen-fragment {
        display: none;
    }

    .vertical-nav {
        left: 20px;
    }
}

@media (max-width: 600px) {
    .specimen-section {
        padding: 48px 24px 48px 60px;
    }

    .hero-title {
        font-size: clamp(60px, 20vw, 120px);
    }

    .vertical-nav {
        left: 12px;
    }

    .crosshair-reticle {
        display: none;
    }
}
