/* IntoSignal — intosignal.com
   Static site styles. No build step, no dependencies. */

:root {
  --bg: #0B1020;
  --bg-elev: #0E1529;
  --card: #111827;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --muted-dim: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --blue: #3B82F6;
  --blue-deep: #2563EB;
  --purple: #8B5CF6;
  --purple-deep: #7C3AED;
  --grad: linear-gradient(100deg, #0A84FF 0%, #3D6BF5 52%, #7A3CF0 100%);
  --shell: 1140px;
  --r: 14px;
  --r-sm: 10px;
}

*, *::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: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: #93C5FD; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(124, 60, 240, .35); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--card); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: auto; }
.brand-mark { height: 21px; }
.brand-word { height: 19px; }
.brand:hover { opacity: .85; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px -12px rgba(61, 107, 245, .9);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(90, 80, 245, .95); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }

.btn-sm { font-size: 14px; padding: 9px 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}

.lead { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 62ch; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding: 92px 0; }
.section + .section { border-top: 1px solid var(--border); }

.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; max-width: 720px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 104px 108px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 600;
  margin: 22px 0 22px;
}
.hero .lead { font-size: 19px; max-width: 52ch; }
.hero .btn-row { margin-top: 34px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted-dim);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue);
}

.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.glow-a { width: 620px; height: 420px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(10,132,255,.42), transparent 68%); }
.glow-b { width: 520px; height: 380px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(122,60,240,.34), transparent 70%); }

/* wave visual */
.wave-panel {
  position: relative;
  border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  padding: 28px; overflow: hidden;
}
.wave-panel::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--border) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, var(--border) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%);
  opacity: .7; pointer-events: none;
}
.wave-panel svg { position: relative; z-index: 1; width: 100%; height: auto; }
.wave path { animation: drift 14s ease-in-out infinite; }
.wave path:nth-child(2) { animation-delay: -3.5s; }
.wave path:nth-child(3) { animation-delay: -7s; }
.wave path:nth-child(4) { animation-delay: -10.5s; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .wave path { animation: none; }
  html { scroll-behavior: auto; }
}

.panel-label {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 18px;
}

/* ---------- page header ---------- */

.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-head-inner { padding-block: 78px 66px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(140deg, rgba(10,132,255,.2), rgba(122,60,240,.2));
  border: 1px solid var(--border-strong);
  color: #BFDBFE;
}
.card-icon svg { width: 18px; height: 18px; }

.card-wide { grid-column: span 2; }

/* service card */
.svc { padding: 30px; gap: 0; }
.svc-num {
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600;
  color: var(--muted-dim); letter-spacing: .08em; margin-bottom: 14px;
}
.svc h3 { font-size: 22px; margin-bottom: 12px; }
.svc > p { margin-bottom: 24px; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-top: 1px solid var(--border); padding-top: 22px; }
.svc-cols h4 {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 10px;
}
.svc-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.svc-cols li { color: var(--muted); font-size: 14.5px; padding-left: 16px; position: relative; }
.svc-cols li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1.5px; background: var(--blue); border-radius: 2px;
}

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.step { padding: 30px 26px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.step:last-child { border-right: none; }
.step-n {
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* why list */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.why div { padding: 26px 0; border-top: 1px solid var(--border); }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15.5px; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.04);
  color: var(--muted);
}
.badge-live { color: #BFDBFE; border-color: rgba(59,130,246,.4); background: rgba(37,99,235,.14); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* demo cards */
.demo { padding: 0; overflow: hidden; gap: 0; }
.demo-thumb {
  position: relative; aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 130% at 20% 0%, rgba(10,132,255,.18), transparent 60%), var(--bg-elev);
  display: grid; place-items: center; overflow: hidden;
}
.demo-thumb svg { width: 100%; height: 100%; }
.demo-thumb .thumb-note {
  position: absolute; bottom: 10px; left: 14px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim);
}
.demo-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-cat { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dim); }
.demo-body p { flex: 1; }
.demo-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

