/* ─── FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: 'Google Sans Flex';
  src: url('../Google_Sans_Flex/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf')
       format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #000000;
  --surface:  #0f0f0f;
  --surface-2:#0d0d0d;
  --border:   rgba(255,255,255,0.09);
  --text:     #ffffff;
  --muted:    rgba(255,255,255,0.48);
  --green:    #11FF00;
  --font:     'Google Sans Flex', 'Google Sans', system-ui, sans-serif;
  --script:   'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  --max-w:    760px;
  --pad:      28px;
  --radius:   14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; padding: 0; margin: 0; }

/* ─── FADE-IN ON SCROLL ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CENTERED SECTION WRAPPER ───────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad);
}

.section-heading {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 14px;
}

.section-body.emphasis {
  color: var(--text);
  font-weight: 600;
}

/* ─── ICON NAVIGATION ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  transition: color 0.2s, transform 0.15s;
}
.nav-icon svg { width: 19px; height: 19px; display: block; }
.nav-icon:hover { color: var(--text); transform: translateY(-1px); }
.nav-icon.active { color: var(--green); }

/* ─── HERO ───────────────────────────────────────────── */
.home-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 108px var(--pad) 0;
  text-align: center;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  font-weight: 200;
  letter-spacing: 0.14em;
  line-height: 1;
  background: linear-gradient(180deg, #d6d6d6 0%, #5c5c5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-twins-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 28px auto 0;
}

.hero-twins {
  width: 100%;
  display: block;
}

/* Fade the torsos into the background, dissolving just below the neckline */
.hero-twins-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* bottom — dissolve the torsos */
    linear-gradient(
      to top,
      #000000 0%,
      rgba(0,0,0,0.92) 14%,
      rgba(0,0,0,0.72) 26%,
      rgba(0,0,0,0.45) 36%,
      rgba(0,0,0,0.2) 44%,
      transparent 52%
    ),
    /* right — soften the cropped shirt edge */
    linear-gradient(
      to left,
      #000000 0%,
      rgba(0,0,0,0.85) 5%,
      transparent 17%
    ),
    /* left — soften the cropped edge */
    linear-gradient(
      to right,
      #000000 0%,
      rgba(0,0,0,0.7) 5%,
      transparent 14%
    );
}

/* ─── TECH STACK ─────────────────────────────────────── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: var(--max-w);
  margin: -8px auto 0;
  padding: 0 var(--pad);
}

.tech-link { display: flex; align-items: center; }

.tech-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.18s;
}
.tech-logo:hover { transform: translateY(-2px); }

/* ─── INTRO COPY ─────────────────────────────────────── */
.intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px var(--pad) 8px;
}
.intro p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 16px;
}
.intro p:last-child { margin-bottom: 0; }
.intro a {
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.32);
  transition: color 0.2s, border-color 0.2s;
}
.intro a:hover { color: var(--green); border-color: var(--green); }

/* ─── TRACK-RECORD CARD ──────────────────────────────── */
/* Rotating green rim glow (driven by scroll → --glow-angle) */
@property --glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.record-glow {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
}

.record-glow::before,
.record-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: 0;
  /* two soft glints — PYRA green & ARMA blue — travel around the edge */
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(17,255,0,0)        0deg,
    rgba(17,255,0,0)        76deg,
    rgba(120,255,110,0.40)  94deg,
    rgba(232,255,224,0.90)  102deg,
    rgba(120,255,110,0.40)  110deg,
    rgba(17,255,0,0)        128deg,
    rgba(70,150,255,0)      244deg,
    rgba(110,175,255,0.40)  262deg,
    rgba(224,238,255,0.90)  270deg,
    rgba(110,175,255,0.40)  278deg,
    rgba(70,150,255,0)      296deg,
    rgba(17,255,0,0)        360deg
  );
}

/* restrained halo that follows the glint */
.record-glow::after {
  inset: -4px;
  filter: blur(13px);
  opacity: 0.28;
}

.record-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #4a4b4e 0%, #313234 22%, #1a1b1c 52%, #000000 100%);
  border: none;
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.record-signature-img {
  display: block;
  width: 210px;
  max-width: 60%;
  height: auto;
  margin: 6px auto 24px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7)) drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

.record-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 16px 4px;
  border-top: 1px solid var(--border);
}

.record-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.record-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* ─── STATS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat-box {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255,255,255,0.08), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.012) 42%, rgba(255,255,255,0) 100%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 12px 30px rgba(0,0,0,0.5);
}

.stat-num {
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #989898 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* thin brand-accent divider under the figure */
.stat-num::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  margin: 9px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  opacity: 0.55;
}

.stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

/* ─── PROJECT CARDS ──────────────────────────────────── */
.projects {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 190px;
  transition: transform 0.2s, border-color 0.2s;
}
.project-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

