:root {
  --bg-a: #f6f4ef;
  --bg-b: #f1efe9;
  --bg-c: #ece9e2;

  --text-primary: #0f1414;
  --text-secondary: #6f665c;
  --text-muted: #958b7f;

  --glass-bg: rgba(255, 252, 246, 0.62);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 24px 64px rgba(74, 58, 37, 0.1);

  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-72: 72px;

  --radius-nav: 26px;
  --radius-card: 30px;
  --radius-button: 20px;

  --font-main: "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.62;
  background: linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 52%, var(--bg-c) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 25, 25, 0.09) 0.55px, rgba(0, 0, 0, 0) 0.55px);
  background-size: 3px 3px;
  opacity: 0.02;
  z-index: 0;
}

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-24) 0 var(--space-72);
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.card {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(44px) saturate(150%);
  -webkit-backdrop-filter: blur(44px) saturate(150%);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}

.topbar::before,
.hero::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0));
  opacity: 0.68;
}

.topbar::after,
.hero::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -18px 40px rgba(233, 216, 180, 0.08);
}

.topbar > *,
.hero > *,
.card > * {
  position: relative;
  z-index: 1;
}

.topbar {
  z-index: 520;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  border-radius: var(--radius-nav);
  padding: var(--space-16);
  margin-bottom: var(--space-32);
}

.topbar strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  width: 100%;
}

.topbar a,
.lang-toggle,
.lang-menu a,
.email-link {
  border-radius: var(--radius-button);
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 253, 248, 0.8);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar a:hover,
.lang-toggle:hover,
.lang-menu a:hover,
.email-link:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.04);
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.9);
}

.lang-picker {
  position: relative;
  z-index: 620;
}

.lang-toggle {
  font-family: inherit;
  cursor: pointer;
}

.lang-toggle span {
  font-weight: 700;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2500;
  min-width: 210px;
  padding: 8px;
  display: grid;
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 0 24px 46px rgba(74, 58, 37, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 180ms ease, transform 200ms ease, visibility 180ms ease;
}

.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-menu a {
  display: block;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
}

.hero {
  padding: var(--space-48) var(--space-24);
  margin-bottom: var(--space-48);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-name {
  margin: 0;
  font-size: clamp(36px, 10vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.62);
}

.lead {
  font-size: clamp(18px, 3.4vw, 24px);
  color: var(--text-secondary);
  margin: var(--space-16) 0 0;
  font-weight: 500;
  max-width: 860px;
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: var(--space-16);
}

.grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.card {
  padding: var(--space-24);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.card p,
.card ul {
  margin: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.card ul {
  padding-left: 20px;
}

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

.card-wide {
  grid-column: span 6;
}

.email-link {
  display: inline-flex;
  margin-top: var(--space-16);
}

footer {
  margin-top: var(--space-48);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 140, 66, 0.55);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .wrap {
    width: min(1240px, calc(100% - 64px));
    padding-top: var(--space-32);
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-16) var(--space-24);
  }

  .topbar-right {
    width: auto;
  }

  .hero {
    padding: var(--space-72) var(--space-48);
  }
}

@media (max-width: 900px) {
  .card-wide {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1200px, calc(100% - 24px));
    padding-bottom: var(--space-48);
  }

  .hero {
    padding: var(--space-32) var(--space-24);
    margin-bottom: var(--space-32);
  }

  .grid {
    gap: var(--space-16);
  }

  .card {
    padding: var(--space-24);
  }
}