/* quote / belief rows */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.belief {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.belief p { font-family: "Sora", sans-serif; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
.belief span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.founder-card {
  border: 1px solid var(--border); border-radius: var(--r); padding: 26px;
  background: var(--card); display: flex; flex-direction: column; gap: 4px;
}
.founder-avatar {
  aspect-ratio: 1; border-radius: 10px; margin-bottom: 20px;
  background: radial-gradient(120% 120% at 25% 15%, rgba(10,132,255,.22), transparent 62%), var(--bg-elev);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.founder-avatar img { width: 46%; opacity: .9; }
.founder-card strong { font-family: "Sora", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.founder-card em { font-style: normal; color: var(--muted); font-size: 15px; }
.founder-copy { display: flex; flex-direction: column; gap: 18px; }
.founder-copy p { color: var(--muted); font-size: 17px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.mail-card {
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 34px;
  background: linear-gradient(150deg, rgba(10,132,255,.1), rgba(122,60,240,.08)), var(--card);
  display: flex; flex-direction: column; gap: 18px;
}
.mail-address {
  font-family: "Sora", sans-serif; font-size: clamp(22px, 3vw, 32px); font-weight: 600;
  letter-spacing: -.03em; color: var(--text); word-break: break-all;
}
.mail-address:hover { color: #DBEAFE; }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.note-list li { padding: 16px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 15.5px; }
.note-list li:first-child { border-top: none; padding-top: 0; }
.note-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; font-size: 15.5px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 58px 46px;
  background: linear-gradient(120deg, rgba(10,132,255,.14), rgba(122,60,240,.14)), var(--bg-elev);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 22ch; }
.cta .lead { max-width: 54ch; }
.cta .btn-row { margin-top: 12px; }
.cta-wave { position: absolute; right: -40px; bottom: -30px; width: 480px; opacity: .35; pointer-events: none; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 22px; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.foot-col h4 {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--muted); font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: var(--muted-dim); font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-block: 76px 84px; }
  .g3, .g4, .steps, .why, .beliefs, .contact-grid, .founder, .foot-grid { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-card { max-width: 340px; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(odd) { border-right: 1px solid var(--border); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .g3 > .card-wide { grid-column: auto; }
  .g3 > .card:last-child { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .shell { padding: 0 20px; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; display: none;
  }
  .nav a { padding: 12px; font-size: 16px; }
  .site-head.open .nav { display: flex; }
  .nav-toggle { display: inline-flex; }
  .head-cta { display: none; }
  .g2, .g3, .g4, .steps, .why, .beliefs, .contact-grid, .foot-grid, .svc-cols { grid-template-columns: 1fr; }
  .card-wide, .g3 > .card:last-child { grid-column: auto; }
  .step { border-right: none !important; }
  .step:last-child { border-bottom: none; }
  .why div:first-child { border-top: 1px solid var(--border); }
  .cta { padding: 40px 26px; }
  .mail-card { padding: 26px; }
}

/* ---------- legal / prose ---------- */

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 20px; margin: 40px 0 12px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose p { color: var(--muted); font-size: 16.5px; margin-bottom: 12px; }
.prose p strong { color: var(--text); font-weight: 600; }

.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--muted-dim); }
.foot-legal a:hover { color: var(--text); }

/* ---------- scroll-driven hero signal ---------- */

#sigDot { transition: none; }
#sigLink { transition: opacity .25s ease; }
.sig-glow, .sig-frame, .sig-fill { transition: opacity .3s ease, stroke .3s ease, fill .3s ease; }
.sig-box {
  transform-box: fill-box; transform-origin: center;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.sig-box.on { transform: scaleX(1.14); }
.sig-box.on .sig-glow { opacity: .14; }
.sig-box.on .sig-frame { stroke: #3D6BF5; }
.sig-box.on .sig-frame-grad { stroke: url(#wg); stroke-width: 1.6; }
.sig-box.on .sig-fill { fill: #BFDBFE; }
