/* ============================================================
   Attilus AI — landing page
   Brand: Primary Navy #09334B · Accent Cyan #35A4B8 / #46B7C7
   Type: Poppins (display) + Inter (body)
   ============================================================ */

:root {
  --navy: #09334B;
  --navy-deep: #062231;
  --surface: #0d425e;
  --surface-raised: #114b6b;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #35A4B8;
  --cyan-bright: #46B7C7;
  --ink: #f4fafc;
  --muted: #a9c6d2;
  --win: #7fd8a8;
  --loss: #f2a09c;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --w-content: 1120px;
  --radius: 14px;
  --radius-s: 10px;

  --z-nav: 10;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { max-width: 62ch; }

a { color: var(--cyan-bright); }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85em 1.7em;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease;
}

.btn-primary {
  background: var(--cyan-bright);
  color: var(--navy-deep);
}

.btn-primary:hover { background: #5fc9d7; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(9, 51, 75, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-wordmark em { font-style: normal; color: var(--cyan-bright); }

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.btn-nav { padding: 0.6em 1.3em; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero { overflow: hidden; }

.hero-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) 1.5rem clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  font-weight: 800;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 46ch;
}

/* Hero load choreography (js only; content visible by default) */
html.js .hero-copy > * {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
html.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

html.js .hero-artifact { animation: rise 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

html.js .hero .msg,
html.js .hero .chat-flag {
  animation: pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
html.js .hero .chat-body > *:nth-child(1) { animation-delay: 0.7s; }
html.js .hero .chat-body > *:nth-child(2) { animation-delay: 1.05s; }
html.js .hero .chat-body > *:nth-child(3) { animation-delay: 1.4s; }
html.js .hero .chat-body > *:nth-child(4) { animation-delay: 1.75s; }
html.js .hero .chat-body > *:nth-child(5) { animation-delay: 2.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Chat & report artifacts ---------- */

.chat, .report {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
}

.chat-head, .report-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--win);
  flex-shrink: 0;
}

.chat-time, .report-head .chat-time { margin-left: auto; font-variant-numeric: tabular-nums; }

.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }

.msg {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg p { max-width: none; }

.msg-in {
  background: var(--surface);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg-out {
  background: rgba(70, 183, 199, 0.16);
  border: 1px solid rgba(70, 183, 199, 0.35);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.msg-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-flag {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.05);
}

.chat-flag-ok { color: var(--win); background: rgba(127, 216, 168, 0.08); }

/* Report artifact */

.report-body { padding: 1.1rem 1.2rem 1.3rem; }

.report-line {
  font-size: 0.95rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: none;
}

.report-line:last-of-type { border-bottom: 0; }

.report-win span { color: var(--win); margin-right: 0.4rem; }
.report-loss span { color: var(--loss); margin-right: 0.4rem; }

.report-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: none;
}

/* ---------- Problem strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}

.strip p {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) 1.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  text-wrap: pretty;
}

.strip strong { color: var(--cyan-bright); font-weight: 600; }

/* ---------- Verticals ---------- */

.vertical { padding: clamp(4rem, 10vh, 7rem) 1.5rem; }

.vertical-alt { background: var(--navy-deep); }

.vertical-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.vertical-alt .vertical-copy { order: 2; }
.vertical-alt .vertical-artifact { order: 1; justify-self: start; }

.vertical-artifact { justify-self: end; }

.vertical-tag {
  color: var(--cyan-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.vertical h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }

.vertical-pain {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.vertical-list {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vertical-list li {
  padding-left: 1.7rem;
  position: relative;
  max-width: 56ch;
}

.vertical-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: rgba(70, 183, 199, 0.25);
  border: 1px solid var(--cyan-bright);
}

/* ---------- Why ---------- */

.why {
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
}

.why-inner { max-width: var(--w-content); margin: 0 auto; }

.why h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); max-width: 22ch; }

.why-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 3vw, 3rem);
}

.why-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--cyan-bright); }

.why-item p { color: var(--muted); font-size: 0.98rem; }

.why-close {
  margin-top: 3rem;
  font-size: 1.15rem;
  max-width: 58ch;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Process ---------- */

.process { padding: clamp(4rem, 10vh, 7rem) 1.5rem; }

.process-inner { max-width: var(--w-content); margin: 0 auto; }

.process h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }

.steps {
  margin-top: 3rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.8rem, 3vw, 3rem);
  counter-reset: step;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--cyan-bright);
  color: var(--cyan-bright);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.steps p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Booking ---------- */

.book {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
}

.book-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  text-align: center;
}

.book h2 { font-size: clamp(2rem, 4vw, 3rem); margin-inline: auto; }

.book-sub {
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 52ch;
}

.cal-embed {
  margin-top: 3rem;
  min-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
}

.book-fallback {
  margin: 1.5rem auto 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 5.5rem) 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
}

.footer-brand img { width: 150px; height: auto; margin-left: -10px; }

.footer-brand p { margin-top: 1.2rem; color: var(--muted); font-size: 0.98rem; max-width: 40ch; }

.footer-contact a { display: inline-block; margin-top: 0.2rem; }

.footer-form h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }

#contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 460px; }

#contact-form label { display: flex; flex-direction: column; gap: 0.35rem; }

#contact-form label span { font-size: 0.88rem; font-weight: 500; color: var(--muted); }

#contact-form input,
#contact-form textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan-bright);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder { color: #7fa3b3; }

#contact-form textarea { resize: vertical; }

#contact-form .btn { align-self: flex-start; margin-top: 0.3rem; }

.hp { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

.form-status { font-size: 0.92rem; color: var(--muted); min-height: 1.4em; }

.form-status.ok { color: var(--win); }
.form-status.err { color: var(--loss); }

.footer-legal {
  max-width: var(--w-content);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Scroll reveals (js only; visible by default) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-copy > *,
  html.js .hero-artifact,
  html.js .hero .msg,
  html.js .hero .chat-flag { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner, .vertical-inner { grid-template-columns: 1fr; }

  .hero-artifact, .vertical-artifact { justify-self: start; }
  .vertical-alt .vertical-artifact { order: 2; }
  .vertical-alt .vertical-copy { order: 1; }

  .nav-links { display: none; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero h1 br { display: none; }
  .btn-nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
