/* Naru — narufocus.com */

:root {
  --bg: #08080b;
  --ink-1: rgba(255, 255, 255, 0.96);
  --ink-2: rgba(235, 235, 245, 0.62);
  --ink-3: rgba(235, 235, 245, 0.38);
  --ink-4: rgba(235, 235, 245, 0.2);
  --hairline: rgba(255, 255, 255, 0.08);
  --focus: #ff6b57;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Clip (not hidden) on the root too: the animated ember blooms drift past the
   viewport edge, and body-only overflow doesn't contain them on mobile. `clip`
   stops the sideways scroll without disabling the smooth-scroll anchors. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* fine grain, so the black isn't flat */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; position: relative; }
.wrap.narrow { max-width: 680px; }

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

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.eyebrow.accent { color: var(--focus); }

h1 {
  font-size: clamp(46px, 8.5vw, 116px);
  font-weight: 700; letter-spacing: -0.042em; line-height: 0.95;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}

.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.45; }

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

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0; position: relative; z-index: 3;
}
header nav { display: flex; gap: 24px; }
header a { color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 500; }
header a:hover { color: var(--ink-1); }

/* wordmark: the glyph + the name */
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.brand img {
  width: 30px; height: 30px;
  display: block;
  margin: -6px 0;             /* the art's glow padding shouldn't add height */
}
.brand span { color: var(--ink-1); }
.brand:hover span { color: var(--ink-1); }

footer .brand img { width: 24px; height: 24px; }
footer .brand span { color: var(--ink-4); font-weight: 600; letter-spacing: .22em; font-size: 11px; }

/* ---------- the ember: brand atmosphere, not UI ---------- */

.ember { position: absolute; pointer-events: none; z-index: 0; }
.ember i { position: absolute; border-radius: 50%; }

/* Blooms wander and rotate on long, offset loops so the cloud reshapes —
   matching the app's flowing ember rather than a scale pulse. */
.ember i:nth-child(1) {
  width: 560px; height: 400px; left: -90px; top: -40px;
  background: var(--focus); opacity: .20; filter: blur(100px);
  animation: flow1 19s ease-in-out infinite;
}
.ember i:nth-child(2) {
  width: 380px; height: 300px; left: 120px; top: 70px;
  background: var(--focus); opacity: .17; filter: blur(90px);
  animation: flow2 23s ease-in-out infinite;
}
.ember i:nth-child(3) {
  width: 240px; height: 170px; left: 170px; top: 110px;
  background: #fff; opacity: .06; filter: blur(80px);
  animation: flow3 17s ease-in-out infinite;
}

@keyframes flow1 {
  0%   { transform: translate(0, 0) rotate(10deg) scale(1); }
  33%  { transform: translate(70px, 40px) rotate(-14deg) scale(1.12); }
  66%  { transform: translate(-40px, 60px) rotate(20deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(10deg) scale(1); }
}
@keyframes flow2 {
  0%   { transform: translate(0, 0) rotate(-20deg) scale(1); }
  33%  { transform: translate(-60px, 50px) rotate(14deg) scale(1.1); }
  66%  { transform: translate(50px, -30px) rotate(-30deg) scale(0.94); }
  100% { transform: translate(0, 0) rotate(-20deg) scale(1); }
}
@keyframes flow3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -46px) scale(1.14); }
  100% { transform: translate(0, 0) scale(1); }
}

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

.hero { position: relative; padding: 130px 0 150px; }
.hero .ember { width: 400px; height: 320px; left: 50%; top: -30px; margin-left: -290px; }
.hero-copy { position: relative; z-index: 2; }
.hero-mark {
  width: 92px; height: 92px;
  display: block; margin: 0 0 26px -10px;   /* offset the art's own padding */
  filter: drop-shadow(0 0 34px rgba(255,107,87,0.35));
}
/* ch resolves against each element's own size — set the measure on the
   elements themselves, never on a 16px parent (that crushes the children). */
.hero h1 { margin-top: 22px; max-width: 9ch; }
.hero .lead { margin-top: 28px; max-width: 30ch; }

.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }

.cta {
  display: inline-block; background: var(--focus); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 16px 32px; border-radius: 15px;
  box-shadow: 0 12px 44px rgba(255,107,87,0.3);
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta-note { font-size: 13px; color: var(--ink-4); }

/* ---------- the loop: a real sequence, so it's numbered ---------- */

.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 20px 0 130px; }
.loop > div { border-top: 1px solid var(--hairline); padding-top: 22px; }
.loop .n {
  font-family: var(--rounded); font-size: 15px; font-weight: 700;
  color: var(--focus); font-variant-numeric: tabular-nums;
}
.loop h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.loop p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ---------- statement ---------- */

.statement { position: relative; padding: 110px 0; text-align: center; }
.statement .ember { width: 400px; height: 300px; left: 50%; top: 20px; margin-left: -200px; }
.statement p {
  position: relative; z-index: 2;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.16;
  max-width: 18ch; margin: 0 auto;
}
.statement p span { color: var(--ink-3); }

/* ---------- feature rows ---------- */

.feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 60px; padding: 76px 0;
  border-top: 1px solid var(--hairline);
}
.feature h2 { margin-top: 14px; }
.feature .body { padding-top: 6px; }
.feature .body > p { color: var(--ink-2); font-size: 17px; max-width: 44ch; }

.points { margin-top: 26px; display: flex; flex-direction: column; }
.points div { padding: 15px 0; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); }
.points div:first-child { border-top: 0; padding-top: 0; }
.points b { color: var(--ink-1); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- close ---------- */

.close { position: relative; text-align: center; padding: 140px 0 60px; }
.close .ember { width: 400px; height: 300px; left: 50%; top: 40px; margin-left: -200px; }
.close h2, .close .lead, .close .cta-row { position: relative; z-index: 2; }
.close .lead { margin: 20px auto 0; max-width: 34ch; }
.close .cta-row { justify-content: center; }

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

.prose { padding: 24px 0 0; }
.prose h1 { font-size: 34px; letter-spacing: -0.03em; margin-top: 10px; }
.prose h2 { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--focus); text-decoration: none; }
.prose .updated { font-size: 13px; color: var(--ink-4); margin-top: 6px; }

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

footer {
  margin-top: 40px; padding: 28px 0 46px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-4);
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--ink-1); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .copy { color: var(--ink-4); }

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

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 90px 0 100px; }
  .hero h1 { max-width: none; }
  .hero .ember { margin-left: -200px; }
  .loop { grid-template-columns: 1fr; gap: 0; padding-bottom: 90px; }
  .loop > div { padding: 22px 0; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 56px 0; }
  .statement { padding: 80px 0; }
  .close { padding: 100px 0 40px; }
  footer { flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ember i { animation: none; }
}
