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

:root {
  --gaze-dark-prime: #0f172a;
  --gaze-light-prime: #f8fafc;
  --gaze-surface-light: #ffffff;
  --gaze-surface-dark: #1e293b;
  --gaze-accent-glow: #2563eb;
  --gaze-accent-hover: #1d4ed8;
  --gaze-accent-spark: #10b981;
  --gaze-text-dark: #0f172a;
  --gaze-text-light: #f8fafc;
  --gaze-text-muted: #64748b;
  --gaze-border-color: #cbd5e1;
  
  --gaze-font-display: 'Montserrat', sans-serif;
  --gaze-font-body: 'Inter', sans-serif;
  
  --gaze-radius-soft: 16px;
  --gaze-shadow-raised: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gaze-shadow-deep: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gaze-font-body);
  background-color: var(--gaze-light-prime);
  color: var(--gaze-text-dark);
  line-height: 1.6;
}

/* Scroll-driven animations */
@keyframes progress-grow {
  to { width: 100%; }
}

.gaze-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gaze-accent-spark);
  width: 0;
  z-index: 10001;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

@keyframes view-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gaze-scroll-reveal {
  animation: view-slide-up both;
  animation-timeline: view();
  animation-range: entry 10% entry 35%;
}

/* Header Styles */
.eye-plate-header {
  position: sticky;
  top: 0;
  background-color: var(--gaze-dark-prime);
  box-shadow: var(--gaze-shadow-raised);
  z-index: 1000;
  padding: 1rem 2rem;
}

.eye-plate-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pupil-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gaze-text-light);
  text-decoration: none;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.pupil-brand-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--gaze-accent-spark);
}

.retina-toggle-box {
  display: none;
}

.retina-hamburger-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.retina-hamburger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--gaze-text-light);
  transition: 0.3s;
}

.retina-nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.iris-nav-item a {
  color: var(--gaze-text-light);
  text-decoration: none;
  font-family: var(--gaze-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.iris-nav-item a:hover {
  color: var(--gaze-accent-spark);
}

/* Hero Section (Preset A) */
.sight-vision-mast {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--gaze-text-light);
  padding: 6dvh 2rem 14dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lens-overlay-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 1;
}

.sight-vision-mast-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.optics-headline-title {
  font-family: var(--gaze-font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.optics-headline-title span {
  color: var(--gaze-accent-spark);
}

.optics-sub-lead {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: #e2e8f0;
}

.gaze-button-pill {
  display: inline-block;
  background-color: var(--gaze-accent-glow);
  color: var(--gaze-text-light);
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--gaze-shadow-raised);
  transition: background-color 0.3s, transform 0.2s;
}

.gaze-button-pill:hover {
  background-color: var(--gaze-accent-hover);
  transform: translateY(-2px);
}

/* Floating Stat Bar */
.cornea-stat-dock {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.cornea-stat-dock-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--gaze-surface-dark);
  border-radius: var(--gaze-radius-soft);
  padding: 2rem;
  box-shadow: var(--gaze-shadow-deep);
}

.cornea-stat-tile {
  text-align: center;
  color: var(--gaze-text-light);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cornea-stat-tile:last-child {
  border-right: none;
}

.cornea-stat-num {
  font-family: var(--gaze-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gaze-accent-spark);
  margin-bottom: 0.5rem;
}

.cornea-stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
}

/* Zigzag Content Section */
.fovea-zigzag-block {
  padding: 10dvh 2rem;
  background-color: var(--gaze-light-prime);
}

.fovea-zigzag-block:nth-of-type(even) {
  background-color: var(--gaze-surface-light);
}

.fovea-flex-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.fovea-flex-container.zigzag-reverse {
  flex-direction: row-reverse;
}

.fovea-img-holder {
  flex: 1;
  max-width: 50%;
}

.fovea-img-holder img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--gaze-radius-soft);
  box-shadow: var(--gaze-shadow-raised);
}

