:root {
  --bg: #faf7f4;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --text: #221812;
  --muted: #705f56;
  --brand: #b63b18;
  --brand-strong: #7f240f;
  --line: rgba(76, 45, 31, 0.16);
  --shadow: 0 20px 60px rgba(64, 35, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.hero {
  min-height: min(72vh, 720px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #180b05;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 8, 2, 0.9) 0%, rgba(20, 8, 2, 0.58) 42%, rgba(20, 8, 2, 0.18) 100%);
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: scale(1.01);
  width: 100%;
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.language-switch {
  display: inline-flex;
  gap: 8px;
}

.language-switch a {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.language-switch a.active {
  background: #fff;
  color: var(--brand-strong);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  padding: 130px clamp(18px, 4vw, 56px) clamp(34px, 6vw, 78px);
}

.eyebrow {
  color: #ffd0be;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  color: #fff;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
  max-width: 650px;
  margin: 18px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.button.primary {
  background: #ff5a1f;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.section-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 540px;
}

.app-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.app-card {
  display: grid;
  gap: 18px;
}

.app-card-header {
  align-items: center;
  display: flex;
  gap: 14px;
}

.app-icon {
  border-radius: 20px;
  height: 68px;
  width: 68px;
}

.app-card h3 {
  font-size: 26px;
  margin: 0 0 4px;
}

.badge {
  background: rgba(182, 59, 24, 0.11);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
}

.app-card p,
.note-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .button.secondary {
  background: #f4e7df;
  border-color: transparent;
  color: var(--brand-strong);
}

.card-actions .button.primary {
  box-shadow: none;
}

.note-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.note-card h2 {
  margin: 0;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto;
  padding: 24px 18px 34px;
  text-align: center;
  width: min(1120px, calc(100% - 36px));
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    padding-top: 16px;
  }

  .brand span {
    display: none;
  }

  .section-header {
    align-items: start;
    display: grid;
  }

  .hero {
    min-height: 680px;
  }
}
