/* =========================================================
   Helicon Nova — redesign (midnight + lavender, from the logo)
   Fonts: Space Grotesk (text) + Space Mono (labels)
   ========================================================= */

:root {
  /* surfaces */
  --bg: #0b0b18;
  --bg-alt: #10101f;
  --card: #16162a;
  --card-2: #1e1e36;
  --line: #2a2a46;
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #0b0b18;

  /* text */
  --cream: #ffffff;
  --text: #e2e2ee;
  --muted: #b8b8cf;
  --dim: #9a9ab8;
  --lav: #b8a2fb;

  /* accent (used sparingly) */
  --accent: #a888f8;
  --violet: #6858f8;

  --radius: 32px;
  --radius-sm: 18px;
  --max: 1120px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 40px 24px -24px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--cream); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1, h2, h3, .sec-head p, .hero .lead { text-wrap: balance; }
p, blockquote, .ans { text-wrap: pretty; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 28px;
  background: rgba(11, 11, 24, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .logo img { height: 38px; width: auto; }
.site-header .brand { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); }
.menu-btn {
  justify-self: end; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--cream);
  transition: background .2s;
}
.menu-btn:hover { background: var(--card-2); }
.menu-btn svg { width: 18px; height: 18px; display: block; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: radial-gradient(60% 45% at 50% 0%, rgba(168, 136, 248, 0.14), rgba(11, 11, 24, 0) 70%), var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a:not(.btn) { font-size: 32px; font-weight: 500; color: var(--cream); letter-spacing: -0.02em; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--lav); }
.menu .close { position: absolute; top: 14px; right: 28px; }
.menu .btn { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 24px 6px 6px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  border: 2px solid var(--cream); cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn .dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; flex: none;
  transition: transform .25s;
}
.btn:hover .dot { transform: translateX(3px); }
.btn .dot svg { width: 15px; height: 15px; }
.btn-wide { width: 100%; justify-content: center; padding: 8px 24px; }
.btn-wide .dot { width: 32px; height: 32px; }
/* outline variant (process CTA) */
.btn-big {
  background: transparent; color: var(--cream);
  font-size: 20px; padding: 10px 30px; flex-direction: row-reverse; justify-content: center; gap: 16px;
  min-width: min(420px, 100%);
}
.btn-big .dot { background: var(--cream); color: var(--ink); width: 32px; height: 32px; }
.btn-big:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-big:hover .dot { background: var(--ink); color: var(--cream); }

/* ---------- Labels (mono tags) ---------- */
.pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(168, 136, 248, 0.12);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lav);
  line-height: 1.4;
}
.pill.no-dot { background: transparent; padding: 0; color: var(--lav); letter-spacing: 0.2em; font-size: 13px; }

/* ---------- Sections ---------- */
.sec { padding: 120px 0; position: relative; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; max-width: 820px; }
.sec-head p { font-size: 19px; color: var(--muted); max-width: 640px; }
/* Two-sentence heading: one sentence per line; slightly smaller so line 2 fits on desktop */
.ln { display: block; }
.nw { white-space: nowrap; }
.hero .pill.no-dot { display: block; }
.sec-head h2.h-split { max-width: none; font-size: clamp(30px, 4.2vw, 46px); }
.h-split span { display: block; }
.sec-alt { background: var(--bg-alt); }
.sec-alt2 { background: var(--bg); }

