/* ─── Tokens ─── */
:root {
  --bg: #050508;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.55);
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --accent-3: #64d2ff;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --blur: 24px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-height: 72px;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --code-keyword: #ff7ab2;
  --code-fn: #78dce8;
  --code-str: #a9dc76;
  --code-tag: #ff6b6b;
  --code-attr: #ffd866;
  --code-prop: #9cdcfe;
  --code-sel: #d4a5ff;
  --code-num: #fc9867;
  --code-var: #ab9df2;
  --code-op: rgba(245, 245, 247, 0.7);
  --code-ok: #30d158;
  --code-prompt: #64d2ff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Ambient background ─── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s var(--ease-out) infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0a84ff 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #5e5ce6 0%, transparent 70%);
  top: 40%;
  right: -15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #64d2ff 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ─── Glass morphism (iOS style) ─── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  width: calc(100% - 48px);
  max-width: 1100px;
  transition: top 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  top: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.logo-img {
  display: block;
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo--nav .logo-img {
  height: 26px;
}

.logo--footer .logo-img {
  height: 22px;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(16px + var(--nav-height) + 20px);
  left: 24px;
  right: 24px;
  z-index: 99;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  display: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1.05rem;
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
  font-family: inherit;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.5);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-glass:hover {
  background: var(--glass-highlight);
  border-color: var(--glass-highlight);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ─── Floating code snippets ─── */
.code-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-snippet {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0.92;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 40px rgba(0, 0, 0, 0.45);
  animation: codeFloat 14s var(--ease-out) infinite;
  will-change: transform;
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.code-filename {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.code-body {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.75);
  white-space: pre;
  tab-size: 2;
}

.code-body code {
  font-family: inherit;
}

.tok-kw { color: var(--code-keyword); }
.tok-fn { color: var(--code-fn); }
.tok-str { color: var(--code-str); }
.tok-tag { color: var(--code-tag); }
.tok-attr { color: var(--code-attr); }
.tok-prop { color: var(--code-prop); }
.tok-sel { color: var(--code-sel); }
.tok-num { color: var(--code-num); }
.tok-var { color: var(--code-var); }
.tok-comp { color: #78dce8; }
.tok-op { color: var(--code-op); }
.tok-ok { color: var(--code-ok); }
.tok-prompt { color: var(--code-prompt); }

.code-glyph {
  position: absolute;
  font-family: var(--mono);
  font-weight: 500;
  color: rgba(100, 210, 255, 0.12);
  user-select: none;
  animation: glyphFloat 18s var(--ease-out) infinite;
}

.cg-1 { top: 18%; left: 8%; font-size: 4rem; animation-delay: -2s; }
.cg-2 { top: 62%; right: 6%; font-size: 3.5rem; animation-delay: -6s; }
.cg-3 { bottom: 22%; left: 14%; font-size: 2.8rem; animation-delay: -10s; }
.cg-4 { top: 38%; right: 18%; font-size: 3rem; animation-delay: -4s; }

.cs-1 {
  top: 14%;
  left: 2%;
  width: 220px;
  transform: rotate(-6deg);
  animation-duration: 16s;
  animation-delay: 0s;
}

.cs-2 {
  top: 22%;
  right: 2%;
  width: 200px;
  transform: rotate(5deg);
  animation-duration: 18s;
  animation-delay: -4s;
}

.cs-3 {
  bottom: 28%;
  left: 4%;
  width: 190px;
  transform: rotate(4deg);
  animation-duration: 15s;
  animation-delay: -8s;
}

.cs-4 {
  bottom: 20%;
  right: 3%;
  width: 210px;
  transform: rotate(-5deg);
  animation-duration: 17s;
  animation-delay: -2s;
}

.cs-5 {
  top: 48%;
  right: 8%;
  width: 195px;
  transform: rotate(3deg);
  animation-duration: 19s;
  animation-delay: -12s;
  opacity: 0.75;
}

@keyframes codeFloat {
  0%, 100% { transform: translate(0, 0) rotate(var(--cs-rotate, 0deg)); }
  25% { transform: translate(8px, -14px) rotate(calc(var(--cs-rotate, 0deg) + 2deg)); }
  50% { transform: translate(-6px, 10px) rotate(calc(var(--cs-rotate, 0deg) - 1deg)); }
  75% { transform: translate(10px, 6px) rotate(calc(var(--cs-rotate, 0deg) + 1deg)); }
}

.cs-1 { --cs-rotate: -6deg; }
.cs-2 { --cs-rotate: 5deg; }
.cs-3 { --cs-rotate: 4deg; }
.cs-4 { --cs-rotate: -5deg; }
.cs-5 { --cs-rotate: 3deg; }

@keyframes glyphFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 0.2; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  overflow: hidden;
}

.hero > :not(.code-floats) {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 12px #30d158;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 520px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* ─── Sections ─── */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-alt .section-header,
.section-alt .timeline {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Cards ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-highlight);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 20px 48px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.15);
  margin-bottom: 1.25rem;
  color: var(--accent-3);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  list-style: none;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 132, 255, 0.35) 8%,
    rgba(94, 92, 230, 0.5) 50%,
    rgba(100, 210, 255, 0.35) 92%,
    transparent 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

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

.timeline-item--left .timeline-card {
  grid-column: 1;
  justify-self: end;
}

.timeline-item--left .timeline-node {
  grid-column: 2;
}

.timeline-item--right .timeline-node {
  grid-column: 2;
}

.timeline-item--right .timeline-card {
  grid-column: 3;
  justify-self: start;
}

.timeline-node {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(100, 210, 255, 0.45);
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.12),
    0 0 24px rgba(10, 132, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.08);
  box-shadow:
    0 0 0 6px rgba(10, 132, 255, 0.15),
    0 0 32px rgba(100, 210, 255, 0.4);
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-card {
  width: 100%;
  max-width: 340px;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.timeline-item--left:hover .timeline-card {
  transform: translateX(-6px);
}

.timeline-item--right:hover .timeline-card {
  transform: translateX(6px);
}

.timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1.625rem;
    transform: none;
  }

  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .timeline-item--left .timeline-card,
  .timeline-item--right .timeline-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
  }

  .timeline-item--left .timeline-node,
  .timeline-item--right .timeline-node {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item--left:hover .timeline-card,
  .timeline-item--right:hover .timeline-card {
    transform: translateX(4px);
  }

  .timeline-node {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* ─── Portfolio ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.portfolio-visual {
  height: 200px;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-item:hover .portfolio-visual {
  transform: scale(1.05);
}

.pv-1 {
  background-color: #1a1a2e;
  background-image: url('assets/wodtimer-app.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.pv-2 {
  background-color: #1a1a2e;
  background-image: url('assets/b360-dashboard.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.pv-3 {
  background-color: #1a1a2e;
  background-image: url('assets/baycsa-web.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-3);
}

.portfolio-info h3 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.25rem;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Booking / Cita ─── */
.booking-section {
  padding-bottom: 60px;
}

.booking-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
}

@media (min-width: 900px) {
  .booking-layout {
    grid-template-columns: 260px 1fr;
    padding: 2.5rem;
  }
}

.booking-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.booking-info > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.booking-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-3);
  margin-bottom: 1.25rem;
}

.booking-info-icon svg {
  width: 24px;
  height: 24px;
}

.booking-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-perks svg {
  width: 16px;
  height: 16px;
  color: var(--code-ok);
  flex-shrink: 0;
}

.booking-selected {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
}

.booking-selected-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-3);
  margin-bottom: 0.35rem;
}

.booking-selected strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.booking-widget {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-picker {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .booking-picker {
    grid-template-columns: 1fr 1fr;
  }
}

.calendar-panel {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calendar-month {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.calendar-nav:hover {
  background: var(--glass-highlight);
  border-color: var(--glass-highlight);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}

.cal-day:hover:not(:disabled):not(.cal-empty) {
  background: rgba(255, 255, 255, 0.08);
}

.cal-day.cal-selected {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}

.cal-day.cal-today:not(.cal-selected) {
  border: 1px solid var(--accent);
  color: var(--accent-3);
}

.cal-day:disabled,
.cal-day.cal-empty {
  cursor: default;
  opacity: 0.3;
}

.cal-day:disabled:not(.cal-empty) {
  opacity: 0.25;
  text-decoration: line-through;
}

.times-panel {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.times-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.times-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 4px;
}

.time-slots::-webkit-scrollbar {
  width: 4px;
}

.time-slots::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

.time-slot {
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-family: var(--mono);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}

.time-slot:hover {
  border-color: var(--glass-highlight);
  background: rgba(255, 255, 255, 0.08);
}

.time-slot.cal-selected,
.time-slot.time-selected {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--accent);
  color: var(--accent-3);
  font-weight: 500;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field .optional {
  font-weight: 400;
  opacity: 0.7;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(245,245,247,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select option {
  background: #1a1a1f;
  color: var(--text);
}

#booking-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.booking-success {
  text-align: center;
  padding: 2rem 1rem;
}

.booking-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  color: var(--code-ok);
}

.booking-success-icon svg {
  width: 28px;
  height: 28px;
}

.booking-success h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.booking-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.booking-success-note {
  font-size: 0.85rem !important;
  margin: 1rem 0 1.5rem;
}

/* ─── CTA / Contact ─── */
.cta-section {
  padding-bottom: 120px;
}

.cta-box {
  padding: 3rem;
  border-radius: calc(var(--radius) + 4px);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input::placeholder {
  color: rgba(245, 245, 247, 0.35);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  color: #30d158;
  font-size: 0.95rem;
  text-align: center;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 0 24px 24px;
  border-radius: var(--radius);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero .reveal:nth-child(4) { transition-delay: 0.45s; }
.hero .reveal:nth-child(5) { transition-delay: 0.55s; }
.hero .reveal:nth-child(6) { transition-delay: 0.65s; }

/* ─── Responsive ─── */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .cs-5,
  .cg-4 {
    display: none;
  }

  .code-snippet {
    opacity: 0.65;
    font-size: 0.95em;
  }

  .cs-1 { left: -4%; }
  .cs-2 { right: -4%; }
  .cs-4 { right: -2%; }
}

@media (max-width: 768px) {
  .code-floats .code-snippet,
  .code-floats .code-glyph {
    display: none;
  }

  .code-floats::before,
  .code-floats::after {
    content: '{ }';
    position: absolute;
    font-family: var(--mono);
    font-size: 2.5rem;
    color: rgba(100, 210, 255, 0.08);
    animation: glyphFloat 12s var(--ease-out) infinite;
  }

  .code-floats::before {
    top: 12%;
    left: 6%;
  }

  .code-floats::after {
    content: '</>';
    bottom: 18%;
    right: 6%;
    animation-delay: -5s;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .logo--nav .logo-img {
    height: 22px;
  }

  .hero {
    padding-top: calc(16px + var(--nav-height) + 56px);
  }

  body.menu-open .hero {
    padding-top: calc(16px + var(--nav-height) + 200px);
    transition: padding-top 0.35s var(--ease-out);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
