/* Alatify — site styles
   Colors, type and spacing live in the custom properties below. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1424;
  --ink-2: #161E33;
  --ink-3: #232C46;
  --paper: #FFFFFF;
  --mist: #F5F6FA;
  --line: #E4E7EF;
  --line-dark: rgba(255, 255, 255, 0.10);
  --text: #0E1424;
  --muted: #576074;
  --muted-on-dark: #A9B1C6;
  --accent: #4353FF;
  --accent-hover: #3341E6;
  --accent-soft: #EEF0FF;
  --accent-on-dark: #7C8BFF;
  --success: #16A34A;

  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 60px -20px rgba(14, 20, 36, 0.35), 0 12px 24px -12px rgba(14, 20, 36, 0.25);
  --shadow-sm: 0 1px 2px rgba(14, 20, 36, 0.06), 0 4px 12px -4px rgba(14, 20, 36, 0.08);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(67, 83, 255, 0.7);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }

.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

.icon-ext {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -18px rgba(14, 20, 36, 0.6); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand { display: inline-flex; flex-shrink: 0; border-radius: 8px; }
.brand img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted-on-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .js .site-nav .btn { align-self: flex-start; }

  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: clamp(80px, 12vw, 152px) 0 clamp(88px, 12vw, 160px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 480px at 88% 18%, rgba(67, 83, 255, 0.34), transparent 70%),
    radial-gradient(560px 380px at 0% 115%, rgba(41, 198, 245, 0.13), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-copy { max-width: 900px; }
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 22px 0 26px;
}
.hero .lead {
  max-width: 36em;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--muted-on-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dark { color: var(--accent-on-dark); }
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-on-dark);
  box-shadow: 0 0 0 4px rgba(124, 139, 255, 0.2);
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
.section-mist { background: var(--mist); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2,
.about-intro h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}
.section-sub { font-size: 18px; color: var(--muted); max-width: 40em; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-muted { background: #E8EAF0; color: var(--muted); }

/* ---------- What we do ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.about-intro h2 { margin-bottom: 0; }
.about-copy { display: grid; gap: 18px; padding-top: 38px; font-size: 18px; color: var(--muted); }

.subhead {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.principle { padding-top: 24px; border-top: 2px solid var(--line); }
.principle-num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.principle h4 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 16px; }

.name-band {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.name-band::after {
  content: "";
  position: absolute;
  inset: -140px -60px auto auto;
  width: 360px; height: 360px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(67, 83, 255, 0.42), transparent);
}
.name-band img { width: 56px; height: 56px; padding: 10px; background: #fff; border-radius: 14px; }
.name-text h3 { font-size: 19px; margin-bottom: 6px; }
.name-text p { color: var(--muted-on-dark); font-size: 16px; max-width: 30em; }
.name-defs { display: flex; gap: clamp(24px, 4vw, 48px); margin: 0; }
.name-defs dt { font-family: var(--font-head); font-size: 22px; font-style: italic; font-weight: 500; color: var(--accent-on-dark); }
.name-defs dd { margin: 2px 0 0; color: var(--muted-on-dark); font-size: 15px; white-space: nowrap; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-sm);
}
.product-card > p { color: var(--muted); max-width: 40em; }
.product-brand { display: flex; align-items: center; gap: 16px; }
.product-brand img { width: 52px; height: 52px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.product-brand h3 { font-size: 30px; letter-spacing: -0.03em; margin-top: 4px; }
.product-card > p.product-tagline {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 8px;
}
.product-meta { font-size: 15px; font-weight: 700; color: var(--muted); }

.next-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px dashed #C3C9D8;
  border-radius: calc(var(--radius) + 8px);
}
.next-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.next-card p { color: var(--muted); }
.next-link { font-weight: 700; }

/* ---------- Roadmap ---------- */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 15px; left: 8px; right: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 18%, var(--line) 18%);
}
.road-step { position: relative; padding-top: 52px; }
.road-step::before {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #C9CEDB;
}
.road-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(67, 83, 255, 0.15); }
.road-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.road-now .road-tag { color: var(--accent); }
.road-step h3 { font-size: 22px; margin-bottom: 10px; }
.road-step p { color: var(--muted); max-width: 30em; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 56px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(67, 83, 255, 0.55), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(41, 198, 245, 0.16), transparent 70%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}
.contact-card h2 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.035em; margin: 12px 0 14px; }
.contact-copy p:not(.eyebrow) { color: var(--muted-on-dark); font-size: 18px; max-width: 30em; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}
.contact-email:hover { color: var(--ink); transform: translateY(-2px); }
.contact-email svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-note { color: var(--muted-on-dark); font-size: 15px; }
.contact-note a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding-bottom: 40px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) center bottom / calc(100% - var(--gutter) * 2) 1px no-repeat;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-nav { display: flex; gap: clamp(32px, 6vw, 80px); }
.footer-nav h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: var(--muted-on-dark); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 14px;
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .name-band { grid-template-columns: auto minmax(0, 1fr); }
  .name-defs { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before { top: 16px; bottom: 16px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent) 0 18%, var(--line) 18%); }
  .road-step { padding: 0 0 36px 44px; }
  .road-step::before { top: 4px; }
  .road-step:last-child { padding-bottom: 0; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .name-band { grid-template-columns: 1fr; }
  .name-defs { flex-direction: column; gap: 14px; }
  .footer-nav { flex-wrap: wrap; }
  .contact-email { width: 100%; justify-content: center; padding: 16px 18px; }
}
