:root {
  --background: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #eee8df;

  --text: #211b17;
  --muted: #746b63;

  --border: #e3ddd5;

  --accent: #7a4b2a;
  --accent-dark: #60391f;

  --shadow: 0 24px 60px rgba(45, 31, 21, 0.12);

  --radius: 20px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));

  margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(246, 247, 245, 0.9);
  border-bottom: 1px solid rgba(223, 227, 221, 0.7);

  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;

  margin-left: auto;
}

.main-nav a,
.footer-links a {
  color: var(--muted);

  font-size: 14px;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;

  color: var(--muted);

  font-size: 12px;
}

.language-button {
  border: 0;
  padding: 3px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;
}

.language-button.active {
  color: var(--text);
  font-weight: 700;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 100px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(400px, 0.9fr);

  align-items: center;
  gap: 80px;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;

  margin: 0;

  font-size: clamp(48px, 6vw, 76px);

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 580px;

  margin: 28px 0 0;

  color: var(--muted);

  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 22px;

  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: white;

  box-shadow: 0 10px 24px rgba(31, 111, 74, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);

  transform: translateY(-1px);

  box-shadow: 0 14px 28px rgba(31, 111, 74, 0.24);
}

.text-link {
  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  gap: 8px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 12px;
}

/* =========================
   APP PREVIEW
========================= */

.app-preview-wrap {
  position: relative;
}

.app-preview-wrap::before {
  content: "";

  position: absolute;

  inset: 10% -6% -8% 8%;

  background: rgba(31, 111, 74, 0.08);

  border-radius: 40px;

  filter: blur(10px);

  transform: rotate(2deg);
}

.app-preview {
  position: relative;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.8);

  border-radius: 18px;

  background: var(--surface);

  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 48px;

  padding: 0 16px;

  border-bottom: 1px solid var(--border);

  background: #fafbf9;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 12px;
  font-weight: 700;
}

.window-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--accent);
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #c9cec8;
}

.window-content {
  padding: 24px;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.preview-label {
  font-size: 16px;
  font-weight: 700;
}

.preview-count {
  color: var(--muted);

  font-size: 11px;
}

.folder-list {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.folder-row {
  display: grid;
  grid-template-columns:
    24px
    1fr
    auto;

  align-items: center;

  gap: 8px;

  min-height: 42px;

  padding: 0 12px;

  border: 1px solid var(--border);

  border-radius: 10px;

  font-size: 13px;
}

.folder-icon {
  font-size: 14px;
}

.folder-count {
  color: var(--muted);

  font-size: 11px;
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 7px;

  margin-top: 18px;

  color: var(--muted);

  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 700px;

  margin-bottom: 52px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading h2,
.structure-copy h2,
.privacy-card h2,
.final-cta h2 {
  margin: 0;

  font-size: clamp(32px, 4vw, 48px);

  line-height: 1.05;

  letter-spacing: -0.04em;
}

.section-heading p,
.structure-copy p,
.privacy-card p,
.final-cta p {
  margin: 20px 0 0;

  color: var(--muted);

  font-size: 17px;
}

/* =========================
   STEPS
========================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.step-card {
  position: relative;

  min-height: 270px;

  padding: 28px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);
}

.step-number {
  color: #a1a8a0;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin: 42px 0 20px;

  border-radius: 12px;

  background: var(--surface-soft);

  color: var(--accent);

  font-size: 18px;
  font-weight: 700;
}

.step-card h3 {
  margin: 0;

  font-size: 20px;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 10px 0 0;

  color: var(--muted);

  font-size: 14px;
}

/* =========================
   COPY STRUCTURE
========================= */

.structure-section {
  background: #ecefe9;
}

.structure-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(360px, 1fr);

  align-items: center;

  gap: 80px;
}

.structure-copy {
  max-width: 540px;
}

.feature-note {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 26px;

  color: var(--muted);

  font-size: 13px;
}

.feature-note-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  border-radius: 8px;

  background: var(--surface);

  color: var(--accent);

  font-weight: 700;
}

.structure-card {
  padding: 24px;

  border: 1px solid rgba(223, 227, 221, 0.9);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: 0 20px 50px rgba(24, 32, 25, 0.08);
}

.structure-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 18px;

  border-bottom: 1px solid var(--border);

  font-size: 14px;
  font-weight: 700;
}

.copy-label {
  color: var(--accent);

  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tree {
  padding-top: 20px;

  color: var(--muted);

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  font-size: 13px;

  line-height: 2;
}

.tree span {
  color: var(--text);
}

.tree-child {
  padding-left: 24px;
}

/* =========================
   PRIVACY
========================= */

.privacy-card {
  display: grid;

  grid-template-columns: 64px 1fr;

  gap: 28px;

  align-items: start;

  padding: 42px;

  border: 1px solid var(--border);

  border-radius: 28px;

  background: var(--surface);
}

.privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  border-radius: 16px;

  background: var(--surface-soft);

  color: var(--accent);

  font-size: 22px;
}

/* =========================
   FEATURES
========================= */

.features-section {
  padding-top: 80px;
  padding-bottom: 100px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.feature-pills span {
  padding: 9px 14px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: var(--surface);

  color: var(--muted);

  font-size: 13px;
}

/* =========================
   FINAL CTA
========================= */

.final-cta {
  padding: 100px 0;

  background: var(--text);

  color: white;

  text-align: center;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta .eyebrow {
  color: #8cc8a8;
}

.final-cta h2 {
  max-width: 650px;
}

.final-cta p {
  max-width: 520px;

  color: #aeb6ae;
}

.final-cta .button {
  margin-top: 30px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--text);
  color: white;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  min-height: 90px;
}

.footer-brand {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand span {
  color: #8d968e;

  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #aeb6ae;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-grid,
  .structure-grid {
    grid-template-columns: 1fr;

    gap: 48px;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    font-size: 17px;
  }

  .app-preview-wrap {
    max-width: 620px;

    width: 100%;

    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .structure-copy {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;

    gap: 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    flex-direction: column;

    width: 100%;

    gap: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    justify-content: center;

    flex-wrap: wrap;
  }

  .window-content {
    padding: 18px;
  }

  .section {
    padding: 76px 0;
  }

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

  .section-heading h2,
  .structure-copy h2,
  .privacy-card h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .structure-card {
    padding: 18px;
  }

  .structure-card-header {
    align-items: flex-start;

    gap: 12px;
  }

  .privacy-card {
    grid-template-columns: 1fr;

    padding: 28px;

    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;

    padding: 24px 0;
  }
}
