/* ============================================================
   UpTopFlow — Operational Clarity for Mission Critical Facilities
   Brand system + components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand colors */
  --navy:        #0A0F1E;   /* darkest background */
  --navy-2:      #0D1424;   /* raised dark surface */
  --navy-3:      #121A30;   /* card on dark */
  --blue:        #1B3D8F;   /* deep blue */
  --blue-light:  #4AABF0;   /* light blue */
  --teal:        #00C9C8;   /* primary accent */
  --teal-dim:    #0AA3A2;

  /* Neutrals */
  --grey:        #EDF1F7;   /* light grey section bg */
  --grey-2:      #E2E8F2;
  --white:       #FFFFFF;
  --ink:         #0A1124;   /* dark text on light */
  --ink-soft:    #515C72;   /* muted dark text */
  --line-light:  #DCE3EE;
  --mist:        rgba(233,239,250,0.70);  /* muted text on dark */
  --mist-dim:    rgba(233,239,250,0.46);
  --hair:        rgba(255,255,255,0.09);  /* hairline on dark */

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.section-pad { padding: 120px 0; }

/* alternating surfaces */
.s-navy  { background: var(--navy); color: var(--white); }
.s-grey  { background: var(--grey); color: var(--ink); }
.s-white { background: var(--white); color: var(--ink); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,201,200,0.16);
}

/* ---------- Headings ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 5.4vw, 70px); }
.h2 { font-size: clamp(32px, 4vw, 52px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--mist);
  max-width: 60ch;
}
.s-grey .lead, .s-white .lead { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-teal {
  background: var(--teal); color: #04201F;
  box-shadow: 0 8px 30px -10px rgba(0,201,200,0.55);
}
.btn-teal:hover { background: #18d6d5; box-shadow: 0 12px 38px -10px rgba(0,201,200,0.75); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(0,201,200,0.55);
}
.btn-outline:hover { background: rgba(0,201,200,0.12); border-color: var(--teal); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,15,30,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); background: rgba(10,15,30,0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand .word b { color: var(--teal); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; color: var(--mist); font-weight: 500;
  transition: color .18s ease; position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 118px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(27,61,143,0.55), transparent 60%),
    radial-gradient(640px 420px at 8% 90%, rgba(0,201,200,0.10), transparent 65%);
  pointer-events: none;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(110% 90% at 70% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(110% 90% at 70% 0%, #000 35%, transparent 78%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('images/blueprint-render.jpg');
  background-size: cover; background-position: center right;
  opacity: 0.58;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,15,30,0.88) 0%, rgba(10,15,30,0.42) 48%, rgba(10,15,30,0.58) 100%),
              linear-gradient(180deg, rgba(10,15,30,0.12) 0%, rgba(10,15,30,0.5) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 16px; }
.hero .body { color: var(--mist); font-size: 16.5px; line-height: 1.68; max-width: 52ch; margin-bottom: 34px; }

/* floating stat card */
.float-card {
  position: relative;
  background: linear-gradient(160deg, rgba(18,26,48,0.95), rgba(10,15,30,0.95));
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
  overflow: hidden;
}
.float-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue-light));
}
.float-card .fc-top { display: flex; align-items: center; gap: 9px; color: var(--mist); font-size: 14px; font-family: var(--font-mono); letter-spacing: .04em; }
.float-card .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0,201,200,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,201,200,0.5);} 70%{ box-shadow: 0 0 0 12px rgba(0,201,200,0);} 100%{ box-shadow:0 0 0 0 rgba(0,201,200,0);} }
.float-card .fc-num { font-family: var(--font-display); font-weight: 600; font-size: 54px; letter-spacing: -0.02em; margin: 18px 0 4px; line-height: 1; }
.float-card .fc-num span { color: var(--teal); }
.float-card .fc-sub { color: var(--mist-dim); font-size: 14px; }
.float-card .fc-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 26px; }
.float-card .fc-bars i { flex: 1; background: linear-gradient(var(--teal), rgba(0,201,200,0.25)); border-radius: 2px; opacity: .8; }
.fc-divider { height: 1px; background: var(--hair); margin: 24px 0 18px; }
.fc-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; color: var(--mist-dim); }
.fc-meta b { color: var(--white); font-weight: 600; }