.project-media {
  flex: 0 0 46%;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.project-brand img { height: 40px; width: auto; }

.project-card--arma {
  background: linear-gradient(110deg, #141b22 0%, #1d2f3f 55%, #2e5573 100%);
}
.project-card--arma .project-media { overflow: visible; background: transparent; }
.project-card--arma .project-media img { object-fit: contain; object-position: left center; }

.project-card--pyra {
  background: linear-gradient(110deg, #14201a 0%, #1d3a2c 55%, #2e6b4d 100%);
}
.project-card--pyra .project-media { overflow: visible; background: transparent; }
.project-card--pyra .project-media img {
  object-fit: contain;
  object-position: left center;
  transform: scale(1.24);
  transform-origin: left center;
}
.project-card--pyra .project-brand { gap: 12px; }
.project-card--pyra .pyra-mark { height: 38px; }
.project-card--pyra .pyra-word-img { height: 25px; width: auto; }

.project-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 20px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  color: #e6e6e6;
  backdrop-filter: blur(8px);
}
.project-badge svg { width: 12px; height: 12px; }

.badge-go {
  width: 12px;
  height: 12px;
  transition: transform 0.22s ease;
}
.project-card:hover .badge-go { transform: translate(2px, -2px); }
.project-badge--ks {
  background: rgba(0,0,0,0.5);
  border-color: rgba(17,255,0,0.4);
  padding: 6px 12px;
}
.ks-logo { height: 11px; width: auto; display: block; }

/* ─── CONTACT FORM ───────────────────────────────────── */
.contact-card {
  background: linear-gradient(180deg, #4a4b4e 0%, #313234 22%, #1a1b1c 52%, #000000 100%);
  border: none;
  border-radius: var(--radius);
  padding: 28px 26px;
}

.contact-card .section-heading { margin-bottom: 10px; }
.contact-intro {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 22px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
.field select.filled { color: var(--text); }
.field select option { background: #161616; color: var(--text); }

.contact-submit {
  align-self: flex-start;
  padding: 12px 26px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.contact-submit:hover  { opacity: 0.85; transform: translateY(-1px); }
.contact-submit:active { transform: translateY(0); }
.contact-submit:disabled { opacity: 0.5; cursor: default; }

.contact-thanks {
  display: none;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--green);
}
.contact-thanks.visible { display: block; }

/* ─── SITE FOOTER ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px var(--pad);
  max-width: var(--max-w);
  margin: 40px auto 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-domain { font-size: 0.8rem; color: var(--muted); }

.instagram-link {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.2s;
}
.instagram-link:hover { color: var(--text); }
.instagram-icon { width: 17px; height: 17px; }

.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --pad: 20px; }

  .hero-wordmark { letter-spacing: 0.08em; }
  .tech-stack { flex-wrap: nowrap; gap: 10px; }
  .tech-logo { height: 25px; border-radius: 6px; }

  .record-row { grid-template-columns: 1fr; gap: 4px; }
  .record-desc { color: rgba(255,255,255,0.5); }

  .field-row { grid-template-columns: 1fr; }

  /* cards keep the desktop banner layout (image left, brand right), one per row */
  .projects { grid-template-columns: 1fr; }
  .project-card { height: 160px; }
  .project-brand img { height: 32px; }
  .project-card--pyra .pyra-mark { height: 30px; }
  .project-card--pyra .pyra-word-img { height: 19px; }
}

/* ═══════════════════════════════════════════════════════
   ARMA / PYRA SUB-PAGE STYLES
   ═══════════════════════════════════════════════════════ */

/* ── Waitlist email form (shared) ── */
.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  max-width: 520px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}
.waitlist-form button {
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.waitlist-form button:hover  { opacity: 0.85; transform: translateY(-1px); }
.waitlist-form button:active { transform: translateY(0); }
.waitlist-form button:disabled { opacity: 0.5; cursor: default; }

.thank-you {
  display: none;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--green);
}
.thank-you.visible { display: block; }

/* ── Accent (green) heading ── */
.accent-heading {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* ── Sub-page hero ── */
.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 104px var(--pad) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 30px;
}
.page-hero-mark { height: 30px; width: auto; }
.page-hero-mark--wide { height: 52px; }
.pyra-lockup-row { display: flex; align-items: center; gap: 13px; }
.pyra-hero-wordmark { height: 26px; width: auto; }
.page-hero-word {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1;
}
.page-hero-tagline {
  font-size: 15px;
  font-weight: 400;
  color: #ACACAC;
}
.page-hero-img-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.page-hero-img {
  width: 100%;
  max-width: 430px;
  height: auto;
  object-fit: contain;
}
.page-hero-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 55%, #000 100%);
  pointer-events: none;
}
.page-hero-img-wrap.no-img-fade::after { display: none; }

/* gradient shadow anchored in the bottom-left corner (PYRA hero) */
.pyra-hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 100% 95% at left bottom, #000 0%, #000 18%, rgba(0,0,0,0.78) 40%, rgba(0,0,0,0.4) 60%, transparent 82%);
}

/* ── Content figure (image + badge, frost vignette) ── */
.content-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 26px 0 0;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.content-figure img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.figure-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 36px  0 60px rgba(0,0,0,0.55),
    inset -36px 0 60px rgba(0,0,0,0.55),
    inset 0 -36px 60px rgba(0,0,0,0.6);
}
.figure-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 20px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(17,255,0,0.4);
  color: var(--green);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.figure-badge svg { width: 12px; height: 12px; }

