:root {
  --ink: #18201f;
  --muted: #5d6866;
  --line: #d8dfdc;
  --paper: #f6f7f3;
  --panel: #ffffff;
  --teal: #0f6a5b;
  --teal-dark: #0a443b;
  --gold: #b5862d;
  --berry: #6f3652;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 243, 0.9);
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 86vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 7vw, 88px) 84px;
  overflow: hidden;
  background: #101817;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 20, 19, 0.92) 0%, rgba(11, 20, 19, 0.72) 42%, rgba(11, 20, 19, 0.12) 100%),
    linear-gradient(0deg, rgba(16, 24, 23, 0.58) 0%, rgba(16, 24, 23, 0) 45%);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(0.96);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 720px;
  color: #f8fbf8;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lede {
  max-width: 590px;
  margin-bottom: 34px;
  color: rgba(248, 251, 248, 0.84);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 720;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button.primary {
  background: var(--gold);
  color: #14110a;
}

.button.secondary {
  border: 1px solid rgba(248, 251, 248, 0.34);
  color: #fff;
}

.button.light {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(24, 32, 31, 0.05);
}

.button:hover,
.contact-link:hover {
  transform: translateY(-1px);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-band div {
  min-height: 104px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: #fff;
}

.status-band strong,
.status-band span {
  display: block;
}

.status-band strong {
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-band span {
  font-size: 18px;
  font-weight: 740;
}

.section {
  padding: 82px clamp(20px, 7vw, 88px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--panel);
}

.feature-grid h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.inbox-section {
  background: #fff;
}

.inbox-app {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.compose-panel,
.mailbox-box,
.message-detail {
  border: 1px solid rgba(216, 223, 220, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(24, 32, 31, 0.08);
}

.compose-panel {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 247, 0.94)),
    #fff;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.compose-panel label,
.api-key-field {
  display: grid;
  gap: 9px;
}

.compose-panel label span,
.current-address span,
.message-detail > span,
.address-box span,
.address-box small,
.mailbox-head span,
.mail-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compose-panel input,
.compose-panel select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(190, 201, 197, 0.9);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 22px rgba(24, 32, 31, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.compose-panel select {
  cursor: pointer;
}

.compose-panel input:focus,
.compose-panel select:focus {
  border-color: rgba(15, 106, 91, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 106, 91, 0.12), 0 10px 24px rgba(24, 32, 31, 0.07);
}

.current-address {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid rgba(15, 106, 91, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eef7f3);
}

.current-address span {
  grid-column: 1 / -1;
}

.current-address strong {
  display: block;
  color: var(--teal);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.icon-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(15, 106, 91, 0.2);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(15, 106, 91, 0.18);
}

.api-key-field {
  margin-bottom: 20px;
}

.inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inbox-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.mailbox-box {
  overflow: hidden;
}

.mailbox-head,
.mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
}

.mailbox-head {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.message-list {
  min-height: 310px;
  max-height: 520px;
  overflow: auto;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.message-item {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 20px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.message-item:hover {
  background: #eef7f3;
}

.message-item strong,
.message-item small,
.message-item span {
  overflow-wrap: anywhere;
}

.message-item small,
.message-item span {
  color: var(--muted);
}

.message-detail {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 26px;
  background: #fff;
  overflow: auto;
}

.message-detail h3 {
  margin: 10px 0 14px;
  font-size: 24px;
}

.message-detail p {
  margin: 10px 0 0;
  color: var(--muted);
}

.message-detail dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 18px;
}

.message-detail dt {
  color: var(--muted);
  font-weight: 740;
}

.message-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.message-detail pre {
  margin: 0;
  padding: 20px;
  border-radius: 18px;
  background: #f3f6f4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mail-row {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
}

.mail-row:last-child {
  border-bottom: 0;
}

.dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.dot.muted {
  background: var(--gold);
}

.mail-row strong,
.mail-row small {
  display: block;
}

.mail-row strong {
  margin-bottom: 4px;
}

.process-section {
  background: #10201e;
  color: #fff;
}

.process-section .section-heading p:not(.eyebrow),
.process-section .steps p {
  color: rgba(255, 255, 255, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--gold);
  color: #15110a;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.steps p {
  margin-bottom: 0;
  line-height: 1.7;
}

.domain-section {
  background: #eef2ef;
}

.domain-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.domain-list span {
  display: grid;
  place-items: center start;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.api-section {
  background: #fff;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.api-grid code {
  display: block;
  min-height: 58px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14211f;
  color: #f4f8f4;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.faq-section {
  background: #f7f8f5;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 760;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 72px clamp(20px, 7vw, 88px);
  background: var(--teal-dark);
  color: #fff;
}

.contact-section .eyebrow {
  color: #d9ae5d;
}

.contact-section h2 {
  font-size: clamp(29px, 4vw, 48px);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-weight: 740;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 7vw, 88px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 920px) {
  .status-band,
  .feature-grid,
  .steps,
  .api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-app {
    grid-template-columns: 1fr;
  }

  .contact-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 14px;
    font-size: 12px;
  }

  nav a {
    text-align: center;
  }

  .hero {
    min-height: 84vh;
    padding: 154px 20px 62px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(11, 20, 19, 0.92) 0%, rgba(11, 20, 19, 0.84) 100%);
  }

  h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.08;
  }

  .lede {
    max-width: 340px;
    font-size: 15px;
  }

  .status-band,
  .feature-grid,
  .domain-list,
  .steps,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 20px;
  }

  .address-box,
  .mailbox-head,
  .mail-row,
  .steps article {
    padding-left: 20px;
    padding-right: 20px;
  }

  .compose-panel,
  .message-detail {
    padding: 20px;
  }

  .field-grid,
  .current-address,
  .message-detail dl {
    grid-template-columns: 1fr;
  }

  .current-address strong {
    font-size: 22px;
  }

  .icon-button {
    justify-self: start;
  }
}
