/* Ryzefy marketing site. Palette locked: red #CC0000, silver #B0B0B0,
   bg #0A0A0A, card #141414, white text. Dark-first, no glow blobs,
   no pill badges. Display: Space Grotesk. Body: Inter. */

:root {
  --red: #CC0000;
  --red-soft: #ff6b6b;
  --bg: #0A0A0A;
  --card: #141414;
  --card-2: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.4);
  --green: #22c55e;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.lede { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 620px; }
.accent { color: var(--red); position: relative; white-space: nowrap; }
.accent-underline {
  position: absolute; left: 0; bottom: -6px; height: 4px; width: 100%;
  border-radius: 999px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  animation: underline-in 0.8s 0.5s ease-out forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: scale(1.03); }
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--bg); padding: 9px 18px; font-size: 14px; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-wide { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.brand-logo { height: 26px; width: auto; }
.main-nav { display: none; gap: 32px; font-size: 14px; color: var(--muted); }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px; font-size: 12px;
}
.lang-switch span { padding: 4px 10px; }
.lang-on { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; }
.lang-off { color: rgba(255, 255, 255, 0.45); }
.lang-switch:hover .lang-off { color: #fff; }
.login-link { display: none; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.login-link:hover { color: #fff; }

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .login-link { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60vh;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr;
  align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 64px;
}
.hero-copy h1 { font-size: clamp(44px, 7vw, 68px); }
.hero-copy .lede { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-line { margin-top: 32px; font-size: 14px; color: var(--faint); }
.hero-media { position: relative; }
.video-frame {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.9);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; padding-top: 56px; padding-bottom: 80px; }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-row { display: flex; flex-shrink: 0; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-item {
  display: flex; align-items: center; gap: 40px; white-space: nowrap;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
}
.marquee-item .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.section-head { max-width: 680px; }
.section-head .display { font-size: clamp(32px, 5vw, 48px); }
.section-head .lede { margin-top: 20px; }

/* Product stage */
.product-stage { position: relative; margin-top: 56px; }
.product-stage::before {
  /* Contained rotating sheen behind the product, the one ambient motion. */
  content: ""; position: absolute; inset: -32px; border-radius: 999px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(204, 0, 0, 0.5) 60deg, transparent 140deg, transparent 220deg, rgba(204, 0, 0, 0.28) 290deg, transparent 360deg);
  filter: blur(48px); opacity: 0.4;
  animation: sheen-rotate 18s linear infinite;
  pointer-events: none;
}
@keyframes sheen-rotate { to { transform: rotate(360deg); } }
.browser-frame {
  position: relative; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #0d0d0d;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.9);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-soft); background: var(--card);
  padding: 10px 14px;
}
.bdot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); }
.burl {
  margin: 0 auto; border-radius: 6px; background: rgba(255, 255, 255, 0.04);
  padding: 2px 12px; font-size: 11px; color: rgba(255, 255, 255, 0.4);
}
.sim-card {
  position: relative; margin: 24px auto 0; max-width: 384px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card-2);
  padding: 24px; box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.95);
}
@media (min-width: 960px) {
  .sim-card { position: absolute; right: 16px; bottom: 16px; margin: 0; width: 300px; padding: 20px; }
}
.sim-head { display: flex; align-items: center; justify-content: space-between; }
.sim-live {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
}
.ping { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--red); }
.ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--red); animation: ping 1.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }
.sim-tag {
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
  padding: 2px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--faint);
}
.sim-score-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.sim-score {
  font-family: var(--font-display); font-size: 60px; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--green);
  transition: color 0.2s ease;
}
.sim-side { padding-bottom: 6px; }
.sim-delta { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--green); }
.sim-band { display: block; font-size: 12px; color: var(--faint); }
.sim-desc { margin: 18px 0 0; font-size: 14px; color: var(--muted); min-height: 42px; }
.sim-desc strong { color: #fff; font-variant-numeric: tabular-nums; }

#sim-slider {
  width: 100%; margin-top: 10px; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12) var(--fill-start, 50%), var(--sim-color, var(--green)) var(--fill-start, 50%), var(--sim-color, var(--green)) var(--fill-end, 50%), rgba(255,255,255,0.12) var(--fill-end, 50%));
  outline: none;
}
#sim-slider::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 999px;
  background: #fff; border: 2px solid var(--sim-color, var(--green)); cursor: grab;
}
#sim-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px;
  background: #fff; border: 2px solid var(--sim-color, var(--green)); cursor: grab;
}
.sim-scale {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
}
.sim-bureaus { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.sim-bureaus-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.35); margin-bottom: 10px;
}
.sim-bureau-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim-bureau { border-radius: 8px; background: rgba(255, 255, 255, 0.03); padding: 8px 10px; }
.sim-bureau span { display: block; font-size: 10px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-bureau strong { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.sim-note { margin-top: 14px; font-size: 10px; color: rgba(255, 255, 255, 0.35); }

/* How it works */
.steps-track { position: relative; display: none; height: 1px; margin-top: 64px; background: rgba(255, 255, 255, 0.1); }
@media (min-width: 960px) { .steps-track { display: block; } }
.track-pulse {
  position: absolute; top: 50%; height: 3px; width: 128px; translate: 0 -50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 14px var(--red);
  animation: track-move 4.8s linear infinite;
}
@keyframes track-move { from { left: -128px; } to { left: 100%; } }
.steps-track .track-node {
  position: absolute; top: 50%; width: 10px; height: 10px; translate: -50% -50%;
  border-radius: 999px; background: var(--red); box-shadow: 0 0 10px var(--red);
}
.steps-track .track-node:nth-of-type(2) { left: 16.66%; }
.steps-track .track-node:nth-of-type(3) { left: 50%; }
.steps-track .track-node:nth-of-type(4) { left: 83.33%; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 960px) { .steps-grid { grid-template-columns: repeat(3, 1fr); margin-top: 40px; } }
.step-card { border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); padding: 24px; }
.step-n {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.15); margin-bottom: 20px;
}
.step-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 20px 0 0; }
.step-card p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.bureau-pull { display: grid; gap: 8px; }
.bureau-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); padding: 8px 12px;
  font-size: 12px; color: rgba(255, 255, 255, 0.7);
  animation: bureau-glow 2.7s ease-in-out infinite;
}
.bureau-row.d2 { animation-delay: 0.6s; }
.bureau-row.d3 { animation-delay: 1.2s; }
.bureau-row .check { color: var(--green); }
@keyframes bureau-glow {
  0%, 100% { border-color: rgba(255, 255, 255, 0.08); }
  35% { border-color: rgba(204, 0, 0, 0.45); }
}

