:root {
  --bg: #000000;
  --bg-elevated: #121212;
  --bg-input: #1c1c1c;
  --text: #ffffff;
  --text-muted: #9a9a9a;
  --text-dim: #6e6e6e;
  --accent: #ff3b30;
  --accent-soft: #ff5a52;
  --border: rgba(255, 59, 48, 0.55);
  --radius-lg: 22px;
  --radius-pill: 999px;
  --page-pad: clamp(18px, 5vw, 28px);
  --max-width: 420px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Animated atmosphere */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 59, 48, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 48, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(58deg) translateY(-12%);
  transform-origin: center top;
  animation: grid-drift 18s linear infinite;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: screen;
}

.bg-orb-a {
  width: 280px;
  height: 280px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 59, 48, 0.55), transparent 68%);
  animation: orb-pulse 5.5s ease-in-out infinite;
}

.bg-orb-b {
  width: 220px;
  height: 220px;
  bottom: 12%;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 90, 40, 0.28), transparent 70%);
  animation: orb-float 11s ease-in-out infinite;
}

.bg-orb-c {
  width: 200px;
  height: 200px;
  top: 38%;
  right: -50px;
  background: radial-gradient(circle, rgba(255, 40, 70, 0.22), transparent 70%);
  animation: orb-float 13s ease-in-out infinite reverse;
}

.bg-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 59, 48, 0.08) 48%,
    transparent 52%
  );
  background-size: 100% 220%;
  animation: scan-sweep 4.8s linear infinite;
  opacity: 0.7;
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 90, 80, 0.85);
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
  animation: particle-rise linear infinite;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 59, 48, 0.18), transparent 55%),
    radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 16px var(--page-pad) 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  animation: fade-up 0.55s ease both;
}

.hero-alert {
  text-align: center;
  margin-bottom: 32px;
  padding: 8px 0 4px;
  animation: fade-up 0.65s ease both;
  animation-delay: 0.05s;
}

.hero-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 59, 48, 0.08) inset,
    0 8px 24px rgba(255, 59, 48, 0.18);
  backdrop-filter: blur(6px);
}

.hero-icon svg {
  width: 28px;
  height: 28px;
}

.hero-icon-warn {
  animation: icon-bob 2.4s ease-in-out infinite, icon-glow 2.4s ease-in-out infinite;
}

.hero-icon-siren {
  width: 58px;
  height: 58px;
  animation: icon-bob 2.4s ease-in-out infinite 0.2s, icon-glow 2s ease-in-out infinite 0.15s;
}

.hero-icon-siren svg {
  width: 30px;
  height: 30px;
}

.hero-icon-shield {
  animation: icon-bob 2.4s ease-in-out infinite 0.4s, icon-glow 2.6s ease-in-out infinite 0.3s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 59, 48, 0.45);
  background: rgba(255, 59, 48, 0.12);
  color: #ff8a82;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: badge-flash 2.8s ease-in-out infinite;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.2s step-end infinite;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  text-shadow: 0 0 28px rgba(255, 59, 48, 0.35);
}

.hero-title-brand {
  display: block;
  color: var(--accent);
  background: linear-gradient(90deg, #ff6b63, #ff3b30, #ff8a4c, #ff3b30);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shine 3.5s linear infinite;
}

.hero-sub {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.cases {
  display: grid;
  gap: 34px;
}

.case-card {
  animation: fade-up 0.6s ease both;
}

.case-card:nth-child(2) {
  animation-delay: 0.05s;
}

.case-card:nth-child(3) {
  animation-delay: 0.1s;
}

.case-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.case-flame {
  font-size: 1.15rem;
  line-height: 1;
}

.case-body {
  display: grid;
  gap: 12px;
  font-size: 0.98rem;
}

.case-row {
  margin: 0;
}

.case-label {
  color: var(--accent);
  font-weight: 800;
}

.hl {
  color: var(--accent);
  font-weight: 700;
}

.checklist-section {
  margin-top: 40px;
  animation: fade-up 0.65s ease both;
  animation-delay: 0.12s;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.98rem;
}

.check-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.8px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.cta-section {
  margin-top: 34px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.16s;
}

.cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 59, 48, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(255, 59, 48, 0.36);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-icons svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.footer-link {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #b45a56;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-soft);
}

.footer-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.footer-icon svg {
  width: 22px;
  height: 22px;
}

.disclaimer {
  margin-top: 28px;
  padding-top: 8px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.2s;
}

.disclaimer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.55;
}

.disclaimer strong {
  color: var(--text-muted);
  font-weight: 700;
}

.disclaimer-icon {
  margin-right: 4px;
}

/* iOS non-Safari gate */
.safari-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background: #f2f2f7;
  overflow: auto;
}

.safari-gate[hidden] {
  display: none;
}

.safari-gate-card {
  width: min(100%, 360px);
  text-align: center;
  animation: fade-up 0.4s ease both;
}

.safari-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.safari-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.safari-gate-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.safari-gate-desc {
  margin: 0 auto 28px;
  max-width: 30ch;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.5;
}

.safari-url-label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.safari-url-input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 0.95rem;
  outline: none;
}

.safari-url-input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.safari-copy-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.safari-copy-btn svg {
  width: 18px;
  height: 18px;
}

.safari-copy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.safari-copy-btn:active {
  transform: translateY(0);
}

.safari-copy-tip {
  margin: 12px 0 0;
  color: #16a34a;
  font-size: 0.88rem;
  font-weight: 600;
}

body.safari-gate-active .bg-fx,
body.safari-gate-active .page,
body.safari-gate-active .modal-overlay {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(100%, 360px);
  padding: 28px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-shield {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  color: var(--accent);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.modal-shield svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.modal-title-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.modal-title-icon svg {
  width: 16px;
  height: 16px;
}

.modal-title-rest {
  color: var(--text);
  font-weight: 700;
}

.modal-desc {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.modal-form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: #666;
}

.field-input:focus {
  border-color: rgba(255, 59, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.form-error,
.form-success {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-error {
  color: #ff8a84;
}

.form-success {
  color: #7dffa3;
}

.modal-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.modal-submit svg {
  width: 18px;
  height: 18px;
}

.modal-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.modal-later {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px;
}

.modal-later:hover {
  color: #ccc;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 42px;
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -22px);
  }
}

@keyframes scan-sweep {
  from {
    background-position: 0 -40%;
  }
  to {
    background-position: 0 140%;
  }
}

@keyframes particle-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-105vh) scale(0.4);
    opacity: 0;
  }
}

@keyframes icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes icon-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 59, 48, 0.08) inset,
      0 8px 24px rgba(255, 59, 48, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 59, 48, 0.2) inset,
      0 0 28px rgba(255, 59, 48, 0.45);
  }
}

@keyframes badge-flash {
  0%,
  100% {
    border-color: rgba(255, 59, 48, 0.45);
    background: rgba(255, 59, 48, 0.12);
  }
  50% {
    border-color: rgba(255, 90, 80, 0.75);
    background: rgba(255, 59, 48, 0.22);
  }
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes title-shine {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 220% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-orb,
  .bg-scan,
  .particle,
  .hero-icon,
  .hero-badge,
  .hero-badge-dot,
  .hero-title-brand {
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .page {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .case-title,
  .section-title {
    font-size: 1.28rem;
  }
}
