/* Kratu website — shared styles.
   Layout: a night sky where the pointer star leads the reader down the page —
   hero with a live replica of the Kratu panel, then a guide line through the real steps. */
:root {
  --night: #070A24;
  --ink: #0E1340;
  --ink-2: #161C57;
  --glass: rgba(255, 255, 255, .055);
  --glass-hi: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .11);
  --text: #EEF1FF;
  --muted: #A7AEDA;
  --dim: #7C84B8;
  --amber: #FBBF24;
  --orange: #F97316;
  --pink: #EC4899;
  --sky: #7DD3FC;
  --ok: #34D399;
  --warn: #FBBF24;
  --high: #F87171;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 400 16px/1.65 var(--font); color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(249, 115, 22, .16), transparent 65%),
    radial-gradient(1000px 700px at -10% 30%, rgba(99, 102, 241, .20), transparent 65%),
    linear-gradient(180deg, var(--night), var(--ink) 40%, var(--night));
  background-color: var(--night);
  min-height: 100vh;
}
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #FFD66B; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code { font: 500 .88em var(--mono); background: var(--glass-hi); padding: .1em .4em; border-radius: 5px; }
.warm { background: linear-gradient(95deg, var(--amber), var(--orange) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Fluid: the page uses the full window width, with side margins that grow with it. */
.wrap { width: 100%; margin: 0 auto; padding-inline: clamp(16px, 5vw, 120px); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); background: rgba(7, 10, 36, .62); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
@media (max-width: 760px) { .nav nav a.opt { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px;
  font: 600 .92rem/1 var(--font); text-decoration: none; color: var(--text); cursor: pointer; position: relative; overflow: hidden;
  background: var(--glass-hi); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transition: transform .6s var(--ease); }
.btn:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(251, 191, 36, .45); box-shadow: 0 10px 26px -12px rgba(249, 115, 22, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { color: #1F1300; border-color: transparent; background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 8px 24px -12px rgba(249, 115, 22, .9); }
.btn.primary:hover { color: #1F1300; }
.btn.sm { height: 32px; padding: 0 13px; font-size: .84rem; border-radius: 8px; }

/* sections */
section { padding-block: 84px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -40px rgba(0, 0, 0, .7); }

/* footer */
footer { padding-block: 24px 28px; color: var(--dim); font-size: .9rem; } /* no rule or band: the footer continues the page */
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
/* Like the nav: Kratu on the left edge, contact on the right edge. */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.foot .contact { justify-self: end; }
.foot-brand, .contact { display: grid; gap: 12px; min-width: 0; }
.foot-brand p, .contact p { color: var(--muted); max-width: 42ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.contact h3 { color: var(--text); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail .addr { font: 500 1rem var(--font); color: var(--amber); user-select: all; word-break: break-all; }
.mail .addr:hover { color: #FFD66B; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
/* social: round icon buttons that fill with the brand's own colours on hover */
.social { gap: 12px; }
.soc {
  --brand: #fff; --brand-fg: #fff; --glow: rgba(255, 255, 255, .35);
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; isolation: isolate;
  color: var(--muted); background: var(--glass-hi); border: 1px solid var(--line);
  transition: transform .35s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.soc::before { /* brand fill grows from the centre */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brand);
  transform: scale(0); transition: transform .4s var(--ease);
}
.soc svg { width: 20px; height: 20px; fill: currentColor; transition: transform .4s var(--ease); }
.soc:hover, .soc:focus-visible { color: var(--brand-fg); border-color: transparent; transform: translateY(-4px); box-shadow: 0 12px 28px -8px var(--glow), 0 0 0 4px rgba(255, 255, 255, .04); }
.soc:hover::before, .soc:focus-visible::before { transform: scale(1); }
.soc:hover svg, .soc:focus-visible svg { transform: scale(1.12) rotate(-6deg); }
.soc.linkedin { --brand: #0A66C2; --glow: rgba(10, 102, 194, .75); }
.soc.x { --brand: #000; --glow: rgba(255, 255, 255, .28); }
.soc.x:hover, .soc.x:focus-visible { box-shadow: 0 12px 28px -8px var(--glow), 0 0 0 1px rgba(255, 255, 255, .35); }
.soc.instagram { --brand: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); --glow: rgba(214, 36, 159, .7); }
.soc.github { --brand: #F0F6FC; --brand-fg: #0D1117; --glow: rgba(240, 246, 252, .45); }

/* globe band at the top of the footer */
.globe-band { position: relative; height: 360px; margin-top: 0; margin-bottom: -40px; overflow: hidden; display: grid; place-items: start center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent); }
.globe-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-line { position: relative; z-index: 1; margin-top: 56px; font: 600 clamp(1.05rem, 2.2vw, 1.4rem)/1.3 var(--font); letter-spacing: -.01em; color: var(--text); text-align: center; padding-inline: 16px; text-shadow: 0 2px 20px rgba(7, 10, 36, .9); }
@media (max-width: 600px) { .globe-band { height: 260px; } .globe-line { margin-top: 40px; } }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 20px; font-size: .82rem; }
.foot-base::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 32px; } .foot .contact { justify-self: start; } }

/* logo strip: editors and agents scroll; boards sit still below */
.marquee { overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.track { display: flex; width: max-content; }
.set { display: flex; gap: 14px; padding-right: 14px; }
.marquee.moving .track { animation: marquee 38s linear infinite; }
.marquee.moving:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 14px; flex: none; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
a.logo:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(251, 191, 36, .45); background: var(--glass-hi); }
.logo i { width: 30px; height: 30px; flex: none; background: currentColor; opacity: .92; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo .mono-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; font: 700 1rem var(--mono); color: var(--night); background: var(--text); }
.logo span { display: grid; font-weight: 600; font-size: .95rem; line-height: 1.25; white-space: nowrap; }
.logo small { font-weight: 400; font-size: .76rem; color: var(--dim); }
.logo small.yes { color: var(--ok); }
.logo.soon { opacity: .62; }
.boards { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.boards-label { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-right: 6px; }
/* Phones: "Boards" as its own heading, the boards stacked one per row. */
@media (max-width: 600px) {
  .boards { flex-direction: column; align-items: stretch; gap: 10px; }
  .boards-label { margin: 0 0 4px; }
  .boards .logo { width: 100%; }
}
.logo.on { border-color: rgba(52, 211, 153, .4); }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .set { flex-wrap: wrap; } }

/* copy-email icon button */
.icon-btn {
  position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; cursor: pointer;
  color: var(--muted); background: var(--glass-hi); border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.icon-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .25s var(--ease); }
.icon-btn .i-done { opacity: 0; transform: scale(.5); color: var(--ok); stroke-width: 2.6; }
.icon-btn:hover { color: var(--amber); border-color: rgba(251, 191, 36, .45); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.done { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.icon-btn.done .i-copy { opacity: 0; transform: scale(.5); }
.icon-btn.done .i-done { opacity: 1; transform: none; }
.icon-btn .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  font: 500 .75rem/1 var(--font); color: var(--text); background: var(--ink-2); border: 1px solid var(--line); padding: 6px 9px; border-radius: 7px;
  opacity: 0; transition: opacity .2s, transform .2s var(--ease);
}
.icon-btn.tipping .tip { opacity: 1; transform: translate(-50%, 0); }

/* motion */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes glow { 50% { box-shadow: 0 8px 28px -8px rgba(249, 115, 22, .95); } }
.warm { background-size: 200% auto; animation: shimmer 7s linear infinite; background-image: linear-gradient(95deg, var(--amber), var(--orange) 30%, var(--pink) 50%, var(--orange) 70%, var(--amber)); }
.hero-copy > * { animation: rise-in .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero .panel { animation: rise-in .9s .2s var(--ease) both; }
.nav .btn.primary { animation: glow 3.2s ease-in-out infinite; }

/* "0.8" bubble in the nav: opens the what's-new strip. */
.ver { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 99px; border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.1); color: var(--amber); font: 600 .78rem/1 var(--font); cursor: pointer; transition: background .2s, transform .2s; }
.ver:hover, .ver[aria-expanded="true"] { background: rgba(251,191,36,.2); transform: translateY(-1px); }
.ver .ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ver .ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.strip { position: sticky; top: 60px; z-index: 19; background: linear-gradient(90deg, rgba(249,115,22,.16), rgba(251,191,36,.1)); border-bottom: 1px solid rgba(251,191,36,.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: drop .3s ease-out both; }
.strip[hidden] { display: none; }
.strip .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; padding-block: 8px; font-size: .9rem; }
.strip .tag { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.strip .txt { color: var(--text); }
.strip a { color: var(--amber); font-weight: 600; text-decoration: none; white-space: nowrap; }
.strip a:hover { text-decoration: underline; }
.strip .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.strip .x:hover { color: var(--text); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ver .ping::after, .strip { animation: none; } }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.glass { transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.glass:hover { border-color: rgba(251, 191, 36, .28); background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(251, 191, 36, .09), transparent 60%); }
.pillar:hover, .rule:hover, .road .glass:hover, .setup .glass:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Link from the home page setup steps to the full guide */
.guide-link { grid-column: 1 / -1; margin: 4px 0 0; }
.guide-link a { color: var(--amber); font-weight: 600; text-decoration: none; }
.guide-link a:hover { text-decoration: underline; }
