/* --- CSS VARIABLES WITH THEMATIC CUSTOM NAMES --- */
:root {
  --opti-shade-dark: #0b0f14;
  --opti-shade-deep: #070a0d;
  --opti-shade-light: #ffffff;
  --opti-surface-pale: #f4f6f9;
  --opti-surface-card: #ffffff;
  --opti-neon-accent: #00e5ff;
  --opti-neon-hover: #00b3cc;
  --opti-accent-mute: rgba(0, 229, 255, 0.1);
  --opti-ink-dark: #121820;
  --opti-ink-light: #f4f6f9;
  --opti-ink-muted: #64748b;
  --opti-border-color: #e2e8f0;
  --opti-shadow-standard: 0 4px 20px -2px rgba(11, 15, 20, 0.08);
  --opti-shadow-hover: 0 12px 30px -4px rgba(11, 15, 20, 0.16);
  --opti-radius-soft: 16px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* --- RESET & GLOBAL SETTINGS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--opti-ink-dark);
  background-color: var(--opti-shade-light);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--opti-ink-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- LAYOUT GENERICS --- */
.opti-pnl-spacious {
  padding: 16dvh 0;
}

.opti-pnl-compact {
  padding: 6dvh 0;
}

.opti-shield-max {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER (SHARED) --- */
.opti-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--opti-shade-dark);
  color: var(--opti-ink-light);
  box-shadow: 0 2px 15px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.opti-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.opti-brand-anchor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opti-brand-icon {
  width: 40px;
  height: 40px;
  fill: var(--opti-neon-accent);
}

.opti-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--opti-ink-light);
}

.opti-brand-name span {
  color: var(--opti-neon-accent);
}

/* Navigation & Hamburger Combo */
.opti-nav-toggler {
  display: none;
}

.opti-nav-label {
  display: none;
  cursor: pointer;
}

.opti-nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.opti-nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  color: var(--opti-ink-light);
}

.opti-nav-link:hover,
.opti-nav-link.active {
  color: var(--opti-neon-accent);
}

.opti-pill-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--opti-radius-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--opti-neon-accent);
  color: var(--opti-shade-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}

.opti-pill-trigger:hover {
  background-color: var(--opti-neon-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

/* Scroll Progress Tracker */
.scroll-progress {
  height: 3px;
  width: 0;
  background-color: var(--opti-neon-accent);
  position: absolute;
  bottom: 0;
  left: 0;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

@keyframes progress-grow {
  to { width: 100%; }
}

/* Mobile responsive hamburger menu */
@media (max-width: 768px) {
  .opti-nav-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1001;
  }

  .opti-nav-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--opti-ink-light);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .opti-nav-list {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--opti-shade-dark);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  .opti-nav-toggler:checked ~ .opti-nav-list {
    transform: translateX(0);
  }

  .opti-nav-toggler:checked ~ .opti-nav-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .opti-nav-toggler:checked ~ .opti-nav-label span:nth-child(2) {
    opacity: 0;
  }

  .opti-nav-toggler:checked ~ .opti-nav-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* --- HERO BLOCK (PRESET A - INDEX) --- */
.opti-hero-pnl {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background: linear-gradient(rgba(7, 10, 13, 0.65), rgba(7, 10, 13, 0.75)), url('img/bg.webp') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--opti-ink-light);
}

.opti-hero-content {
  max-width: 800px;
}

.opti-hero-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--opti-neon-accent);
  margin-bottom: 20px;
}

.opti-hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 24px;
}

.opti-hero-para {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating stat-bar overlap */
.opti-board-float {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  background-color: transparent;
}

.opti-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.opti-board-card {
  background-color: var(--opti-surface-card);
  padding: 32px;
  border-radius: var(--opti-radius-soft);
  box-shadow: var(--opti-shadow-standard);
  border: 1px solid var(--opti-border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opti-board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--opti-shadow-hover);
}

.opti-board-digit {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--opti-neon-hover);
  line-height: 1;
  margin-bottom: 8px;
}

.opti-board-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--opti-ink-dark);
}

/* --- LIGHT CONTENT ZONES --- */
.opti-content-pnl {
  background-color: var(--opti-shade-light);
}

.opti-zigzag-row {
  display: flex;
  align-items: center;
  gap: 6dvh;
  margin-bottom: 12dvh;
}

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

.opti-zigzag-col {
  flex: 1;
}

.opti-panel-skew-right {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--opti-radius-soft);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  box-shadow: var(--opti-shadow-standard);
}

.opti-panel-skew-left {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--opti-radius-soft);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  box-shadow: var(--opti-shadow-standard);
}

.opti-heading-decorated {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.opti-heading-decorated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--opti-neon-hover);
  border-radius: 2px;
}

.opti-para-lead {
  font-size: 1.1rem;
  color: var(--opti-ink-muted);
  margin-bottom: 16px;
}

/* --- FEATURES GRID (2x2) --- */
.opti-feature-pnl {
  background-color: var(--opti-surface-pale);
}

.opti-section-hdr-center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.opti-section-tag {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--opti-neon-hover);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.opti-section-title {
  font-size: 2.2rem;
}

.opti-feature-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

@media (max-width: 600px) {
  .opti-feature-rack {
    grid-template-columns: 1fr;
  }
}

.opti-feature-tile {
  background-color: var(--opti-surface-card);
  padding: 40px;
  border-radius: var(--opti-radius-soft);
  border-left: 5px solid var(--opti-neon-hover);
  box-shadow: var(--opti-shadow-standard);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opti-feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--opti-shadow-hover);
}

