/* WinflowAI shared design: tokens, type, buttons, header, galaxy footer. Loaded on every page. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); }

body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

:root {
  --ink: #111111;
  --ink-2: #2b2f36;
  --muted: #5d6470;
  --line: #e6e8ec;
  --soft: #f6f7f8;
  --paper: #ffffff;
  --night: #171522;
  --night-2: #0f1424;
  --teal: #2ec4b6;
  --teal-ink: #0f7a70;
  --teal-tint: #e8f7f5;
  --gold: #ffb800;
  --gold-ink: #7a5600;
  --gold-tint: #fff5d9;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.45rem; border-radius: 999px;
  font: inherit; font-size: .97rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .5s var(--ease), background-color .25s, box-shadow .5s var(--ease), color .25s;
}
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(0); transition-duration: .15s; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgba(17,17,17,.55); }
.btn-ink:hover { background: #262626; box-shadow: 0 18px 30px -16px rgba(17,17,17,.5); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); }
.btn-white:hover { background: #f3f5f6; }
.link {
  color: var(--teal-ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--teal-ink) 40%, transparent);
  text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* Liquid-glass secondary button (canvas lens edge drawn by script) */
.btn-glass {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  box-shadow: 0 12px 26px -14px rgba(3,5,16,.75);
  text-shadow: 0 1px 3px rgba(4,5,14,.85);
}
.btn-glass:hover { box-shadow: 0 18px 32px -14px rgba(3,5,16,.8); }
.btn-glass::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 70%);
  opacity: var(--glow, 0); transition: opacity .45s var(--ease); }
.btn-glass .lbl { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.no-js .site-header { position: absolute; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; width: 132px; height: 25px; flex-shrink: 0; }
.brand img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity .35s; }
.brand .on-light { opacity: 0; }
.nav { display: flex; gap: 30px; }
.nav a {
  position: relative; text-decoration: none; font-size: .93rem; font-weight: 500;
  color: rgba(255,255,255,.84); padding-block: 6px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.head-cta { display: flex; align-items: center; gap: 10px; }
.head-cta .btn { min-height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.site-header.is-scrolled {
  background: rgba(255,255,255,.86); border-bottom-color: rgba(17,17,17,.06);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
}
.site-header.is-scrolled .brand .on-dark { opacity: 0; }
.site-header.is-scrolled .brand .on-light { opacity: 1; }
.site-header.is-scrolled .nav a { color: #474d57; }
.site-header.is-scrolled .nav a:hover { color: var(--ink); }
.site-header.is-scrolled .head-cta .btn { background: var(--ink); color: #fff; box-shadow: none; }
.site-header.is-scrolled .menu-btn { color: var(--ink); }
.mobile-nav {
  display: none; position: absolute; top: calc(var(--header-h) - 4px); left: 12px; right: 12px;
  background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 24px 50px -24px rgba(10,12,20,.45);
  border: 1px solid var(--line);
}
.mobile-nav a { display: block; padding: 14px 16px; text-decoration: none; font-weight: 550; border-radius: 12px; }
.mobile-nav a:hover { background: var(--soft); }
.mobile-nav .btn { display: flex; margin: 8px 6px 6px; color: #fff; }
.mobile-nav .btn:hover { background: #262626; }
.mobile-nav.is-open { display: block; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 960px) {
  .nav { display: none; }
  .js .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .js .head-cta .btn { display: none; }
}

/* ---------- Night-sky twinkles (hero, founder card, footer) ---------- */
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tw {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%;
  background: rgba(255,255,255,.96); opacity: .3; pointer-events: none;
  box-shadow: 0 0 5px 2px rgba(255,255,255,.34), 0 0 13px 5px rgba(200,217,255,.12);
}
.anim .tw { animation: twinkle var(--d) ease-in-out var(--dl) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: .16; transform: scale(.72); }
  44%, 54% { opacity: .92; transform: scale(1.22); }
}
.sstar {
  position: absolute; left: var(--x); top: var(--y); width: 120px; height: 1.5px; border-radius: 2px;
  opacity: 0; transform: rotate(32deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9));
  filter: drop-shadow(0 0 4px rgba(255,255,255,.5));
}
.anim .sstar { animation: sstar var(--d) linear var(--dl) infinite; }
@keyframes sstar {
  0% { opacity: 0; transform: rotate(32deg) translateX(0); }
  1.2% { opacity: .85; }
  5.5% { opacity: 0; transform: rotate(32deg) translateX(320px); }
  100% { opacity: 0; transform: rotate(32deg) translateX(320px); }
}
.is-idle .tw, .is-idle .sstar, .tab-hidden .tw, .tab-hidden .sstar { animation-play-state: paused; }

/* ---------- Footer ---------- */
/* Galaxy footer: the founder card's starfield and twinkles, full width */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: #0d1220; color: rgba(255,255,255,.72); padding-block: 72px 40px; font-size: .93rem; }
.site-footer > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 90% at 12% 10%, rgba(139,105,137,.38), transparent 72%), radial-gradient(ellipse 60% 90% at 92% 30%, rgba(38,96,139,.3), transparent 74%), linear-gradient(to bottom, rgba(13,18,32,.35), rgba(13,18,32,.7)); }
.site-footer .stars { z-index: -1; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid img { width: 132px; }
.foot-grid p { margin-top: 14px; color: rgba(255,255,255,.7); max-width: 22rem; }
.foot-grid ul { display: grid; gap: 10px; align-content: start; }
.foot-grid a { text-decoration: none; color: rgba(255,255,255,.78); }
.foot-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: rgba(255,255,255,.55); font-size: .86rem; }
.foot-base a { color: rgba(255,255,255,.55); }

/* Skip link */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .anim .tw { animation: none; opacity: .5; }
  .sstar { display: none; }
  .btn, .site-header, .nav a::after { transition: none; }
}

/* Base for the shared chrome, so it renders the same on pages without the homepage reset or Tailwind (thanks, 404) */
:where(.site-header, .site-footer, .skip-link), :where(.site-header, .site-footer) *, :where(.site-header, .site-footer) *::before, :where(.site-header, .site-footer) *::after { box-sizing: border-box; }
:where(.site-footer) :is(ul, p) { margin: 0; }
:where(.site-footer) ul { padding: 0; list-style: none; }
:where(.site-header, .site-footer) img { display: block; max-width: 100%; height: auto; }
.menu-btn { padding: 0; }