/* ── Return to top ── */
.return-top-wrap { text-align: center; padding: 22px var(--pad) 8px; }
.return-top {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.return-top:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   PYRA PAGE COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── How It Works accordion ── */
.how-it-works .section-heading { margin-bottom: 24px; }

.accordion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
}
.accordion-header { display: flex; flex-direction: column; gap: 5px; }
.step-label { font-size: 0.88rem; font-weight: 500; line-height: 1.35; }
.step-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; font-weight: 300; }

.accordion-arrow {
  width: 17px; height: 17px;
  stroke: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.35s ease, stroke 0.2s;
}
.accordion-trigger[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); stroke: var(--text); }
.accordion-trigger:hover .step-label { opacity: 0.85; }

.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s ease; }
.accordion-content.open { grid-template-rows: 1fr; }
.accordion-media { overflow: hidden; padding: 0 22px; }
.accordion-content.open .accordion-media { padding-bottom: 22px; }
.accordion-media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  display: block;
}

/* ── App section ── */
.app-section { padding-top: 0; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.app-card-stack { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.app-label { font-size: 14px; color: var(--green); font-weight: 100; text-align: center; line-height: 18px; }
.app-card-title { font-size: 14px; font-weight: 400; line-height: 18px; text-align: center; }
.app-card-body { font-size: 14px; color: #959595; font-weight: 300; line-height: 18px; text-align: center; }
.app-card-img { width: 100%; border-radius: 8px; object-fit: cover; margin-top: auto; }

.app-card--large { background: #0D0D0D; position: relative; flex: 1; }
.app-card--large::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, #0D0D0D 100%);
  pointer-events: none;
  z-index: 1;
}
.app-card--large .app-card-img {
  margin: 28px 0 -24px 40px;
  margin-right: -24px;
  width: calc(100% - 16px);
  object-fit: contain;
  object-position: right bottom;
  flex: 1;
  min-height: 0;
  transform: scale(1.12);
  transform-origin: right bottom;
}
.app-card--sm { flex: 1; }
.app-card--sm .app-card-img {
  margin: auto -24px -24px;
  width: calc(100% + 48px);
  object-fit: cover;
}
.app-card--sm .app-device-img {
  object-fit: contain;
  object-position: center bottom;
  width: calc(100% + 48px);
  margin: auto -24px -24px;
  transform: translateX(20px);
}

/* ── Intentions UI ── */
.intentions-ui { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.intentions-scroll-wrap {
  height: 118px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
}
.intentions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; animation: int-scroll 9s linear infinite; }
@keyframes int-scroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.int-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 8px;
  background: rgba(206,206,206,0.12);
  border-radius: 14px;
  position: relative;
}
.int-icon { width: 13px; height: 13px; flex-shrink: 0; color: #C1C1C1; }
.int-label { font-size: 0.56rem; color: #DBDBDB; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.int-pill.int-active {
  border: 1.5px solid transparent;
  background:
    rgba(206,206,206,0.12) padding-box,
    conic-gradient(from 0deg, #ff3b30, #ff9500, #ffcc00, #34c759, #5ac8fa, #5e5ce6, #ff375f, #ff3b30) border-box;
  padding: 5.5px 8px;
}
.int-check-dot { position: absolute; width: 5px; height: 5px; background: #11FF00; border-radius: 50%; top: 3px; left: 3px; }

/* ── Where to place PYRA ── */
.placement-subheading { font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.75; margin-bottom: 8px; }
.placement-row { display: flex; align-items: flex-start; gap: 40px; margin: 24px 0 40px; }
.placement-text { flex: 1; }
.placement-bullets { display: flex; gap: 48px; flex-shrink: 0; }
.placement-bullets ul { display: flex; flex-direction: column; gap: 6px; }
.placement-bullets li {
  font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.7);
  line-height: 1.75; padding-left: 14px; position: relative;
}
.placement-bullets li::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.7); }

.placement-gif-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,0.6); }
.placement-gif { display: block; width: 100%; object-fit: cover; transition: transform 0.55s ease, filter 0.55s ease; }
.placement-frost {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 42%, rgba(0,0,0,0.6) 72%, rgba(0,0,0,0.93) 100%);
  box-shadow:
    inset 40px 0 56px rgba(0,0,0,0.8),
    inset -40px 0 56px rgba(0,0,0,0.8),
    inset 0 40px 56px rgba(0,0,0,0.5),
    inset 0 -40px 56px rgba(0,0,0,0.85);
}
.placement-gif-wrapper:hover .placement-gif { transform: scale(1.025); filter: brightness(1.08) saturate(1.08); }

/* ── Waitlist footer heading ── */
.wl-heading { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }

@media (max-width: 600px) {
  .placement-row { flex-direction: column; gap: 24px; }
  .placement-bullets { gap: 32px; }
  .app-card--sm .app-card-img { max-height: 120px; }
}
