/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f3ec;
  --panel: #fffdf7;
  --ink: #102d24;
  --muted: #62746c;
  --dark: #0f3329;
  --green: #369876;
  --soft: #dff2e8;
  --line: rgba(16, 45, 36, 0.1);
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 243, 236, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nav nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-btn,
.primary-btn {
  background: var(--dark);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.tag {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

h1 {
  max-width: 780px;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 28px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.secondary-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
}

.mail-card {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  background:
    radial-gradient(
      circle at top right,
      rgba(54, 152, 118, 0.35),
      transparent 34%
    ),
    var(--dark);
  padding: 26px;
  box-shadow: 0 30px 90px rgba(15, 51, 41, 0.28);
  overflow: hidden;
}

.mail-top {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}

.mail-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.inbox-item {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 22px;
  border-radius: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inbox-item.active {
  background: rgba(255, 255, 255, 0.16);
}

.inbox-item strong {
  display: block;
  margin-bottom: 8px;
}

.inbox-item p {
  color: rgba(255, 255, 255, 0.62);
}

.shield {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 48px;
  display: grid;
  place-items: center;
  font-size: 96px;
  color: var(--dark);
  background: var(--soft);
  transform: rotate(-12deg);
}

.bento {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
}

.tile {
  min-height: 280px;
  border-radius: 32px;
  background: var(--panel);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 70px rgba(16, 45, 36, 0.07);
}

.tile.large {
  grid-row: span 2;
  min-height: 582px;
}

.tile.wide {
  grid-column: span 2;
}

.tile.dark {
  background:
    radial-gradient(
      circle at bottom right,
      rgba(54, 152, 118, 0.42),
      transparent 38%
    ),
    var(--dark);
  color: white;
}

.tile.accent {
  background: var(--soft);
}

.tile h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.tile:not(.large) h2 {
  font-size: 34px;
}

.tile p:last-child {
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

.tile.dark p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.security {
  margin: 48px;
  padding: 48px;
  border-radius: 38px;
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.security h2,
.plans h2 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.security-grid {
  display: grid;
  gap: 18px;
}

.security-grid div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.security-grid span {
  color: #9ed9bf;
  font-weight: 800;
}

.security-grid h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.security-grid p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.plans {
  padding: 48px;
}

.plan-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  border-radius: 32px;
  background: var(--panel);
  padding: 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 70px rgba(16, 45, 36, 0.07);
}

.plan.featured {
  background: var(--soft);
  outline: 2px solid rgba(54, 152, 118, 0.35);
}

.plan h3 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.plan p {
  color: var(--muted);
  line-height: 1.6;
}

.plan strong {
  margin: 34px 0;
  font-size: 54px;
  letter-spacing: -0.06em;
}

.plan strong span {
  font-size: 18px;
  color: var(--muted);
}

.plan ul {
  margin-top: auto;
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.plan li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 10px;
}

footer {
  margin: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav {
    padding: 0 20px;
  }

  .nav nav {
    display: none;
  }

  .hero,
  .security {
    grid-template-columns: 1fr;
    padding: 36px 20px;
  }

  .bento,
  .plans {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .tile.large,
  .tile.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  footer {
    margin: 20px;
    flex-direction: column;
    gap: 10px;
  }
}