.opti-tile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.opti-tile-icon {
  width: 48px;
  height: 48px;
  fill: var(--opti-neon-hover);
  background-color: var(--opti-accent-mute);
  padding: 10px;
  border-radius: 50%;
}

.opti-tile-title {
  font-size: 1.25rem;
}

.opti-tile-text {
  color: var(--opti-ink-muted);
}

/* --- TIMELINE SECTION --- */
.opti-timeline-pnl {
  background-color: var(--opti-shade-light);
}

.opti-timeline-axis {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.opti-timeline-axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--opti-border-color);
  transform: translateX(-50%);
}

.opti-timeline-node {
  position: relative;
  margin-bottom: 80px;
  width: 50%;
  padding: 0 40px;
}

.opti-timeline-node:last-child {
  margin-bottom: 0;
}

.opti-timeline-node:nth-child(odd) {
  left: 0;
  text-align: right;
}

.opti-timeline-node:nth-child(even) {
  left: 50%;
  text-align: left;
}

.opti-node-orbit {
  position: absolute;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--opti-neon-hover);
  color: var(--opti-shade-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 2;
}

.opti-timeline-node:nth-child(odd) .opti-node-orbit {
  right: -16px;
}

.opti-timeline-node:nth-child(even) .opti-node-orbit {
  left: -16px;
}

.opti-node-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.opti-node-body {
  color: var(--opti-ink-muted);
}

@media (max-width: 768px) {
  .opti-timeline-axis::before {
    left: 20px;
  }
  .opti-timeline-node {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
    margin-bottom: 48px;
  }
  .opti-timeline-node:nth-child(even) {
    left: 0;
  }
  .opti-timeline-node .opti-node-orbit {
    left: 4px !important;
    right: auto !important;
  }
}

/* --- CTA STRIP (INDEX) --- */
.opti-stripe-pnl {
  background: linear-gradient(rgba(7, 10, 13, 0.75), rgba(7, 10, 13, 0.85)), url('img/bg.webp') no-repeat center center / cover;
  background-attachment: fixed;
  color: var(--opti-ink-light);
  text-align: center;
}

.opti-stripe-title {
  color: var(--opti-ink-light);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.opti-stripe-para {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: #cbd5e1;
}

/* --- EXPERT PAGE HERO & LAYOUT --- */
.opti-expert-hero {
  background: linear-gradient(rgba(7, 10, 13, 0.85), rgba(7, 10, 13, 0.95)), url('img/bg.webp') no-repeat center center / cover;
  height: 45vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--opti-ink-light);
}

.opti-split-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.opti-split-col {
  flex: 1;
}

.opti-expert-portrait {
  width: 100%;
  border-radius: var(--opti-radius-soft);
  box-shadow: var(--opti-shadow-hover);
}

/* --- RESERVATION FORM & FAQ --- */
.opti-reserve-hero {
  background: linear-gradient(rgba(7, 10, 13, 0.85), rgba(7, 10, 13, 0.95)), url('img/bg.webp') no-repeat center center / cover;
  height: 35vh;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--opti-ink-light);
}

.opti-form-frame {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--opti-surface-card);
  padding: 48px;
  border-radius: var(--opti-radius-soft);
  box-shadow: var(--opti-shadow-hover);
  border: 1px solid var(--opti-border-color);
}

.opti-field-group {
  margin-bottom: 24px;
}

.opti-field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.opti-field-input {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1.5px solid var(--opti-border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.opti-field-input:focus {
  outline: none;
  border-color: var(--opti-neon-hover);
}

.opti-tick-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--opti-ink-muted);
  cursor: pointer;
}

.opti-tick-checkbox {
  margin-top: 4px;
}

.opti-submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* FAQ Accordion Styling (Open Only) */
.opti-faq-box {
  margin-top: 80px;
}

.opti-faq-item {
  background-color: var(--opti-surface-pale);
  padding: 24px;
  border-radius: var(--opti-radius-soft);
  margin-bottom: 16px;
}

.opti-faq-q {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.opti-faq-a {
  color: var(--opti-ink-muted);
}

/* --- FOOTER (SHARED) --- */
.opti-global-footer {
  background-color: var(--opti-shade-deep);
  color: var(--opti-ink-light);
  padding: 80px 0 40px;
}

.opti-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.opti-footer-brand-bio {
  color: #94a3b8;
}

.opti-footer-head {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--opti-neon-accent);
}

.opti-footer-list {
  list-style: none;
}

.opti-footer-item {
  margin-bottom: 12px;
}

.opti-footer-link {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.opti-footer-link:hover {
  color: var(--opti-neon-accent);
}

.opti-disclaimer-card {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
  text-align: center;
}

.opti-disclaimer-text {
  font-size: 0.8rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 24px;
}

.opti-copyright {
  font-size: 0.85rem;
  color: #475569;
}

/* --- COOKIE NOTIFIER --- */
.opti-cookie-plate {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--opti-shade-dark);
  color: var(--opti-ink-light);
  padding: 20px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: none;
}

.opti-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.opti-cookie-text {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.opti-cookie-buttons {
  display: flex;
  gap: 12px;
}

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

.opti-cookie-btn-allow {
  background-color: var(--opti-neon-accent);
  color: var(--opti-shade-dark);
}

.opti-cookie-btn-deny {
  background-color: transparent;
  border: 1px solid var(--opti-ink-muted);
  color: var(--opti-ink-light);
}

/* --- VIEWPORT ENTRY REVEALS (CSS-ONLY) --- */
.opti-fade-in-section {
  animation: reveal-view linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

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

/* Responsive adjustments for grids & splits */
@media (max-width: 992px) {
  .opti-zigzag-row {
    flex-direction: column !important;
  }
  .opti-split-row {
    flex-direction: column !important;
  }
}