/* ---------- Section header block ---------- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Problem cards (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.p-card {
  border-radius: var(--radius); padding: 34px 32px;
  display: flex; flex-direction: column; min-height: 250px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover { transform: translateY(-4px); }
.p-card .pc-idx { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; margin-bottom: auto; opacity: .55; }
.p-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.18; margin: 0 0 14px; letter-spacing: -0.01em; }
.p-card p { font-size: 15.5px; line-height: 1.62; }
.p-light {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-light);
  box-shadow: 0 18px 40px -28px rgba(20,40,90,0.25);
}
.p-light p { color: var(--ink-soft); }
.p-light .pc-idx { color: var(--blue); opacity: .8; }
.p-dark {
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(0,201,200,0.28);
  position: relative; overflow: hidden;
}
.p-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 90% 0%, rgba(0,201,200,0.14), transparent 60%);
  pointer-events: none;
}
.p-dark p { color: var(--mist); }
.p-dark .pc-idx { color: var(--teal); opacity: 1; }
.p-dark h3 { color: var(--white); }
/* bento spans: 5 cards across 6 cols -> rows of 3 + 2 */
.bento .p-card:nth-child(1) { grid-column: span 2; }
.bento .p-card:nth-child(2) { grid-column: span 2; }
.bento .p-card:nth-child(3) { grid-column: span 2; }
.bento .p-card:nth-child(4) { grid-column: span 3; }
.bento .p-card:nth-child(5) { grid-column: span 3; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card {
  background: var(--navy-3);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.stat-card:hover { border-color: rgba(0,201,200,0.4); transform: translateY(-4px); }
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 34px; bottom: 34px; width: 3px;
  background: var(--teal); border-radius: 2px; opacity: .85;
}
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.4vw, 56px); color: var(--teal); letter-spacing: -0.02em; line-height: 1; margin-bottom: 16px; }
.stat-desc { color: var(--mist); font-size: 15.5px; line-height: 1.55; }
.stat-src { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--mist-dim); text-transform: uppercase; }

/* ---------- Services (image cards) ---------- */
.svc-stack { display: flex; flex-direction: column; gap: 22px; }
.svc-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(115deg, #0E1A38 0%, #122a5f 55%, #0c1430 100%);
}
.svc-card .svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.svc-card .svc-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.svc-card .svc-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,12,26,0.15) 0%, rgba(7,12,26,0.55) 55%, rgba(7,12,26,0.92) 100%);
}
.svc-content { position: relative; z-index: 3; padding: 46px 48px; color: #fff; max-width: 760px; }
.svc-num { position: absolute; top: 36px; right: 44px; z-index: 3; font-family: var(--font-mono); font-weight: 500; font-size: 18px; color: rgba(255,255,255,0.85); letter-spacing: .1em; }
.svc-num::before { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--teal); vertical-align: middle; margin-right: 10px; }
.svc-content h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px,3vw,36px); margin-bottom: 14px; letter-spacing: -0.01em; }
.svc-content p { color: rgba(233,239,250,0.84); font-size: 16px; line-height: 1.62; max-width: 62ch; }
.svc-tag { display:inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing:.12em; text-transform:uppercase; color: var(--teal); margin-bottom:16px; }

