/* PROJECT 28 marketing site
   Sections adapted from BYQ Supply components:
   harbor-hero-2, sound-stories-intro-text-2, human-machine-marquee-1,
   for-human-value-and-features-11, dark-tech-faq-1, koda-footer-1 */

:root {
  --bg: #0a0709;
  --bg-panel: #16090b;
  --card: rgba(244, 239, 233, 0.07);
  --card-solid: #171012;
  --ink: #f4efe9;
  --ink-dim: rgba(244, 239, 233, 0.62);
  --red: #e63328;
  --red-deep: #8f130f;
  --radius: 12px;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-accent: "Chakra Petch", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id], footer[id] { scroll-margin-top: 72px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- shared bits ---------- */

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(244, 239, 233, 0.32);
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.label-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* buttons (slide-up hover from harbor-hero-2) */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #f04338; }
.btn-ghost {
  background: rgba(244, 239, 233, 0.08);
  border: 1px solid rgba(244, 239, 233, 0.28);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgba(244, 239, 233, 0.6); }
.btn .roll { overflow: hidden; height: 24px; }
.btn .roll-inner { transition: transform 0.25s ease; }
.btn:hover .roll-inner { transform: translateY(-24px); }
.btn .roll-inner > span { display: flex; align-items: center; gap: 10px; height: 24px; }
.btn svg { flex: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 7, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(244, 239, 233, 0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: 3px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand em { color: var(--red); font-style: normal; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a.nav-link {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.site-nav a.nav-link:hover { color: var(--ink); }
.site-nav .btn { padding: 9px 18px; font-size: 13px; border-radius: 8px; }

/* ---------- hero (harbor-hero-2) ---------- */

.hero { padding: 8px; }
.hero-frame {
  position: relative;
  height: 103vh; min-height: 640px; max-height: 1080px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding-bottom: 72px;
}
.hero-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,9,0.55) 0%, rgba(10,7,9,0.05) 30%, rgba(10,7,9,0.28) 58%, rgba(10,7,9,0.94) 100%),
    radial-gradient(90% 70% at 50% 115%, rgba(230,51,40,0.28) 0%, rgba(230,51,40,0) 60%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 10px;
  background: rgba(244, 239, 233, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.hero-badge .tag {
  background: var(--red); color: #fff;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; letter-spacing: 1.5px;
}
.hero h1 {
  max-width: 820px;
  text-shadow: 0 2px 28px rgba(10, 7, 9, 0.6);
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--red);
  letter-spacing: 0;
}
.hero .sub {
  max-width: 560px;
  font-size: 18px;
  color: rgba(244, 239, 233, 0.85);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(244, 239, 233, 0.55);
}
.d1 { transition-delay: 0ms; }
.d2 { transition-delay: 150ms; }
.d3 { transition-delay: 300ms; }
.d4 { transition-delay: 450ms; }

/* ---------- story (sound-stories-intro-text-2) ---------- */

.story {
  position: relative;
  padding: 200px 0 120px;
  text-align: center;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(230,51,40,0.10) 0%, rgba(230,51,40,0.045) 42%, rgba(230,51,40,0) 68%);
  border: 1px solid rgba(230, 51, 40, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.story .stack {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 110px;
}
.story .big {
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.story .big .accent {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 500;
  color: var(--red);
}
.story .small {
  max-width: 660px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.25;
  color: rgba(244, 239, 233, 0.88);
}
.story .line {
  width: 1px; height: 420px;
  background: linear-gradient(180deg, var(--red), rgba(230,51,40,0.15));
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}
.story .line.visible { transform: scaleY(1); opacity: 1; }

/* ---------- marquee (human-machine-marquee-1) ---------- */

.screens { padding: 140px 0 150px; overflow: hidden; }
.screens-head {
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
  margin-bottom: 64px;
}
.section-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-h2 .accent {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 500;
  text-transform: none;
  color: var(--red);
}
.marquee { position: relative; overflow: hidden; }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-set { display: flex; gap: 16px; flex: none; }
.shot-card {
  position: relative; flex: none;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-solid);
}
.shot-card img { height: 100%; width: auto; object-fit: cover; }
.shot-card .shot-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 8px 14px;
  border-radius: 100vw;
  background: rgba(244, 239, 233, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 1px 0 rgba(244,239,233,0.32), inset 0 -1px 2px 0 rgba(10,7,9,0.16);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-fade {
  position: absolute; top: 0; bottom: 0; width: 132px;
  pointer-events: none; z-index: 3;
}
.marquee-fade.left { left: 0; background: linear-gradient(90deg, var(--bg), rgba(10,7,9,0)); }
.marquee-fade.right { right: 0; background: linear-gradient(90deg, rgba(10,7,9,0), var(--bg)); }

/* ---------- gameplay features (for-human-value-and-features-11) ---------- */

.features { padding: 130px 0 160px; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.features-left {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  max-width: 520px;
}
.features-left p { color: var(--ink-dim); font-size: 17px; max-width: 420px; }
.features-cards { display: flex; flex-direction: column; gap: 24px; }
.feature-card {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: 48px;
  min-height: 340px;
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(244, 239, 233, 0.06);
}
.feature-card .icon {
  width: 56px; height: 56px;
  color: var(--red);
}
.feature-card .icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600; line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-card p { font-size: 17px; line-height: 1.45; color: rgba(244, 239, 233, 0.8); }

/* ---------- clips ---------- */

.clips { padding: 0 0 150px; }
.clips-head { margin-bottom: 48px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.clip-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-solid);
  aspect-ratio: 9 / 15;
  cursor: pointer;
}
.clip-card video { width: 100%; height: 100%; object-fit: cover; }
.clip-card .shot-label { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.clip-card .play-btn {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 7, 9, 0.25);
  transition: opacity 0.3s ease;
}
.clip-card .play-btn .ring {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 239, 233, 0.1);
  border: 1px solid rgba(244, 239, 233, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.clip-card:hover .play-btn .ring { transform: scale(1.08); background: rgba(230, 51, 40, 0.55); }
.clip-card.playing .play-btn { opacity: 0; pointer-events: none; }
.clip-card .play-btn svg { margin-left: 4px; }

/* ---------- app info datasheet ---------- */

.appinfo { padding: 0 0 150px; }
.appinfo-box {
  border: 1px solid rgba(244, 239, 233, 0.12);
  border-radius: 18px;
  overflow: hidden;
}
.appinfo-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 36px;
  border-bottom: 1px solid rgba(244, 239, 233, 0.12);
  background: var(--card);
}
.appinfo-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700; text-transform: uppercase; line-height: 1;
}
.appinfo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.appinfo-cell {
  padding: 26px 36px 30px;
  border-right: 1px solid rgba(244, 239, 233, 0.08);
  border-top: 1px solid rgba(244, 239, 233, 0.08);
}
.appinfo-cell:nth-child(4n) { border-right: none; }
.appinfo-cell dt {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(244, 239, 233, 0.5);
  margin-bottom: 8px;
}
.appinfo-cell dd {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
}

/* ---------- FAQ (dark-tech-faq-1) ---------- */

.faq { padding: 0 0 160px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.faq-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 460px; }
.faq-left p { color: var(--ink-dim); font-size: 17px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card-solid);
  border: 1px solid rgba(244, 239, 233, 0.06);
  border-radius: 10px;
  padding: 26px 32px;
  cursor: pointer;
}
.faq-item .faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
}
.faq-item .plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq-item .plus::before, .faq-item .plus::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 18px; height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-item .plus::after { transform: translate(-50%, -50%) rotate(-90deg); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item .faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
}
.faq-item .faq-a p {
  padding-top: 16px;
  color: rgba(244, 239, 233, 0.75);
  font-size: 15.5px;
  max-width: 92%;
}
.faq-item .faq-a a { color: var(--red); }

/* ---------- footer (koda-footer-1) ---------- */

.site-footer {
  padding: 150px 0 24px;
  border-top: 1px solid rgba(244, 239, 233, 0.08);
  background: linear-gradient(180deg, var(--bg) 0%, #120709 100%);
  overflow: hidden;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  margin-bottom: 120px;
}
.footer-tagline {
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.footer-tagline .accent {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 500;
  text-transform: none;
  color: var(--red);
}
.footer-nav { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a .fill-line { height: 1px; margin-top: 3px; overflow: hidden; }
.footer-nav a .fill-line span {
  display: block; height: 100%; width: 0;
  background: var(--ink);
  transition: width 0.3s ease-in-out;
}
.footer-nav a:hover .fill-line span { width: 100%; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12.6vw, 218px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.footer-wordmark em { color: var(--red); font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 40px;
  font-size: 13.5px;
  color: rgba(244, 239, 233, 0.55);
}
.footer-bottom a { color: rgba(244, 239, 233, 0.75); }
.footer-bottom .dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; }
.footer-legal {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(244, 239, 233, 0.35);
}

/* ---------- doc pages (privacy / support) ---------- */

.doc-page { padding: 160px 0 120px; }
.doc-page .doc-body { max-width: 760px; }
.doc-page h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700; text-transform: uppercase; line-height: 1;
  margin: 18px 0 10px;
}
.doc-page .doc-updated {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(244, 239, 233, 0.5);
  margin-bottom: 42px;
}
.doc-page h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; text-transform: uppercase;
  margin: 40px 0 12px;
  color: var(--ink);
}
.doc-page p, .doc-page li { color: rgba(244, 239, 233, 0.78); font-size: 16.5px; margin-bottom: 12px; }
.doc-page ul { padding-left: 22px; margin-bottom: 12px; }
.doc-page strong { color: var(--ink); }
.doc-page a { color: var(--red); }
.doc-page a.btn-red { color: #fff; }
.doc-card {
  margin: 28px 0;
  padding: 28px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(244, 239, 233, 0.1);
}
.doc-card h2 { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .features-grid { grid-template-columns: 1fr; gap: 64px; }
  .features-left { position: static; }
  .feature-card { min-height: 0; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; gap: 56px; }
  .appinfo-grid { grid-template-columns: repeat(2, 1fr); }
  .appinfo-cell:nth-child(2n) { border-right: none; }
  .shot-card { height: 440px; }
  .clips-grid { grid-template-columns: 1fr 1fr; }
  .story .line { height: 300px; }
  .story .stack { gap: 80px; }
  .site-nav a.nav-link { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero-frame { padding-bottom: 44px; min-height: 560px; }
  .hero .sub { font-size: 16px; }
  .shot-card { height: 340px; border-radius: 14px; }
  .marquee-fade { width: 70px; }
  .clips-grid { grid-template-columns: 1fr; }
  .clip-card { aspect-ratio: 9 / 14; }
  .appinfo-grid { grid-template-columns: 1fr; }
  .appinfo-cell { border-right: none; padding: 20px 24px 24px; }
  .appinfo-head { padding: 26px 24px; }
  .faq-item { padding: 20px 22px; }
  .faq-item .faq-q { font-size: 16px; }
  .story { padding: 130px 0 90px; }
  .story .line { height: 200px; }
  .story .stack { gap: 60px; }
  .screens, .features { padding-top: 100px; }
  .footer-top { margin-bottom: 80px; }
  .site-footer { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal, .story .line { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
