/* ==========================================================================
   Attyro.ai — Shared design system
   Used by every page. Page-specific styles live in a <style> block
   in each HTML file and should build on top of these tokens/classes.
   ========================================================================== */

:root {
  --panel: rgba(255,255,255,0.055);
  --panel-strong: rgba(255,255,255,0.09);
  --text: #f4f1ea;
  --muted: rgba(244,241,234,0.68);
  --soft: rgba(244,241,234,0.42);
  --line: rgba(255,255,255,0.12);
  --accent: #c7ff73;
  --accent-2: #8fe8ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(199,255,115,0.16), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(143,232,255,0.12), transparent 28%),
    linear-gradient(135deg, #05070a 0%, #081017 45%, #05070a 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.45'/%3E%3C/svg%3E");
}

/* ── Layout helpers ── */

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  position: relative;
  z-index: 1;
}

.wrap.tight { padding: 32px 0; }

main { position: relative; z-index: 1; }

/* ── Nav ── */

nav#siteNav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-pill {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav-pill:hover { color: var(--text); border-color: rgba(255,255,255,0.24); }

.nav-cta {
  color: #070b0f;
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}

.nav-cta:hover { color: #070b0f; background: #d9ff9c; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

nav#siteNav.nav-open .nav-toggle span { background: transparent; }
nav#siteNav.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
nav#siteNav.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(6,10,14,0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.05); }

  .nav-links a.active::after { display: none; }

  nav#siteNav.nav-open .nav-links {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-right .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ── Type ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  letter-spacing: 0.03em;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(199,255,115,0.65);
  flex-shrink: 0;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.gradient {
  background: linear-gradient(100deg, #fff8e9, #c7ff73 52%, #8fe8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ── Section headers ── */

.section-head { margin-bottom: 36px; max-width: 720px; }

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

/* ── Buttons ── */

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.18s, background 0.18s, border-color 0.18s;
}

.btn.primary { background: var(--text); color: #070b0f; }
.btn.primary:hover { opacity: 0.88; }

.btn.accent { background: var(--accent); color: #070b0f; }
.btn.accent:hover { background: #d9ff9c; }

.btn.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.045);
}
.btn.secondary:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); }

/* ── Grid / Cards ── */

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  padding: 26px;
}

.card small {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  padding: 32px;
}

.check-list { list-style: none; margin: 16px 0 20px; padding: 0; flex: 1; }
.check-list li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

.cta-band {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(199,255,115,0.08), rgba(255,255,255,0.02));
  border-radius: 28px;
  padding: 56px;
  text-align: center;
}

@media (max-width: 900px) {
  .cta-band { padding: 36px 22px; }
}

.link-arrow {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.18s, color 0.18s;
}
.link-arrow:hover { gap: 10px; color: var(--accent); }

/* ── Image placeholders ── */

.img-placeholder {
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 24px;
  min-height: 180px;
}

/* ── Footer ── */

.footer-mission {
  padding: 32px 0 28px;
  color: rgba(244,241,234,0.32);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--soft); text-decoration: none; transition: color 0.18s; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  footer { flex-direction: column; align-items: flex-start; }
}
