:root {
  color-scheme: dark;
  --bg: #030913;
  --text: #eef4f8;
  --muted: #aebdca;
  --muted-2: #8ea3b7;
  --cyan: #29c4ff;
  --cyan-2: #7fe8ff;
  --line: rgba(41, 196, 255, 0.05);
  --border: rgba(90, 210, 255, 0.18);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  --button-text: #031018;
  --card-bg: rgba(3, 10, 16, 0.74);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 82% 20%, rgba(41, 196, 255, 0.10), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(41, 196, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #06101b 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 64% 40%, black 24%, transparent 78%);
  opacity: 0.9;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  padding: 28px 0 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  padding: 12px 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark-wrap {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.brand-mark {
  width: 88px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(41, 196, 255, 0.18));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.95rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ecf1f6;
}

.brand-domain {
  margin-top: 8px;
  color: #8eb8d8;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-cta,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-cta {
  color: var(--text);
  border: 1px solid rgba(41, 196, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

.nav-cta:hover,
.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(320px, 420px);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: 12px 0 56px;
}

.content-panel,
.visual-panel {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 0%, rgba(110, 233, 255, 0.8), transparent 7%),
    radial-gradient(circle at 86% 12%, rgba(41, 196, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, #05111b 0%, #030c16 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(41, 196, 255, 0.08),
    0 0 70px rgba(41, 196, 255, 0.08),
    var(--shadow);
  overflow: hidden;
}

.content-panel::before,
.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 196, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 196, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.75;
  pointer-events: none;
}

.content-panel {
  padding: 34px;
}

.content-panel::before {
  mask-image: radial-gradient(circle at 40% 35%, black 26%, transparent 78%);
}

.visual-panel {
  min-height: 620px;
  padding: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

.visual-panel::before {
  mask-image: radial-gradient(circle at 52% 52%, transparent 18%, black 72%);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 210, 255, 0.16);
  background: rgba(3, 10, 16, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.lead {
  margin: 24px 0 10px;
  font-size: clamp(1.08rem, 1.9vw, 1.26rem);
  line-height: 1.62;
  color: var(--text);
}

p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.body-copy {
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-width: 220px;
  color: var(--button-text);
  background: linear-gradient(180deg, #4ed8ff 0%, var(--cyan) 100%);
  box-shadow: 0 14px 34px rgba(41, 196, 255, 0.22);
}

.button-secondary {
  min-width: 220px;
  color: var(--text);
  border: 2px solid rgba(41, 196, 255, 0.9);
  background: rgba(0, 0, 0, 0.08);
}

.footnote {
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 1rem;
}

.visual-badge {
  width: min(100%, 260px);
  filter: drop-shadow(0 0 20px rgba(41, 196, 255, 0.18));
}

.status-card {
  width: min(100%, 270px);
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(41, 196, 255, 0.34);
}

.status-card.alert {
  border-color: rgba(255, 111, 122, 0.34);
}

.status-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-2);
}

.status-card.alert .status-label {
  color: #ffb4ba;
}

.status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  font-size: 0.94rem;
  line-height: 1;
}

.status-copy {
  color: #b1c0ce;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

.visual-note {
  width: min(100%, 300px);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

.pricing-page {
  padding: 56px 0 72px;
}

.pricing-hero {
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.pricing-hero .meta {
  justify-content: center;
  margin-bottom: 22px;
}

.pricing-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.pricing-hero .lead {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 196, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(11, 28, 42, 0.98), rgba(4, 15, 24, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.plan-card.featured {
  border-color: rgba(41, 196, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(41, 196, 255, 0.14),
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(41, 196, 255, 0.1);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 22px;
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--button-text);
  background: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-name {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-summary {
  min-height: 52px;
  margin-top: 8px;
  font-size: 0.98rem;
}

.price {
  display: flex;
  align-items: flex-start;
  color: var(--text);
}

.price strong {
  font-size: clamp(3.3rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.currency {
  margin: 5px 5px 0 0;
  color: var(--cyan-2);
  font-size: 1.25rem;
  font-weight: 800;
}

.period {
  align-self: flex-end;
  margin: 0 0 5px 8px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.mailbox-count {
  margin-top: -14px;
  color: var(--cyan-2);
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: #c7d5df;
  line-height: 1.45;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  text-align: center;
  font-weight: 900;
}

.feature-list .included::before {
  content: "✓";
  color: var(--cyan-2);
}

.feature-list .not-included {
  color: #718696;
}

.feature-list .not-included::before {
  content: "—";
  color: #5c7385;
}

.plan-action {
  width: 100%;
  min-width: 0;
  margin-top: auto;
}

.billing-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.note-card {
  padding: 24px 26px;
  border: 1px solid rgba(90, 210, 255, 0.14);
  border-radius: 20px;
  background: rgba(3, 10, 16, 0.58);
}

.note-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.2rem;
}

.note-card p {
  font-size: 0.96rem;
}

.pricing-footnote {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .visual-panel {
    min-height: auto;
    padding-block: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .plan-summary {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .header {
    padding-top: 22px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .brand {
    gap: 16px;
  }

  .brand-mark-wrap,
  .brand-mark {
    width: 76px;
    height: 76px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-domain {
    font-size: 0.78rem;
  }

  .content-panel,
  .visual-panel {
    border-radius: 24px;
  }

  .content-panel {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .actions {
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .nav-cta {
    width: 100%;
    min-width: 0;
  }

  .visual-badge {
    width: min(100%, 220px);
  }

  .pricing-page {
    padding: 36px 0 52px;
  }

  .pricing-hero {
    text-align: left;
  }

  .pricing-hero .meta {
    justify-content: flex-start;
  }

  .pricing-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .billing-notes {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 26px 22px;
  }
}
