/* Custom CSS Variables based on Eye Wellness and Dark Theme preset */
:root {
  --vis-bg: #0a0d14;
  --vis-surface: #121723;
  --vis-surface-elevated: #1a2234;
  --vis-accent: #00f2fe;
  --vis-accent-rgb: 0, 242, 254;
  --vis-accent-deep: #00a8cc;
  --vis-text: #f0f3f8;
  --vis-text-muted: #8fa0dd;
  --vis-border-color: rgba(0, 242, 254, 0.15);
  --vis-gradient: linear-gradient(135deg, #020813 0%, #12192c 100%);
  --vis-accent-gradient: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --vis-radius: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--vis-bg);
  color: var(--vis-text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scroll Indicators and Progress */
@keyframes vis-progress {
  from { width: 0%; }
  to { width: 100%; }
}

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

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--vis-text-muted);
}

a {
  color: var(--vis-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

/* Viewport Entry Reveal Animation */
@keyframes vis-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vis-scroll-reveal {
  animation: vis-reveal auto linear;
  animation-timeline: view();
  animation-range: entry 5% cover 25%;
}

/* Sticky Header */
.vis-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--vis-surface);
  border-bottom: 1px solid var(--vis-border-color);
  padding: 1rem 2rem;
}

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

.vis-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vis-logo-svg {
  width: 32px;
  height: 32px;
  fill: var(--vis-accent);
}

/* Hamburger Menu CSS-Only */
.vis-menu-toggle {
  display: none;
}

.vis-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

.vis-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--vis-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.vis-nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.vis-nav-item {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--vis-text);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.vis-nav-item:hover,
.vis-nav-item.active {
  color: var(--vis-accent);
}

@media (max-width: 768px) {
  .vis-menu-btn {
    display: flex;
  }
  
  .vis-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--vis-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--vis-border-color);
    text-align: center;
  }

  .vis-menu-toggle:checked ~ .vis-nav-menu {
    display: flex;
  }

  .vis-menu-toggle:checked ~ .vis-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .vis-menu-toggle:checked ~ .vis-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .vis-menu-toggle:checked ~ .vis-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}

/* Main layouts & sections */
.vis-main-content {
  flex-grow: 1;
}

/* Hero Section (Preset A: Fullscreen dark overlay) */
.vis-hero-fullscreen {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 0 1.5rem;
}

.vis-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 20, 0.75);
  background: radial-gradient(circle, rgba(10, 13, 20, 0.6) 0%, rgba(10, 13, 20, 0.9) 100%);
  z-index: 1;
}

.vis-hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.vis-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #fff;
}

.vis-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--vis-text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Button UI */
.vis-btn-pill {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #020813;
  background: var(--vis-accent-gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vis-btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  color: #020813;
}

/* Floating Stat Bar underneath index hero */
.vis-floating-stats-bar {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.vis-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.vis-stat-card {
  background-color: var(--vis-surface-elevated);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.vis-stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--vis-accent);
  margin-bottom: 0.5rem;
}

.vis-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vis-text);
}

/* Zig-Zag Content Sections (Preset A) */
.vis-zigzag-outer {
  padding: 10dvh 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vis-zigzag-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.vis-zigzag-row:last-child {
  margin-bottom: 0;
}

.vis-zigzag-row:nth-child(even) {
  flex-direction: row-reverse;
}

.vis-zigzag-img-col {
  flex: 1;
  min-height: 400px;
  height: auto;
}

.vis-zigzag-image-frame {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--vis-radius);
  border: 1px solid var(--vis-border-color);
}

/* Slanted visual style in Preset A */
.vis-zigzag-img-col.slanted-right .vis-zigzag-image-frame {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}

.vis-zigzag-img-col.slanted-left .vis-zigzag-image-frame {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.vis-zigzag-text-col {
  flex: 1.2;
}

.vis-zigzag-tag {
  color: var(--vis-accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: inline-block;
}

.vis-zigzag-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.vis-zigzag-text {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .vis-zigzag-row,
  .vis-zigzag-row:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
  }
  
  .vis-zigzag-img-col.slanted-right .vis-zigzag-image-frame,
  .vis-zigzag-img-col.slanted-left .vis-zigzag-image-frame {
    clip-path: none;
  }
}

/* Features Grid Section (Preset A: 2-row grid, left colored borders) */
.vis-features-bg {
  background-color: var(--vis-surface);
  border-top: 1px solid var(--vis-border-color);
  border-bottom: 1px solid var(--vis-border-color);
  padding: 10dvh 1.5rem;
}

.vis-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vis-sec-header {
  text-align: center;
  margin-bottom: 4rem;
}

.vis-sec-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.vis-sec-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.vis-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vis-feature-card {
  background-color: var(--vis-surface-elevated);
  border-left: 4px solid var(--vis-accent);
  border-radius: var(--vis-radius);
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vis-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.15);
}

.vis-feature-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-feature-icon-svg {
  width: 100%;
  height: 100%;
  fill: var(--vis-accent);
}

