/* Modern landing page styles (no legacy Rails CSS/JS) */
:root {
  --bg: #d4d9e6;
  --panel: rgba(4, 6, 14, 0.55);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-hover: rgba(4, 6, 14, 0.7);
  --accent: #3b82f6;
  --accent-2: #6a8bff;
  --text: #f8fafc;
  --muted: #aeb6c5;
  --card-radius: 28px;
  --glow: 0 0 50px -12px rgba(59, 130, 246, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.hero-gradient {
  background:
    linear-gradient(135deg, #0b1f38 0%, rgba(19, 50, 94, 0.85) 35%, rgba(212, 217, 230, 0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(91, 212, 255, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(127, 140, 255, 0.12) 0%, transparent 50%);
}

.page {
  min-height: 100vh;
  position: relative;
  padding-bottom: 4rem;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
}

.nav__brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.nav__brand .group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav__brand .group:hover {
  color: #60a5fa;
}

.text-annoying-blue {
  color: var(--accent);
}

.group:hover .text-annoying-blue {
  color: #60a5fa;
}

.logo-animate {
  display: block;
  transform-origin: center;
  transform: rotate(0deg);
  animation: logo-spin-pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.34));
  transition: color 0.2s ease, filter 0.2s ease, transform 0.25s ease;
  will-change: transform, filter;
}

.group:hover .logo-animate {
  filter: drop-shadow(0 0 22px rgba(96, 165, 250, 0.38));
  animation-duration: 2.4s;
  transform: scale(1.12) rotate(182deg);
}

@keyframes logo-spin-pulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  12% {
    transform: scale(1.05) rotate(360deg);
  }
  20% {
    transform: scale(1.02) rotate(220deg);
  }
  50% {
    transform: scale(1.15) rotate(174deg);
  }
  80% {
    transform: scale(1.12) rotate(186deg);
  }
  100% {
    transform: scale(1) rotate(180deg);
  }
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.h-14 {
  height: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.text-3xl {
  font-size: 2rem;
  line-height: 1.1;
}

.text-4xl {
  font-size: 2.4rem;
  line-height: 1.1;
}

.font-extrabold {
  font-weight: 800;
}

.tracking-tight {
  letter-spacing: -0.03em;
}

.transition-colors {
  transition: color 0.2s ease;
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 3rem 3rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__link {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__meta {
  color: var(--muted);
  font-weight: 600;
}

.footer__eu {
  display: flex;
  align-items: center;
}

.footer__eu-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 10px 30px -22px rgba(0, 0, 0, 0.8));
}

.footer__locale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__locale-label {
  font-weight: 700;
  color: var(--muted);
}

.footer__locale-links {
  display: flex;
  gap: 0.5rem;
}

.footer__locale-link {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.footer__locale-link:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.footer__locale-link.is-active {
  color: var(--text);
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

.badge {
  background: white;
  color: black;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: white;
  color: black;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  background: #e5e7eb;
}

.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: center;
  position: relative;
  margin-bottom: 4rem;
}

.hero--center {
  text-align: center;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 3rem;
  margin-bottom: 1.5rem;
}

.hero__intro {
  max-width: 900px;
  margin: 0 auto;
}

.hero--center .hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero__actions > * {
  flex: 0 1 220px;
  min-width: 180px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem 0;
}

.hero__accent {
  color: var(--accent);
}

.hero__lead {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 20px 60px -25px rgba(59, 130, 246, 0.6);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.phone {
  position: relative;
  width: min(360px, 92vw);
  height: min(720px, 90vh);
  background: linear-gradient(180deg, #05070d, #02030a);
  border-radius: 48px;
  border: 14px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.phone--wide {
  width: min(460px, 96vw);
  height: min(820px, 92vh);
}

.phone__glow {
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), transparent 60%);
  filter: blur(60px);
  z-index: 0;
}

.phone__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #020617;
}

.phone__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bubble {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.bubble__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}

.bubble__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.bubble__text {
  margin: 0.4rem 0 0 0;
  color: #d1d5db;
  font-style: italic;
  line-height: 1.5;
}

.actions {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
}

.action-btn {
  flex: 1;
  height: 56px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action--accept {
  background: #10b981;
  color: black;
}

.action--reject {
  background: #ef4444;
  color: white;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.beta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem 3rem;
}

.beta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid var(--panel-border);
}

.beta__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.beta__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beta__card-title {
  margin: 0;
  font-size: 1.6rem;
}

.beta__card-subtitle {
  margin: 0;
  color: var(--muted);
}

.beta__card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.beta__requirements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.beta__requirement {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.beta__requirement-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.beta__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  position: relative;
}

.beta__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.beta__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.beta__label {
  font-weight: 800;
  font-size: 1rem;
}

.beta__input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beta__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.beta__input::placeholder {
  color: var(--muted);
}

.beta__hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.beta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.beta__submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-shadow: none;
}

.beta__submit:hover {
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 800;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: #94a3b8;
  color: #ffffff;
  transform: translateY(-1px);
}

.beta__ghost {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.beta__back {
  margin-top: 0.75rem;
  display: flex;
  width: 100%;
}

.beta__back .btn-ghost {
  width: 100%;
}

.beta__back--page {
  margin: 2rem auto 0;
  max-width: 1100px;
  padding: 0 3rem 3rem;
}

.beta__back--page .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 900;
  text-shadow: none;
}

.beta__back--page .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #e2e8f0;
  color: #0b1221;
}

.beta__ghost-link {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.beta__ghost-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.beta__flash {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.beta__flash--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.beta__flash--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.beta__flash-icon {
  font-size: 1.1rem;
}

.beta__privacy {
  color: var(--muted);
}

.beta__privacy--inline {
  margin-top: 0.25rem;
  font-size: 0.98rem;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .page {
    width: 100%;
    margin: 0;
    padding: 0 0 2rem 0;
  }

  .nav {
    padding: 1.25rem 1.25rem;
  }

  .nav__brand {
    gap: 0.5rem;
  }

  .nav__brand .logo-animate {
    width: 3rem;
    height: 3rem;
  }

  .brand-title {
    font-size: 1.6rem;
    white-space: nowrap;
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 0 1.25rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid {
    padding: 0 1.25rem 2rem;
    gap: 1.25rem;
  }

  .beta {
    padding: 0 1.25rem 2rem;
  }

  .beta__grid {
    grid-template-columns: 1fr;
  }

  .beta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost,
  .beta__submit {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .phone {
    width: 100%;
    height: min(640px, 85vh);
    max-width: 420px;
  }

  .panel {
    padding: 1.5rem;
    min-height: auto;
  }

  .panel--wide {
    grid-column: 1 / -1;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: border 0.25s ease, background 0.25s ease, transform 0.25s ease;
  min-height: 220px;
  box-shadow: 0 20px 60px -36px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 0;
}

.panel:hover {
  border-color: var(--panel-hover);
  background: var(--panel-hover);
  transform: translateY(-4px);
}

.panel h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel--wide {
  grid-column: span 2;
}

.panel__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.eu-badge {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}

.eu-flag {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #003399, #012271);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  padding: 8px;
}

.eu-dot {
  width: 8px;
  height: 8px;
  background: #ffcc00;
  border-radius: 999px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.guide-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 3rem;
  display: grid;
  gap: 1.5rem;
}

.guide__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide__section-header p {
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}

.guide__examples {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide__examples--stacked {
  grid-template-columns: 1fr;
}

.guide__example {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1rem;
  min-height: 0;
}

.guide__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 0.4rem 0;
}

.guide__code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
  white-space: pre-wrap;
}

.guide__effect {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide__list {
  margin: 0 0 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide__warning {
  margin: 0.4rem 0 0 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  line-height: 1.5;
}

.guide__tips {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide__tip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1rem;
}

.guide__tip strong {
  display: block;
  margin: 0 0 0.4rem 0;
}

@media (max-width: 720px) {
  .guide-grid {
    padding: 0 1.5rem 2.5rem;
  }
}