.fovea-img-holder.slanted-right img {
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.fovea-img-holder.slanted-left img {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.fovea-text-holder {
  flex: 1;
}

.fovea-section-lead {
  font-family: var(--gaze-font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gaze-dark-prime);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.fovea-section-lead span {
  color: var(--gaze-accent-glow);
}

.fovea-p-desc {
  font-size: 1.05rem;
  color: var(--gaze-text-muted);
  margin-bottom: 1.5rem;
}

/* Features Grid */
.macula-feature-system {
  padding: 10dvh 2rem;
  background-color: var(--gaze-light-prime);
}

.macula-feature-system-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.macula-system-title {
  text-align: center;
  font-family: var(--gaze-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gaze-dark-prime);
  margin-bottom: 4rem;
}

.macula-grid-field {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.macula-feature-leaf {
  background: var(--gaze-surface-light);
  border-left: 5px solid var(--gaze-accent-glow);
  border-radius: var(--gaze-radius-soft);
  padding: 2.5rem;
  box-shadow: var(--gaze-shadow-raised);
  transition: transform 0.3s, box-shadow 0.3s;
}

.macula-feature-leaf:hover {
  transform: translateY(-5px);
  box-shadow: var(--gaze-shadow-deep);
}

.macula-feature-leaf svg {
  width: 48px;
  height: 48px;
  fill: var(--gaze-accent-glow);
  margin-bottom: 1.5rem;
}

.macula-feature-leaf-title {
  font-family: var(--gaze-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gaze-dark-prime);
  margin-bottom: 1rem;
}

.macula-feature-leaf-desc {
  color: var(--gaze-text-muted);
  font-size: 0.98rem;
}

/* Timeline section */
.sclera-timeline-trail {
  padding: 10dvh 2rem;
  background-color: var(--gaze-surface-light);
}

.sclera-trail-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.sclera-trail-title {
  text-align: center;
  font-family: var(--gaze-font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gaze-dark-prime);
  margin-bottom: 5rem;
}

.sclera-trail-stem {
  position: relative;
  padding: 2rem 0;
}

.sclera-trail-stem::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gaze-accent-glow);
  transform: translateX(-50%);
}

.sclera-step-node {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sclera-step-node:last-child {
  margin-bottom: 0;
}

.sclera-step-node:nth-child(even) {
  flex-direction: row-reverse;
}

.sclera-step-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gaze-accent-spark);
  border: 4px solid var(--gaze-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--gaze-shadow-raised);
}

.sclera-step-card {
  width: 45%;
  background: var(--gaze-light-prime);
  padding: 2rem;
  border-radius: var(--gaze-radius-soft);
  box-shadow: var(--gaze-shadow-raised);
}

.sclera-step-card-title {
  font-family: var(--gaze-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gaze-dark-prime);
  margin-bottom: 0.75rem;
}

.sclera-step-card-desc {
  color: var(--gaze-text-muted);
  font-size: 0.95rem;
}

/* CTA Strip */
.vitreous-banner-strip {
  position: relative;
  padding: 8dvh 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--gaze-text-light);
  text-align: center;
}

.vitreous-banner-strip-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.vitreous-banner-title {
  font-family: var(--gaze-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.vitreous-banner-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: #cbd5e1;
}

/* Expert Page Specifics */
.vis-expert-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--gaze-surface-dark);
  border-radius: var(--gaze-radius-soft);
  padding: 2.5rem 2rem;
  box-shadow: var(--gaze-shadow-deep);
}

/* Form Styles */
.aqueous-form-plate {
  background: var(--gaze-surface-light);
  border-radius: var(--gaze-radius-soft);
  padding: 3rem 2.5rem;
  box-shadow: var(--gaze-shadow-deep);
  max-width: 600px;
  margin: 0 auto;
}

.aqueous-form-headline {
  text-align: center;
  font-family: var(--gaze-font-display);
  font-size: 1.8rem;
  color: var(--gaze-dark-prime);
  margin-bottom: 2rem;
}

.aqueous-form-group {
  margin-bottom: 1.5rem;
}

.aqueous-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gaze-dark-prime);
}