/* split variant — text + framed schematic (Integration card) */
.svc-card.svc-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding: 52px 48px;
  background: linear-gradient(120deg, #0c1733 0%, #102a5e 60%, #0b1430 100%);
}
.svc-card.svc-split .svc-content { position: static; padding: 0; max-width: none; z-index: 2; }
.svc-figure {
  position: relative; z-index: 2;
  background: #fff; border-radius: 16px; padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 36px 70px -34px rgba(0,0,0,0.65);
}
.svc-figure::before {
  content: 'REFERENCE ARCHITECTURE'; position: absolute; top: -11px; left: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: #04201F; background: var(--teal); padding: 3px 9px; border-radius: 5px;
}
.svc-figure img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* ---------- Process timeline ---------- */
#process { overflow: hidden; }
#process > .wrap { position: relative; z-index: 2; }
.sec-bg { position: absolute; inset: 0; z-index: 0; }
.sec-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('images/blueprint-render.jpg');
  background-size: cover; background-position: center;
  opacity: 0.26;
}
.sec-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,15,30,0.86) 0%, rgba(10,15,30,0.52) 46%, rgba(10,15,30,0.74) 100%),
              linear-gradient(180deg, rgba(10,15,30,0.30) 0%, rgba(10,15,30,0.80) 100%);
}
/* light-section variant (Why Us) */
#why { overflow: hidden; }
#why > .wrap { position: relative; z-index: 2; }
.sec-bg--light::before { opacity: 0.14; }
.sec-bg--light::after {
  background: linear-gradient(110deg, rgba(237,241,247,0.80) 0%, rgba(237,241,247,0.62) 50%, rgba(237,241,247,0.82) 100%),
              linear-gradient(180deg, rgba(237,241,247,0.66) 0%, rgba(237,241,247,0.90) 100%);
}
.timeline { position: relative; }
.timeline-line { position: absolute; top: 28px; left: 7%; right: 7%; height: 2px; background: linear-gradient(90deg, rgba(0,201,200,0.15), rgba(0,201,200,0.55), rgba(0,201,200,0.15)); z-index: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; z-index: 1; }
.step { text-align: left; }
.step .node {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--teal); background: var(--navy-2);
  border: 1.5px solid var(--teal);
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px rgba(10,15,30,1), 0 0 24px -6px rgba(0,201,200,0.5);
}
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { color: var(--mist); font-size: 14.5px; line-height: 1.58; }
.step.feature h4 { color: var(--white); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-card {
  background: var(--white); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 40px 38px;
  box-shadow: 0 20px 46px -32px rgba(20,40,90,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -34px rgba(20,40,90,0.4); }
.why-card .why-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,201,200,0.12); display: flex; align-items: center; justify-content: center; color: var(--teal-dim); margin-bottom: 22px; }
.why-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 13px; color: var(--ink); letter-spacing: -0.01em; }
.why-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line-light); border-radius: 14px;
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
  border-left: 3px solid transparent;
}
.faq-item.open { border-color: var(--line-light); border-left-color: var(--teal); box-shadow: 0 18px 44px -30px rgba(20,40,90,0.35); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 24px 28px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.35;
  transition: color .18s ease;
}
.faq-q:hover { color: var(--teal-dim); }
.faq-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--teal); color: var(--teal);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), background .2s ease, color .2s ease;
}
.faq-icon svg { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal); color: #04201F; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.7,.2,1); }
.faq-a-inner { padding: 0 28px 26px; }
.faq-a p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.66; max-width: 72ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info { padding-top: 4px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.contact-row:first-of-type { border-top: 1px solid var(--hair); }
.contact-row .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(0,201,200,0.10); border: 1px solid rgba(0,201,200,0.22); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.contact-row > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.contact-row .cr-label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim); }
.contact-row .cr-val { display: block; font-size: 17px; color: var(--white); font-weight: 500; }
.contact-note { margin-top: 34px; color: var(--mist); font-size: 15px; line-height: 1.6; }

.form-card { background: var(--navy-3); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--mist); margin-bottom: 8px; letter-spacing: .01em; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid var(--hair); border-radius: 12px;
  padding: 13px 15px; transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(233,239,250,0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(0,201,200,0.05); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; background: rgba(255,107,107,0.06); }
