:root {
  --bg: #efe7d6;
  --paper: rgba(255, 250, 241, 0.82);
  --ink: #22302c;
  --muted: #5f6d65;
  --accent: #9e4f19;
  --accent-soft: #d89354;
  --line: rgba(84, 54, 28, 0.14);
  --shadow: 0 24px 80px rgba(45, 30, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(221, 200, 150, 0.32), transparent 30%),
    radial-gradient(circle at bottom right, rgba(173, 104, 42, 0.18), transparent 24%),
    linear-gradient(180deg, #f6f0e3 0%, var(--bg) 100%);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lang-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #fff8f0;
}

.hero,
.grid,
.panel,
.screenshot-placeholder,
.contact-panel {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.hero-copy,
.hero-card,
.panel,
.screenshot-placeholder {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 34px;
  padding: 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 span,
h2 span,
h3 span {
  display: block;
  margin-top: 8px;
  font-size: 0.54em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--muted);
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 55ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff8f0;
}

.button-secondary {
  border: 1px solid rgba(158, 79, 25, 0.26);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.8);
}

.hero-card {
  border-radius: 30px;
  padding: 28px;
}

.card-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(158, 79, 25, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.hero-card p,
.panel p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  padding-left: 18px;
  margin: 20px 0 0;
  color: var(--ink);
}

.feature-list li + li {
  margin-top: 10px;
}

.section {
  margin-top: 54px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.03;
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  border-radius: 24px;
  padding: 24px;
}

.panel h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.screenshot-placeholder {
  min-height: 320px;
  border-radius: 28px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(222, 191, 145, 0.16), rgba(158, 79, 25, 0.1)),
    var(--paper);
}

.project-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(84, 54, 28, 0.12);
  box-shadow: 0 18px 40px rgba(45, 30, 14, 0.14);
}

.screenshot-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.contact-panel a {
  color: var(--accent);
}

@media (max-width: 920px) {
  .hero,
  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card {
    padding: 28px;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .section {
    margin-top: 36px;
  }
}
