:root {
  --bg: #f3efe7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --line: rgba(32, 40, 54, 0.1);
  --text: #17202d;
  --muted: #5b6777;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --gold: #c28b2c;
  --shadow: 0 24px 80px rgba(23, 32, 45, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 139, 44, 0.18), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(15, 118, 110, 0.2), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, #edf1ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 32, 45, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 45, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(23, 32, 45, 0.08);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #0b3b58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0c4a6e);
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.25);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 32, 45, 0.08);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.wide {
  width: 100%;
}

.trust-row,
.privacy-points,
.stack-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row li,
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 32, 45, 0.08);
  font-size: 0.9rem;
}

.hero-panel,
.converter-card,
.privacy-card,
.roadmap-grid article {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.metric-card,
.stack-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.metric-card + .stack-card {
  margin-top: 16px;
}

.metric-label,
.meta-label,
.flow-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-card strong,
.flow-block strong {
  font-size: 1.3rem;
}

.metric-card p,
.stack-card li,
.card-head p,
.privacy-card p,
.roadmap-grid p,
.helper-text,
.notice p {
  color: var(--muted);
  line-height: 1.7;
}

.stack-card span {
  font-weight: 700;
}

.stack-card ul {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

.converter-section,
.roadmap-section {
  padding: 34px 0 24px;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}

.converter-card,
.privacy-card {
  border-radius: var(--radius-xl);
  padding: 26px;
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.card-head h3,
.privacy-card h3,
.roadmap-grid h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
}

.card-head p {
  max-width: 34ch;
  margin: 0;
}

.chip.soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(15, 118, 110, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(15, 118, 110, 0.06));
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(15, 118, 110, 0.12));
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
  font-size: 2rem;
  margin-bottom: 12px;
}

.dropzone strong {
  font-size: 1.08rem;
}

.dropzone small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.conversion-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 22px 0 18px;
}

.flow-block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  min-height: 96px;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--gold);
}

select {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(23, 32, 45, 0.12);
  background: #fff;
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.file-meta > div,
.notice {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.helper-text {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.privacy-points {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.privacy-points li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-grid article {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.roadmap-step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(194, 139, 44, 0.14);
  color: #855b18;
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero,
  .converter-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    border-radius: 28px;
    padding: 18px;
  }

  .topnav {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .conversion-flow,
  .file-meta {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }
}