.vis-feature-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Timeline "How it Works" (Preset A: center vertical timeline) */
.vis-timeline-section {
  padding: 10dvh 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vis-timeline-container {
  position: relative;
  margin: 4rem auto 0 auto;
}

.vis-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--vis-border-color);
  transform: translateX(-50%);
}

.vis-timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.vis-timeline-item:last-child {
  margin-bottom: 0;
}

.vis-timeline-content {
  width: 45%;
  background-color: var(--vis-surface);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vis-timeline-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--vis-accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: #020813;
  z-index: 5;
}

.vis-timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.vis-timeline-spacer {
  width: 45%;
}

@media (max-width: 768px) {
  .vis-timeline-line {
    left: 20px;
  }
  
  .vis-timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 3rem;
  }
  
  .vis-timeline-badge {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .vis-timeline-content {
    width:calc(100% - 40px);
    margin-left: 40px;
  }
  
  .vis-timeline-spacer {
    display: none;
  }
}

/* CTA Parallax-like Strip */
.vis-cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 10dvh 1.5rem;
  text-align: center;
}

.vis-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 20, 0.85);
  z-index: 1;
}

.vis-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* Expert Page Layout (Preset A) */
.vis-expert-stats-section {
  padding: 5dvh 1.5rem;
  background-color: var(--vis-surface-elevated);
}

.vis-expert-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 10dvh 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vis-expert-img-col {
  flex: 1;
}

.vis-expert-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--vis-radius);
  border: 1px solid var(--vis-border-color);
}

.vis-expert-text-col {
  flex: 1.2;
}

@media (max-width: 900px) {
  .vis-expert-row {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* Reserve Page Layout (Preset A) */
.vis-reserve-card-container {
  max-width: 650px;
  margin: 4rem auto;
  background-color: var(--vis-surface);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vis-reserve-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vis-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vis-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vis-text);
  letter-spacing: 0.05em;
}

.vis-form-input,
.vis-form-textarea {
  background-color: var(--vis-surface-elevated);
  border: 1px solid var(--vis-border-color);
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.vis-form-input:focus,
.vis-form-textarea:focus {
  outline: none;
  border-color: var(--vis-accent);
}

.vis-form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.vis-form-checkbox {
  margin-top: 0.25rem;
  cursor: pointer;
}

.vis-checkbox-label {
  font-size: 0.85rem;
  color: var(--vis-text-muted);
  line-height: 1.4;
}

/* FAQ Accordion Section (Preset A: Reserve page bottom CSS-only Accordion, all open by default as required but styled cleanly) */
.vis-faq-outer {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.vis-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.vis-faq-item {
  background-color: var(--vis-surface);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 2rem;
}

.vis-faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
}

.vis-faq-answer {
  font-size: 0.95rem;
  color: var(--vis-text-muted);
}

/* Sidebar Info Cards for Trust / Education */
.vis-info-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding: 0 1.5rem;
}

.vis-info-card {
  background-color: var(--vis-surface-elevated);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 2rem;
}

.vis-info-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vis-info-card-num-badge {
  width: 32px;
  height: 32px;
  background-color: var(--vis-accent);
  color: #020813;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.vis-info-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vis-info-card-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.vis-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--vis-accent);
}

/* Footer (Shared) */
.vis-footer-outer {
  background-color: var(--vis-surface);
  border-top: 1px solid var(--vis-border-color);
  padding: 5rem 1.5rem 3rem 1.5rem;
}

.vis-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.vis-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.vis-footer-info {
  flex: 1.5;
  min-width: 300px;
}

.vis-footer-logo-desc {
  margin-top: 1.5rem;
  max-width: 400px;
}

.vis-footer-nav {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vis-footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.vis-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vis-footer-disclaimer-box {
  border-top: 1px solid var(--vis-border-color);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.vis-footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--vis-text-muted);
}

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

.vis-copyright {
  font-size: 0.8rem;
  color: var(--vis-text-muted);
}

/* Cookie Banner Styles */
.vis-cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--vis-surface-elevated);
  border-top: 2px solid var(--vis-accent);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

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

.vis-cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--vis-text);
}

.vis-cookie-btns {
  display: flex;
  gap: 1rem;
}

.vis-cookie-btn {
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

.vis-cookie-btn-accept {
  background: var(--vis-accent-gradient);
  color: #020813;
}

.vis-cookie-btn-decline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--vis-border-color);
}

/* Legal text formatting styles */
.vis-legal-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.vis-legal-title {
  margin-bottom: 2.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.vis-legal-section {
  margin-bottom: 2.5rem;
}

.vis-legal-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--vis-border-color);
  padding-bottom: 0.5rem;
}

.vis-legal-p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Thank you page specific overlay styles */
.vis-thank-card {
  max-width: 600px;
  margin: 8dvh auto;
  background-color: var(--vis-surface);
  border: 1px solid var(--vis-border-color);
  border-radius: var(--vis-radius);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vis-thank-icon {
  width: 80px;
  height: 80px;
  fill: var(--vis-accent);
  margin-bottom: 2rem;
}