:root {
  --bg: #050717;
  --panel: #101428;
  --panel-soft: #171b31;
  --ink: #f4f6ff;
  --muted: #a7adbf;
  --faint: #71778d;
  --line: rgba(255, 255, 255, 0.1);
  --teal: #66d8cc;
  --blue: #6aa7ff;
  --violet: #a78bfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(5, 7, 23, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.brand-mark,
.portrait-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: white;
  font-weight: 800;
}
.brand strong { display: block; font-size: 17px; line-height: 1; }
.brand small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); color: var(--muted); font-weight: 600; }
nav a:hover { color: var(--ink); }
.nav-cta,
.btn,
.submit-btn,
.chat-form button,
.floating-chat {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 30px rgba(106, 167, 255, 0.24);
}
.nav-cta { padding: 11px 22px; border-radius: 999px; white-space: nowrap; }

.hero {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 54px 20px 44px;
  background:
    linear-gradient(rgba(102, 216, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 216, 204, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #0a1424 0%, #050717 46%, #12122c 100%);
  background-size: 80px 80px, 80px 80px, auto;
  border-bottom: 1px solid var(--line);
}
.hero-inner { width: min(780px, 100%); text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 216, 204, 0.28);
  background: rgba(102, 216, 204, 0.09);
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}
h1 { font-size: clamp(46px, 7vw, 82px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h1 em, h2 em { color: var(--teal); font-style: italic; }
.hero-copy,
.section-copy,
.section-head p,
.about-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
}
.hero-copy { max-width: 680px; margin: 20px auto 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { min-width: 164px; padding: 13px 20px; border-radius: 999px; }
.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: none;
}

.book-section,
.chat-section,
.info-section,
.about-section,
.reviews-section {
  padding: clamp(38px, 5.6vw, 68px) clamp(18px, 5vw, 54px);
}
.book-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.quick-card,
.intake-card,
.chat-card,
.service-grid article,
.portrait-card,
.review-grid blockquote {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.quick-card,
.intake-card,
.chat-card { padding: clamp(20px, 2.6vw, 28px); }
.quick-card h2 { margin-bottom: 18px; }
.quick-list { display: grid; gap: 10px; }
details {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 13px 15px;
}
summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: 15px; }
details p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.contact-strip {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(102, 216, 204, 0.14), rgba(106, 167, 255, 0.1));
}
.contact-strip span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }

.intake-card h2 { margin-bottom: 12px; }
.section-copy { margin: 0 0 18px; font-size: 16px; }
.intake-form { display: grid; gap: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 800; font-size: 14px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  outline: none;
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.form-note { margin: -2px 0 0; color: var(--faint); line-height: 1.5; }
.submit-btn { min-height: 50px; border-radius: 15px; font-size: 16px; }
.success-message {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  color: #ccfbf1;
  border: 1px solid rgba(102, 216, 204, 0.25);
  background: rgba(102, 216, 204, 0.12);
}
.success-message.show { display: block; }

.chat-section { padding-top: 0; }
.chat-card { width: min(900px, 100%); margin: 0 auto; }
.chat-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 16px; }
.status-dot {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(102, 216, 204, 0.08);
  border: 1px solid rgba(102, 216, 204, 0.22);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.messages {
  display: grid;
  gap: 12px;
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.message {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.message.assistant { background: rgba(255, 255, 255, 0.07); }
.message.user { justify-self: end; background: rgba(106, 167, 255, 0.22); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; }
.chat-form button { min-width: 96px; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
}

.section-head { width: min(860px, 100%); margin: 0 auto 24px; text-align: center; }
.service-grid,
.review-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-grid article,
.review-grid blockquote { margin: 0; padding: 21px; }
.service-grid h3 { margin: 0 0 8px; font-size: 19px; }
.service-grid p,
.review-grid p { color: var(--muted); line-height: 1.65; margin: 0; }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
}
.portrait-card {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(102, 216, 204, 0.12), rgba(167, 139, 250, 0.12)),
    rgba(255, 255, 255, 0.045);
}
.portrait-mark { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 16px; font-size: 24px; }
.portrait-card strong,
.portrait-card span { display: block; }
.portrait-card span { margin-top: 8px; color: var(--muted); }

.reviews-section { background: #070a1a; }
.review-grid blockquote { position: relative; }
.review-grid blockquote::before {
  content: "★★★★★";
  display: block;
  color: #facc15;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
cite { display: block; margin-top: 18px; color: var(--ink); font-style: normal; font-weight: 800; }

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px 20px;
  color: var(--faint);
  background: #02030d;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  nav { display: none; }
  .book-layout,
  .about-section,
  .service-grid,
  .review-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

@media (max-width: 640px) {
  .site-header { min-height: 66px; }
  .brand { min-width: 0; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .nav-cta { padding: 11px 15px; }
  .hero { padding-top: 56px; }
  h1 { font-size: 54px; }
  .hero-actions,
  .chat-form,
  .form-grid { grid-template-columns: 1fr; flex-direction: column; }
  .btn { width: 100%; }
  .message { max-width: 100%; }
  .floating-chat { width: 58px; height: 58px; font-size: 14px; }
}