.aqueous-input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gaze-border-color);
  border-radius: 8px;
  font-family: var(--gaze-font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.aqueous-input-field:focus {
  border-color: var(--gaze-accent-glow);
}

.aqueous-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.aqueous-checkbox-row input {
  margin-top: 0.3rem;
}

.aqueous-checkbox-row label {
  font-size: 0.88rem;
  color: var(--gaze-text-muted);
}

.aqueous-checkbox-row label a {
  color: var(--gaze-accent-glow);
  text-decoration: underline;
}

.aqueous-form-trigger {
  width: 100%;
  background: var(--gaze-accent-spark);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 999px;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--gaze-shadow-raised);
  transition: background-color 0.3s, transform 0.2s;
}

.aqueous-form-trigger:hover {
  background-color: #0d9488;
  transform: translateY(-2px);
}

.aqueous-info-anchor {
  text-align: center;
  margin-top: 1.5rem;
}

.aqueous-info-anchor a {
  color: var(--gaze-accent-glow);
  text-decoration: none;
  font-weight: 600;
}

/* FAQ Accordion (CSS only) */
.retina-faq-accordion {
  max-width: 800px;
  margin: 5rem auto 0;
}

.retina-faq-title {
  text-align: center;
  font-family: var(--gaze-font-display);
  font-size: 2rem;
  color: var(--gaze-dark-prime);
  margin-bottom: 2.5rem;
}

.retina-faq-drawer {
  background: var(--gaze-surface-light);
  border-radius: var(--gaze-radius-soft);
  margin-bottom: 1rem;
  box-shadow: var(--gaze-shadow-raised);
  overflow: hidden;
}

.retina-faq-header {
  padding: 1.5rem;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  color: var(--gaze-dark-prime);
  cursor: default;
}

.retina-faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--gaze-text-muted);
  font-size: 0.95rem;
}

/* Cookie Banner */
.optic-cookie-shield {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gaze-dark-prime);
  color: var(--gaze-text-light);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.25);
  display: none;
}

.optic-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.optic-cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.optic-cookie-btn-group {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.optic-cookie-accept {
  background-color: var(--gaze-accent-spark);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  cursor: pointer;
}

.optic-cookie-decline {
  background-color: transparent;
  color: var(--gaze-text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-family: var(--gaze-font-display);
  font-weight: 700;
  cursor: pointer;
}

/* Footer Styles */
.iris-footer-plate {
  background-color: var(--gaze-dark-prime);
  color: var(--gaze-text-light);
  padding: 4rem 2rem 2rem;
}

.iris-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.iris-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.iris-footer-links {
  display: flex;
  gap: 2rem;
}

.iris-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.iris-footer-links a:hover {
  color: var(--gaze-text-light);
}

.iris-footer-disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.iris-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .cornea-stat-dock {
    margin-top: -50px;
  }
  .fovea-flex-container {
    flex-direction: column;
    gap: 2rem;
  }
  .fovea-flex-container.zigzag-reverse {
    flex-direction: column;
  }
  .fovea-img-holder {
    max-width: 100%;
  }
  .fovea-img-holder img {
    height: 300px;
  }
  .macula-grid-field {
    grid-template-columns: 1fr;
  }
  .vis-expert-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .retina-hamburger-icon {
    display: flex;
  }

  .retina-nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--gaze-dark-prime);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .retina-toggle-box:checked ~ .retina-nav-list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .retina-toggle-box:checked ~ .retina-hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .retina-toggle-box:checked ~ .retina-hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

  .retina-toggle-box:checked ~ .retina-hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .optics-headline-title {
    font-size: 2.2rem;
  }

  .cornea-stat-dock-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cornea-stat-tile {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
  }

  .cornea-stat-tile:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .sclera-trail-stem::before {
    left: 20px;
  }

  .sclera-step-node {
    justify-content: flex-start;
  }

  .sclera-step-node:nth-child(even) {
    flex-direction: row;
  }

  .sclera-step-ring {
    left: 20px;
    transform: translateX(-50%);
  }

  .sclera-step-card {
    width: calc(100% - 50px);
    margin-left: 50px;
  }

  .vis-expert-strip {
    grid-template-columns: 1fr;
  }

  .optic-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .optic-cookie-btn-group {
    justify-content: center;
  }

  .iris-footer-top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .iris-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .iris-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}