:root {
  --m-bg: #071018;
  --m-bg2: #0c1a24;
  --m-card: rgba(14, 28, 38, 0.82);
  --m-text: #e8f4f8;
  --m-muted: #8aaab8;
  --m-line: rgba(120, 190, 210, 0.16);
  --m-accent: #3dffc5;
  --m-accent-dim: #1fb892;
  --m-accent-soft: rgba(61, 255, 197, 0.12);
  --m-amber: #ffc857;
  --m-ok: #4ade80;
  --m-danger: #ff6b6b;
  --m-radius: 14px;
  --m-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.marketing {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--m-text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(61, 255, 197, 0.14), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(56, 160, 220, 0.12), transparent 50%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 200, 87, 0.08), transparent 45%),
    linear-gradient(180deg, var(--m-bg), var(--m-bg2));
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.m-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.m-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Nav */
.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--m-text);
}

.m-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--m-accent), #0ea5a0);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(61, 255, 197, 0.25);
  overflow: hidden;
}

.m-logo svg {
  width: 20px;
  height: 20px;
}

.m-logo:has(img) {
  background: transparent;
  box-shadow: 0 8px 24px rgba(61, 255, 197, 0.2);
}

.m-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--m-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.m-nav-links a:hover {
  color: var(--m-accent);
}

.m-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.m-btn:hover {
  transform: translateY(-1px);
}

.m-btn-primary {
  background: var(--m-accent);
  color: #042018;
  box-shadow: 0 10px 28px rgba(61, 255, 197, 0.22);
}

.m-btn-primary:hover {
  background: #6fffd4;
}

.m-btn-outline,
.m-btn-ghost {
  background: rgba(4, 16, 24, 0.45);
  border-color: var(--m-line);
  color: var(--m-text);
}

.m-btn-outline:hover,
.m-btn-ghost:hover {
  border-color: rgba(61, 255, 197, 0.4);
  color: var(--m-accent);
}

.m-btn-block {
  width: 100%;
}

/* Hero */
.m-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  border: 1px solid rgba(61, 255, 197, 0.22);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.m-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--m-text);
}

.m-hero h1 .mark {
  color: var(--m-accent);
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-color: rgba(61, 255, 197, 0.55);
}

.m-hero-sub {
  color: var(--m-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
  max-width: 34rem;
}

.m-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.m-checks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--m-text);
  font-weight: 500;
}

.m-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  border: 1px solid rgba(61, 255, 197, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
}

.m-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero visual */
.m-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.m-rings {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 42%, rgba(61, 255, 197, 0.12) 43%, transparent 44%),
    radial-gradient(circle, transparent 58%, rgba(56, 160, 220, 0.1) 59%, transparent 60%),
    radial-gradient(circle, transparent 74%, rgba(255, 200, 87, 0.08) 75%, transparent 76%);
  animation: mPulse 8s ease-in-out infinite;
}

@keyframes mPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.85;
  }
}

.m-orbit {
  position: relative;
  z-index: 2;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  border-radius: 50%;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  backdrop-filter: blur(12px);
  box-shadow: var(--m-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  animation: mFloat 5s ease-in-out infinite;
}

@keyframes mFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.m-orbit-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--m-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.m-live {
  color: var(--m-ok);
  font-size: 0.72rem;
}

.m-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.35rem 0 0;
  color: var(--m-accent);
}

.m-msg {
  position: absolute;
  z-index: 3;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  width: min(200px, 46vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
  animation: mCardIn 0.7s ease both;
}

.m-msg strong {
  display: block;
  margin-bottom: 0.2rem;
}

.m-msg .meta {
  color: var(--m-muted);
  margin-bottom: 0.35rem;
}

.m-msg .code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.m-msg .copy {
  color: var(--m-accent);
  font-weight: 600;
  font-size: 0.72rem;
  font-family: var(--font);
}

.m-msg-1 {
  top: 8%;
  right: 0;
  animation-delay: 0.1s;
}

.m-msg-2 {
  bottom: 18%;
  left: 0;
  animation-delay: 0.25s;
}

.m-msg-3 {
  bottom: 6%;
  right: 4%;
  animation-delay: 0.4s;
}

@keyframes mCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popular */
.m-section {
  padding: 2.5rem 0 3.5rem;
}

.m-section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.m-eyebrow {
  color: var(--m-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

.m-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.55rem;
}

.m-section-head h2 .mark {
  color: var(--m-accent);
  text-decoration: underline;
  text-decoration-color: rgba(61, 255, 197, 0.45);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
}

.m-section-head p {
  color: var(--m-muted);
  margin: 0;
}

.m-table-card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 18px;
  box-shadow: var(--m-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.m-table {
  width: 100%;
  border-collapse: collapse;
}

.m-table th,
.m-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(120, 190, 210, 0.1);
}

.m-table th {
  color: var(--m-muted);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(4, 16, 24, 0.45);
}

.m-table tr:last-child td {
  border-bottom: 0;
}

.m-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.m-flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--m-line);
}