/* ---------- Cards ---------- */
.gcard { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.gcard > .inner { position: relative; height: 100%; border-radius: var(--radius); padding: 32px; overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px 0 72px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 0%, rgba(168, 136, 248, 0.16) 0%, rgba(104, 88, 248, 0.05) 45%, rgba(11, 11, 24, 0) 75%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero .pill { max-width: 520px; justify-content: center; text-align: center; line-height: 1.8; }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #c8b4fc, var(--accent) 55%, #8a74f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--text); font-size: 20px; line-height: 1.5; max-width: 560px; }

.video {
  position: relative; margin-top: 56px; border-radius: 40px; overflow: hidden; cursor: pointer;
  aspect-ratio: 937 / 501; background: var(--card);
  padding: 8px; box-shadow: var(--shadow);
}
.video img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; transition: transform .4s; }
.video:hover img { transform: scale(1.015); }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; transition: transform .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video .play svg { width: 24px; height: 24px; margin-left: 4px; }
.video iframe { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 0; border-radius: 32px; }

/* ---------- Trusted marquee ---------- */
.trusted { padding: 30px 0 90px; }
.trusted .label { text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: scroll 32s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.trusted .marquee-track { gap: 16px; }
.trusted .marquee-track img {
  width: 168px; height: 104px; padding: 18px 26px; object-fit: contain;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px;
  opacity: 0.85; transition: opacity .3s, border-color .3s;
}
.trusted .marquee-track img:hover { opacity: 1; border-color: rgba(168, 136, 248, 0.35); }
.trusted .marquee-track img.tall { padding: 10px 26px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Pain cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain .inner { padding: 8px 8px 30px; }
.pain img { width: 100%; aspect-ratio: 400 / 280; object-fit: cover; border-radius: 24px; background: var(--bg); }
.pain h3 { font-size: 22px; font-weight: 600; margin: 22px 22px 8px; line-height: 1.25; }
.pain p { font-size: 17px; color: var(--muted); margin: 0 22px; }

/* ---------- Services ---------- */
.service .inner { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: background .25s; }
.service:hover .inner { background: var(--card-2); }
.service .icon {
  position: absolute; top: 32px; left: 32px; width: 56px; height: 56px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.service .icon img { width: 28px; height: 28px; }
.service h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.service p { font-size: 17px; color: var(--muted); max-width: 420px; }

/* ---------- Own it ---------- */
.own .inner { padding: 8px; }
.own .mural { width: 100%; height: 420px; object-fit: cover; border-radius: 26px; }
.own .body { position: relative; padding: 44px 40px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.own h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.own p { color: var(--text); font-size: 18px; max-width: 640px; }
.own p + p { color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: grid; grid-template-columns: 88px 1fr; gap: 20px; }
.step .num { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; }
.step .num span { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--lav); line-height: 1; }
.step .num i { width: 1px; flex: 1; background: var(--line); }
.step .inner { display: flex; flex-direction: column; gap: 10px; }
.step .pill { align-self: flex-start; margin-bottom: 12px; }
.step h3 { font-size: 28px; font-weight: 600; }
.step p { font-size: 17px; color: var(--muted); }
.process-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Testimonials ---------- */
.tmarquee .marquee-track { gap: 20px; align-items: stretch; animation-duration: 60s; padding-bottom: 30px; }
.tcard { width: 500px; flex: none; }
.tcard .inner { display: flex; flex-direction: column; gap: 22px; }
.tcard header { display: flex; align-items: center; gap: 14px; }
.tcard header .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.tcard header h3 { font-size: 19px; font-weight: 600; line-height: 1.2; }
.tcard header small { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tcard header .co { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tcard header .co img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.tcard blockquote { margin: 0; color: var(--text); font-size: 17px; line-height: 1.6; white-space: pre-line; }

/* ---------- Team ---------- */
.team-head { background: var(--bg); padding-bottom: 40px; }
.team-body { background: var(--bg); padding: 20px 0 120px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.member { background: var(--card); border-radius: var(--radius); padding: 8px 8px 32px; box-shadow: var(--shadow); }
.member .photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.3; background: var(--bg); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.member h3 { font-family: var(--mono); font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lav); margin: 24px 24px 16px; }
.member .bio { display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--muted); line-height: 1.55; margin: 0 24px; }
.member .bio b { color: var(--cream); font-weight: 600; }

/* ---------- FAQ (clean list) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item details { padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 500; color: var(--cream); padding: 22px 4px;
  transition: color .2s;
}
.faq-item summary:hover { color: var(--lav); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--lav); display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq-item summary .chev svg { width: 12px; height: 12px; }
.faq-item details[open] summary .chev { transform: rotate(180deg); background: var(--card-2); }
.faq-item .ans { padding: 0 4px 24px; font-size: 17px; color: var(--muted); white-space: pre-line; max-width: 700px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact .form-card .inner { padding: 32px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lav); margin-bottom: 8px; line-height: 1.6; }
.form label[for="f-msg"] { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.form input, .form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  color: var(--cream); font: inherit; font-size: 17px; padding: 14px 16px; outline: none; transition: border-color .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #6a6a88; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 180px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f0a58c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 70px 0 34px; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start;
  background: var(--card); border-radius: var(--radius); padding: 36px 40px;
}
.foot-grid .flogo img { width: 110px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--cream); }
.foot-grid ul a:hover { color: var(--lav); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--cream); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--line); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { margin-top: 26px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Polish: interaction + details ---------- */
.gcard, .member, .reveal.in.gcard, .reveal.in.member { transition: opacity .7s ease, transform .35s ease, box-shadow .35s ease; }
.reveal.in.pain:hover, .reveal.in.service:hover, .reveal.in.member:hover { transform: translateY(-4px); box-shadow: 0 44px 30px -26px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 136, 248, 0.22); }
.service .icon { background: linear-gradient(160deg, rgba(168, 136, 248, 0.16), rgba(104, 88, 248, 0.04)); border-color: rgba(168, 136, 248, 0.28); }
.tcard .inner { border: 1px solid var(--line-soft); border-radius: var(--radius); }
.foot-grid .flogo { align-self: center; }
.foot-grid .flogo img { width: 340px; max-width: 100%; }
.grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(even) { transition-delay: .08s; }
.grid-3 > .reveal:nth-child(3) { transition-delay: .16s; }
.btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.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: 900px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: minmax(0, 460px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .flogo { grid-column: 1 / -1; }
  .foot-grid .flogo { justify-self: center; }
  .foot-grid .flogo img { width: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 84px 0; }
  .container { padding: 0 18px; }
  .site-header { padding: 0 16px; height: 62px; }
  .site-header .logo img { height: 32px; }
  .site-header .brand { font-size: 12px; letter-spacing: 0.2em; }
  .hero { padding: 120px 0 48px; }
  .hero .lead { font-size: 18px; }
  .video { margin-top: 36px; border-radius: 28px; padding: 6px; }
  .video img, .video iframe { border-radius: 22px; }
  .video .play { width: 60px; height: 60px; }
  .sec-head { margin-bottom: 44px; }
  .sec-head p { font-size: 17px; }
  :root { --radius: 26px; }
  .gcard > .inner { padding: 26px 22px; }
  .pain .inner { padding: 6px 6px 26px; }
  .pain img { border-radius: 20px; }
  .service .inner { min-height: 250px; }
  .service .icon { top: 24px; left: 22px; }
  .service h3 { font-size: 23px; }
  .own .inner { padding: 6px; }
  .own .mural { height: 240px; border-radius: 20px; }
  .own .body { padding: 30px 20px 28px; }
  .step { grid-template-columns: 1fr; gap: 0; }
  .step .num { flex-direction: row; padding: 0 0 12px 4px; }
  .step .num span { font-size: 22px; }
  .step .num i { height: 1px; width: auto; flex: 1; }
  .step h3 { font-size: 24px; }
  .tcard { width: 84vw; }
  .tcard header .co span { display: none; }
  .btn-big { font-size: 18px; min-width: 0; width: 100%; }
  .trusted .marquee-track img { width: 132px; height: 84px; padding: 14px 20px; border-radius: 18px; }
  .trusted .marquee-track img.tall { padding: 8px 20px; }
  .hero .pill.no-dot { font-size: 12px; letter-spacing: 0.14em; }
  .hero h1 { font-size: clamp(36px, 11.2vw, 48px); }
  .hero h1 .ln { white-space: nowrap; }
  .hero .lead { font-size: 17px; }
  .ln-m { display: block; }
  .member .photo { aspect-ratio: 1 / 1; }
  .faq-item summary { font-size: 17px; padding: 20px 2px; text-wrap: balance; }
  .contact .form-card .inner { padding: 24px 18px; }
  .foot-grid { padding: 30px 24px; gap: 28px; }
}
