*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #111111;
  --muted: #666666;
  --accent: #ff6b3d;
  --border: #e5e5e5;
  --radius: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.section {
  padding: var(--space-6) var(--space-2);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.title-xxl {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

.subtitle {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-3);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  gap: var(--space-2);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 64px;
    right: var(--space-2);
    flex-direction: column;
    background: #fff;
    padding: var(--space-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    min-width: 220px;
    display: none;
  }
  .menu[data-open="true"] {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-solid {
  background: #111;
  color: #fff;
}

.btn-solid:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #111;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-2) 0 var(--space-3);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-3d {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: var(--space-3);
  background: radial-gradient(circle at 10% 0%, #fbe9e7, #ffffff 45%, #e3f2fd);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.hero-orbit {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(0,0,0,0.06);
}

.hero-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  opacity: 0.8;
}

.hero-node:nth-child(1) { top: 8%; left: 40%; }
.hero-node:nth-child(2) { top: 40%; right: 10%; }
.hero-node:nth-child(3) { bottom: 14%; left: 22%; }
.hero-node:nth-child(4) { bottom: 20%; right: 36%; }

.hero-core {
  position: absolute;
  inset: 32%;
  border-radius: 32px;
  background: rgba(17,17,17,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orbit {
    animation: spin 36s linear infinite;
    transform-origin: center;
  }
  .hero-node {
    animation: float 10s ease-in-out infinite alternate;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  to { transform: translate3d(4px, -6px, 0); }
}

.site-foot {
  border-top: 1px solid #eee;
  padding: var(--space-3) var(--space-2) var(--space-4);
  font-size: 0.9rem;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
}

.foot-links {
  display: flex;
  gap: var(--space-2);
}

.service-cards {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .service-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.video-cards {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .video-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.center {
  text-align: center;
}

/* Form */
.form {
  display: grid;
  gap: var(--space-2);
  max-width: 640px;
}

.form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

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

.form fieldset {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: var(--space-2);
}

.form legend {
  font-weight: 600;
  padding: 0 4px;
}

.form .option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form .option-row label {
  font-weight: 400;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
  border: 1px solid #000;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #eee;
  background: rgba(255,255,255,0.96);
  padding: 8px var(--space-2);
  z-index: 40;
  display: none;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* Focus visible */
:where(a, button, .btn, input, select, textarea) {
  outline: none;
}

:where(a, button, .btn, input, select, textarea):focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li + li {
  margin-top: 8px;
}


/* Assistant services */
.assistant-step + .assistant-step {
  margin-top: var(--space-3);
}
.btn-chip {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.btn-chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.assistant-result {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}
.assistant-result a.btn {
  margin-right: 8px;
  margin-top: 8px;
}


/* Hero section with subtle tint */
.section-hero {
  background: radial-gradient(circle at 0% 0%, #fff3e8, #ffffff 55%, #e8f0ff);
  padding-top: calc(var(--space-6) * 1.1);
  padding-bottom: calc(var(--space-6) * 1.1);
}
.section-hero .title-xxl {
  font-size: clamp(30px, 4.8vw, 48px);
}

/* Alternate background sections for rhythm */
.section-alt {
  background: var(--bg-alt);
}

/* Narrow sections */
.section-narrow .container {
  max-width: 760px;
}

/* Symmetry: cards fill height in grids */
.grid > .card,
.service-cards .card,
.video-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.grid > .card p:last-child,
.service-cards .card p:last-child,
.video-cards .card p:last-child {
  margin-top: auto;
}

/* Hero alignment */
.hero {
  align-items: center;
}

/* Assistant visual tweaks */
#assistant-services {
  box-shadow: var(--shadow-soft);
}
.assistant-step + .assistant-step {
  margin-top: var(--space-3);
}
.btn-chip {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.btn-chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.assistant-result {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
  background: #fafafa;
}
.assistant-result a.btn {
  margin-right: 8px;
  margin-top: 8px;
}

/* Packages: highlight recommended */
.packages-grid {
  align-items: stretch;
}
.card-package {
  position: relative;
}
.card-package-featured {
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.card-package-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #111;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Testimonials styling */
.testimonials .card p:first-child {
  position: relative;
  font-style: italic;
  padding-top: var(--space-2);
}
.testimonials .card p:first-child::before {
  content: "“";
  position: absolute;
  left: -4px;
  top: -8px;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.testimonials .card p:last-child {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: 8px;
}
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-question span:first-child {
  font-weight: 600;
}
.faq-icon {
  font-size: 18px;
}
.faq-panel {
  padding: 0 14px 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.faq-item.is-open .faq-question {
  background: #fafafa;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Section titles: consistent spacing */
.section .title-xxl {
  margin-bottom: var(--space-2);
}
.section .subtitle {
  margin-bottom: var(--space-3);
}


/* Snack content card: centered and intentional */
.card-snack {
  margin-top: var(--space-3);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
