/* =============================================================================
   PariFit AI Match — color tokens (edit brand values here)
   ============================================================================= */
:root {
  --color-accent: #f8fe12;
  --color-accent-soft: rgba(248, 254, 18, 0.12);
  --color-surface: #ffffff;
  --color-bg: #070707;
  --color-bg-elevated: #0f0f0f;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-muted: rgba(255, 255, 255, 0.55);
  --color-text: rgba(255, 255, 255, 0.92);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 60px rgba(248, 254, 18, 0.15);
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

a:hover {
  opacity: 0.85;
}

/* ----- layout ----- */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ----- site header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    rgba(7, 7, 7, 0.92) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--color-surface);
}

.brand-mark {
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-main a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}

.nav-main a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav-main a.is-active {
  color: var(--color-accent);
}

/* ----- hero (unique: angled panel + stripe field) ----- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    rgba(248, 254, 18, 0.03) 40px,
    rgba(248, 254, 18, 0.03) 41px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-kicker svg {
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--color-surface);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  max-width: 32ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

/* angled visual block */
.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    var(--color-bg-elevated) 0%,
    #141414 50%,
    var(--color-bg-elevated) 100%
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-glow);
}

.hero-visual-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-ring {
  width: min(100%, 220px);
  aspect-ratio: 1;
}

/* ----- screenshots ----- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--color-surface);
}

.section-lead {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 50ch;
}

.shots {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
}

.shots-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg-elevated);
}

.shots-scroll::-webkit-scrollbar {
  height: 6px;
}

.shots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.shot-card {
  flex: 0 0 auto;
  width: min(240px, 70vw);
  scroll-snap-align: start;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  transition: border-color 0.25s var(--ease);
}

.shot-card:hover {
  border-color: rgba(248, 254, 18, 0.35);
}

.shot-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 9 / 19.5;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* ----- story / description ----- */
.story {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
}

.story-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .story-layout {
    grid-template-columns: 140px 1fr;
    gap: 3rem;
  }
}

.story-rail {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: start;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .story-rail {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.12em;
  }
}

.story-body p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-body strong {
  color: var(--color-surface);
  font-weight: 600;
}

/* ----- features: numbered list with line ----- */
.features {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-accent-soft) 45%,
    transparent 100%
  );
}

.features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0.7;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(248, 254, 18, 0.2);
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-surface);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ----- repeating ticker ----- */
.ticker-wrap {
  border-block: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg);
}

.ticker {
  display: flex;
  gap: 3rem;
  padding-block: 0.85rem;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.ticker span::after {
  content: " · ";
  color: var(--color-accent);
  margin-left: 3rem;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
  }
}

/* ----- CTA band ----- */
.cta-band {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.cta-band .wrap {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: radial-gradient(
    ellipse 80% 80% at 50% 0%,
    var(--color-accent-soft),
    transparent 55%
  );
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  color: var(--color-surface);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
  color: var(--color-muted);
}

/* ----- footer ----- */
.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ----- inner pages ----- */
.page-main {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  min-height: calc(100vh - var(--header-h) - 120px);
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--color-surface);
}

.page-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-surface);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-elevated);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* contacts */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--color-surface);
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

.contact-row dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin: 0;
}

.contact-row dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: var(--color-surface);
}

.contact-row a {
  word-break: break-word;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-surface);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