.scan-visual {
  position: relative; height: 118px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); padding: 10px;
  display: grid; gap: 8px; align-content: start;
}
.finding {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(204, 0, 0, 0.25); border-radius: 8px;
  background: rgba(204, 0, 0, 0.06); padding: 6px 10px;
  font-size: 12px; color: rgba(255, 255, 255, 0.8);
}
.finding-tag {
  border-radius: 4px; background: rgba(204, 0, 0, 0.2); padding: 2px 6px;
  font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--red-soft);
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(204, 0, 0, 0.3), transparent);
  animation: scan 2.6s linear infinite;
}
@keyframes scan { from { top: -40px; } to { top: 128px; } }

.mail-visual {
  display: flex; height: 118px; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); padding: 12px;
}
.mail-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--faint); }
.mail-to { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.mail-re { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.mail-foot { display: flex; align-items: center; justify-content: space-between; }
.mail-cert {
  border: 1px solid rgba(204, 0, 0, 0.5); border-radius: 4px; padding: 4px 8px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--red-soft); animation: cert-pulse 2.4s ease-in-out infinite;
}
@keyframes cert-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.mail-sent { font-size: 11px; color: var(--green); }

/* Pricing */
.price-card {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card-2);
  padding: 40px; margin-top: 56px;
}
@media (min-width: 860px) { .price-card { grid-template-columns: 0.8fr 1.2fr; padding: 48px; } }
.price-figure { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -0.02em; }
.price-per { font-size: 18px; color: var(--faint); }
.price-main .btn { margin-top: 28px; }
.price-fine { margin-top: 16px; font-size: 13px; color: var(--faint); }
.price-included-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 14px;
}
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-list li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.price-mail { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.price-mail p { margin: 0; font-size: 14px; color: var(--muted); }

/* Security */
.security-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
@media (min-width: 700px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
.security-card {
  border-radius: 16px; border: 1px solid var(--line); background: var(--card-2);
  border-top: 2px solid rgba(204, 0, 0, 0.6);
  padding: 26px;
}
.security-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; }
.security-card p { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* Learn */
.learn-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
@media (min-width: 700px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: repeat(3, 1fr); } }
.learn-card {
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card-2);
  padding: 26px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.learn-card:hover { border-color: rgba(204, 0, 0, 0.5); transform: translateY(-2px); }
.learn-cat {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red-soft); margin-bottom: 12px;
}
.learn-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.learn-card p {
  margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.learn-meta { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--faint); }
.learn-more { margin-top: 40px; }

/* Learn pages */
.learn-page, .article-page { padding-top: 64px; padding-bottom: 96px; }
.crumbs { margin-bottom: 40px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: #fff; }
.article-page h1 { font-size: clamp(32px, 5vw, 46px); max-width: 760px; }
.article-meta { margin-top: 16px; font-size: 13px; color: var(--faint); }
.article-body { max-width: 720px; margin-top: 40px; }
.article-body h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.01em; margin: 44px 0 0;
}
.article-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 32px 0 0; }
.article-body p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.75); }
.article-body li { margin: 8px 0 0; color: rgba(255, 255, 255, 0.75); }
.article-body ul, .article-body ol { margin: 16px 0 0; padding-left: 24px; }
.article-body strong { color: #fff; }
.article-body a { color: var(--red-soft); text-decoration: underline; }
.article-body blockquote {
  margin: 20px 0 0; border-left: 3px solid var(--red); padding: 4px 0 4px 18px;
  color: var(--muted);
}
.article-body table { border-collapse: collapse; margin-top: 20px; width: 100%; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--card); }
.article-cta {
  max-width: 720px; margin-top: 64px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card-2); padding: 32px;
}
.article-cta h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 20px; }
.article-cta .footer-disclaimer { margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; }
.home .site-footer { margin-top: 0; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 22px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: #fff; }
.footer-disclaimer { margin: 24px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); max-width: 760px; }
.footer-copy { margin: 20px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.3); }

/* 404 */
.notfound { padding: 120px 24px 160px; text-align: left; }
.notfound .btn { margin-top: 32px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .track-pulse, .scan-line, .bureau-row, .mail-cert, .ping::after,
  .product-stage::before, .accent-underline { animation: none; }
  .accent-underline { transform: scaleX(1); }
  html { scroll-behavior: auto; }
}