.field .err { display: none; color: #ff8989; font-size: 12.5px; margin-top: 6px; font-family: var(--font-mono); }
.field.invalid .err { display: block; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-ok { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(0,201,200,0.12); border: 1px solid rgba(0,201,200,0.4); color: var(--teal); font-size: 14.5px; text-align: center; }
.form-ok.show { display: block; }

/* ---------- Booking (Cal.com) ---------- */
.book-wrap { margin-top: 84px; padding-top: 64px; border-top: 1px solid var(--hair); }
.book-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.book-or { display: block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.book-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; line-height: 1.08; margin-bottom: 14px; }
.book-head p { color: var(--mist); font-size: 16.5px; line-height: 1.62; max-width: 56ch; margin: 0 auto; }
.book-card {
  background: #fff; border-radius: var(--radius-lg); padding: 10px;
  height: 720px; overflow: hidden; border: 1px solid var(--hair);
  box-shadow: 0 40px 80px -42px rgba(0,0,0,0.85);
}
.book-card #my-cal-inline-30min { height: 100%; border-radius: 18px; }
@media (max-width: 760px) {
  .book-wrap { margin-top: 56px; padding-top: 48px; }
  .book-card { height: 640px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); border-top: 1px solid var(--hair); padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding-bottom: 44px; border-bottom: 1px solid var(--hair); }
.footer .tagline { color: var(--mist); font-size: 15.5px; line-height: 1.6; max-width: 44ch; margin-top: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); font-size: 15px; transition: color .18s ease; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; color: var(--mist-dim); font-size: 13px; font-family: var(--font-mono); letter-spacing: .03em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--mist-dim); transition: color .18s ease; }
.footer-legal a:hover { color: var(--teal); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 130px 0 56px; position: relative; overflow: hidden; }
.legal-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 80% -10%, rgba(27,61,143,0.5), transparent 62%),
              radial-gradient(560px 360px at 0% 110%, rgba(0,201,200,0.08), transparent 65%);
}
.legal-hero .wrap { position: relative; z-index: 1; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--mist); margin-bottom: 26px; transition: color .18s ease; }
.legal-back:hover { color: var(--teal); }
.legal-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.02em; line-height: 1.04; }
.legal-updated { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em; color: var(--teal); text-transform: uppercase; }

.legal-body { padding: 8px 0 110px; }
.legal-doc { max-width: 800px; }
.legal-doc .intro { font-size: 18px; line-height: 1.66; color: var(--mist); margin-bottom: 44px; max-width: 70ch; }
.legal-doc h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--white);
  letter-spacing: -0.01em; margin: 46px 0 16px; padding-top: 30px; border-top: 1px solid var(--hair);
  display: flex; align-items: baseline; gap: 14px;
}
.legal-doc h2 .n { font-family: var(--font-mono); font-size: 14px; color: var(--teal); font-weight: 500; }
.legal-doc h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--white); margin: 26px 0 10px; }
.legal-doc p { color: var(--mist); font-size: 15.5px; line-height: 1.72; margin-bottom: 16px; max-width: 72ch; }
.legal-doc ul { margin: 0 0 16px; padding-left: 4px; list-style: none; max-width: 72ch; }
.legal-doc li { color: var(--mist); font-size: 15.5px; line-height: 1.66; margin-bottom: 11px; padding-left: 26px; position: relative; }
.legal-doc li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .8; }
.legal-doc a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--teal); }
.legal-doc strong { color: var(--white); font-weight: 600; }
@media (max-width: 760px) {
  .footer-legal { gap: 16px; }
}

/* ---------- Thank-you page ---------- */
.thanks { position: relative; overflow: hidden; min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 80px 0; }
.thanks::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 50% 0%, rgba(27,61,143,0.5), transparent 62%),
              radial-gradient(620px 420px at 50% 110%, rgba(0,201,200,0.10), transparent 65%);
}
.thanks-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; }
.thanks-badge {
  width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--teal);
  background: rgba(0,201,200,0.10); border: 1.5px solid rgba(0,201,200,0.4);
  box-shadow: 0 0 0 10px rgba(0,201,200,0.05), 0 0 40px -6px rgba(0,201,200,0.45);
}
.thanks .eyebrow { justify-content: center; }
.thanks h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 18px; }
.thanks-sub { font-size: clamp(19px, 2vw, 24px); color: var(--white); font-weight: 500; margin-bottom: 18px; }
.thanks-note { color: var(--mist); font-size: 16.5px; line-height: 1.66; max-width: 52ch; margin: 0 auto 38px; }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline-line { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .section-pad { padding: 84px 0; }
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(10,15,30,0.98); border-bottom: 1px solid var(--hair);
    padding: 12px 22px 22px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hair); width: 100%; }
  .nav .btn-outline { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .p-card { grid-column: 1 / -1 !important; min-height: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .svc-content { padding: 34px 28px; }
  .svc-num { top: 26px; right: 28px; }
  .svc-card.svc-split { grid-template-columns: 1fr; gap: 28px; padding: 34px 28px; }
}