.m-svc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(4, 16, 24, 0.6);
  border: 1px solid var(--m-line);
}

.m-op {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 222, 128, 0.12);
  color: var(--m-ok);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.m-op i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-ok);
  display: inline-block;
}

.m-btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* FAQ */
.m-faq {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.m-faq details {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.m-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.m-faq summary::-webkit-details-marker {
  display: none;
}

.m-faq summary::after {
  content: '▾';
  color: var(--m-muted);
}

.m-faq details[open] summary::after {
  content: '▴';
}

.m-faq p {
  color: var(--m-muted);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.m-support {
  max-width: 760px;
  margin: 0 auto;
  background: var(--m-accent-soft);
  border: 1px solid rgba(61, 255, 197, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.m-support h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
}

.m-support p {
  margin: 0;
  color: var(--m-muted);
  font-size: 0.92rem;
}

.m-support-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.m-docs-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  color: var(--m-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Footer */
.m-footer {
  background: rgba(4, 16, 24, 0.65);
  border-top: 1px solid var(--m-line);
  margin-top: 2rem;
  padding: 2rem 0 1.5rem;
}

.m-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.m-social {
  display: flex;
  gap: 0.5rem;
}

.m-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 28, 38, 0.9);
  border: 1px solid var(--m-line);
  display: grid;
  place-items: center;
  color: var(--m-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.m-social a:hover {
  color: var(--m-accent);
  border-color: rgba(61, 255, 197, 0.35);
}

.m-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--m-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.m-footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.m-footer-links a:hover {
  color: var(--m-accent);
}

.m-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--m-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(120, 190, 210, 0.1);
  padding-top: 1rem;
}

/* Auth pages */
body.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  font-family: var(--font);
  color: var(--m-text);
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(61, 255, 197, 0.14), transparent 55%),
    radial-gradient(700px 400px at 10% 100%, rgba(56, 160, 220, 0.12), transparent 50%),
    linear-gradient(180deg, var(--m-bg), var(--m-bg2));
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.auth-head .m-logo {
  margin: 0 auto 0.85rem;
}

.auth-head h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
  color: var(--m-text);
}

.auth-head p {
  margin: 0;
  color: var(--m-muted);
}

.auth-card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 18px;
  box-shadow: var(--m-shadow);
  padding: 1.5rem 1.4rem 1.35rem;
  backdrop-filter: blur(12px);
}

.auth-field {
  margin-bottom: 0.95rem;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--m-muted);
}

.auth-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(4, 16, 24, 0.55);
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.auth-input:focus-within {
  border-color: rgba(61, 255, 197, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 255, 197, 0.12);
}

.auth-input .ico {
  color: var(--m-muted);
  font-size: 0.95rem;
  width: 1.1rem;
  text-align: center;
}

.auth-input input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--m-text);
}

.auth-input input::placeholder {
  color: rgba(138, 170, 184, 0.65);
}

.auth-input button {
  border: 0;
  background: transparent;
  color: var(--m-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.auth-terms {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--m-muted);
  line-height: 1.45;
  margin: 0.5rem 0 1rem;
}

.auth-terms a {
  color: var(--m-accent);
  font-weight: 600;
}

.auth-terms input {
  margin-top: 0.2rem;
  accent-color: var(--m-accent);
}

.auth-robot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: rgba(4, 16, 24, 0.45);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-robot input {
  accent-color: var(--m-accent);
}

.auth-alert {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
}

.auth-alert.error {
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.auth-alert.ok {
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.auth-forgot {
  text-align: right;
  margin: -0.35rem 0 1rem;
}

.auth-forgot a {
  color: var(--m-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-switch {
  text-align: center;
  margin: 1rem 0 0.25rem;
  color: var(--m-muted);
  font-size: 0.92rem;
}

.auth-switch a {
  color: var(--m-accent);
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--m-muted);
  font-size: 0.82rem;
  margin: 1.1rem 0 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--m-line);
}

.m-btn-google {
  width: 100%;
  background: rgba(4, 16, 24, 0.55);
  border: 1px solid var(--m-line);
  color: var(--m-text);
}

.m-btn-google:hover {
  border-color: rgba(61, 255, 197, 0.35);
}

.m-btn-google img {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .m-hero {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .m-visual {
    order: -1;
    min-height: 320px;
  }

  .m-nav-links {
    display: none;
  }

  .m-table th:nth-child(3),
  .m-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .m-msg-1,
  .m-msg-3 {
    display: none;
  }

  .m-table th:first-child,
  .m-table td:first-child {
    display: none;
  }

  .m-btn-sm {
    width: 100%;
  }
}
