/* ============================
   PÉNZÜGYES — LANDING PAGE
   Design system + base styles
   ============================ */

@font-face {
  font-family: 'ResistSansDisplay';
  src: url('assets/fonts/ResistSansDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansDisplay';
  src: url('assets/fonts/ResistSansDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansDisplay';
  src: url('assets/fonts/ResistSansDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansDisplay';
  src: url('assets/fonts/ResistSansDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansDisplay';
  src: url('assets/fonts/ResistSansDisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansText';
  src: url('assets/fonts/ResistSansText-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansText';
  src: url('assets/fonts/ResistSansText-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'ResistSansText';
  src: url('assets/fonts/ResistSansText-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --fg: #fafafa;
  --fg-dim: rgba(250, 250, 250, 0.62);
  --fg-faint: rgba(250, 250, 250, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --lime: #c6ff3d;
  --lime-soft: #d6ff6e;
  --lime-deep: #95d40a;
  --lime-on: #0a0a0a;            /* foreground color on lime backgrounds */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --shadow-soft: rgba(0, 0, 0, 0.55);
  --shadow-strong: rgba(0, 0, 0, 0.7);
  --grain-blend: overlay;
  --grain-opacity: 0.035;
  --radius: 28px;
  --radius-lg: 36px;
  --radius-sm: 16px;

  --display: 'ResistSansDisplay', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --text: 'ResistSansText', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

/* ===== Light theme overrides ===== */
:root[data-theme="light"] {
  --bg: #f6f6f4;
  --bg-2: #ffffff;
  --bg-3: #ececea;
  --fg: #0a0a0a;
  --fg-dim: rgba(10, 10, 10, 0.66);
  --fg-faint: rgba(10, 10, 10, 0.42);
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  /* Keep the same neon lime as dark mode — bright, electric green */
  --lime: #c6ff3d;
  --lime-soft: #d6ff6e;
  --lime-deep: #95d40a;
  --lime-on: #0a0a0a;
  --glass: rgba(0, 0, 0, 0.025);
  --glass-2: rgba(0, 0, 0, 0.05);
  --shadow-soft: rgba(20, 20, 20, 0.12);
  --shadow-strong: rgba(20, 20, 20, 0.18);
  --grain-blend: multiply;
  --grain-opacity: 0.025;

  color-scheme: light;
}


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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme: keep the neon glow vivid (user explicitly wants the same energy as dark mode) */
:root[data-theme="light"] .glow-lime {
  opacity: 0.32;
}
:root[data-theme="light"] .glow-lime-soft {
  opacity: 0.20;
}

a { color: inherit; text-decoration: none; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--lime); color: #0a0a0a; }

/* Subtle film grain over everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: var(--grain-blend);
  transition: opacity 0.3s ease;
}

/* =========== TYPOGRAPHY =========== */
.display { font-family: var(--display); font-weight: 900; letter-spacing: -0.035em; line-height: 0.92; }
.display-md { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* =========== LAYOUT =========== */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

/* =========== GLOW BLOBS =========== */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-lime {
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.35;
}
.glow-lime-soft {
  background: radial-gradient(circle, var(--lime-soft) 0%, transparent 70%);
  opacity: 0.18;
}

/* =========== BUTTONS =========== */
.btn {
  --pad-x: 22px;
  --pad-y: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  white-space: nowrap;
  will-change: transform;
}
.btn-lime {
  background: var(--lime);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(198, 255, 61, 0), 0 14px 40px -8px rgba(198, 255, 61, 0.55);
}
.btn-lime:hover {
  background: var(--lime-soft);
  box-shadow: 0 0 0 8px rgba(198, 255, 61, 0.12), 0 18px 50px -6px rgba(198, 255, 61, 0.7);
}
.btn-ghost {
  background: var(--glass);
  color: var(--fg);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover {
  background: var(--glass-2);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========== CARDS =========== */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

/* =========== UTIL =========== */
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.center { align-items: center; justify-content: center; }
.col { flex-direction: column; }

/* =========== REVEAL ANIMATION =========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* =========== PHONE FRAME =========== */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #050505;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.02),
    0 60px 140px -20px rgba(0,0,0,0.7),
    0 0 120px rgba(198, 255, 61, 0.18);
  padding: 10px;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 95px; height: 26px;
  background: #050505;
  border-radius: 999px;
  z-index: 5;
}

/* Screenshot inside phone frame (image already includes status bar/notch) */
.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(198,255,61,0.3); }

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  flex-shrink: 0;
  width: max-content;
  will-change: transform;
}
@keyframes scroll-x {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }
