:root {
  color-scheme: light dark;
  --bg: #f5fbff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #10243b;
  --muted: #5c6f82;
  --line: rgba(44, 101, 140, 0.16);
  --brand: #1378d1;
  --brand-strong: #075faa;
  --aqua: #39c6bd;
  --shadow: 0 22px 60px rgba(32, 91, 128, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(57, 198, 189, 0.19), transparent 31rem),
    radial-gradient(circle at 91% 12%, rgba(19, 120, 209, 0.17), transparent 30rem),
    var(--bg);
}

a { color: inherit; }

[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px 9px 12px 12px;
  background: linear-gradient(160deg, #8ee7e0, #1686de 75%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  transform: perspective(50px) rotateX(-5deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--brand); }

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30, 78, 110, 0.08);
}

.language-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
}

.landing-main,
.legal-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  min-height: 620px;
  padding: 84px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand-strong);
  background: var(--surface);
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #36a7df);
  box-shadow: 0 14px 28px rgba(19, 120, 209, 0.24);
}

.cup-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 48px;
  background: linear-gradient(150deg, rgba(255,255,255,.88), rgba(220,245,255,.56));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cup-scene::before,
.cup-scene::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(57, 198, 189, 0.13);
  filter: blur(2px);
}

.cup-scene::before { top: -100px; right: -80px; }
.cup-scene::after { bottom: -130px; left: -80px; background: rgba(19,120,209,.12); }

.cup-illustration {
  position: relative;
  width: 178px;
  height: 270px;
  border: 8px solid rgba(29, 100, 150, 0.55);
  border-top-width: 10px;
  border-radius: 26px 26px 54px 54px;
  background: linear-gradient(to top, rgba(55, 192, 220, .78) 0 61%, rgba(255,255,255,.44) 61% 100%);
  box-shadow: inset 16px 0 25px rgba(255,255,255,.35), 0 26px 36px rgba(20, 91, 133, 0.18);
  z-index: 1;
}

.cup-illustration::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -72px;
  width: 74px;
  height: 92px;
  border: 13px solid rgba(29, 100, 150, 0.52);
  border-left: 0;
  border-radius: 0 50px 50px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 84px;
}

.feature-card,
.trust-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(32, 91, 128, 0.08);
}

.feature-card h2,
.trust-card h2 { margin: 0 0 12px; font-size: 1.18rem; }

.feature-card p,
.trust-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.trust-card {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 28px;
  margin-bottom: 92px;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(140deg, rgba(13, 105, 175, .95), rgba(23, 141, 166, .9));
  color: #fff;
}

.trust-card p { color: rgba(255,255,255,.82); }

.legal-main { max-width: 880px; padding: 76px 0 96px; }

.legal-doc {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc-note {
  margin: 20px 0 38px;
  padding: 16px 18px;
  border-left: 4px solid var(--aqua);
  border-radius: 4px 14px 14px 4px;
  color: var(--muted);
  background: rgba(57, 198, 189, 0.09);
  line-height: 1.65;
}

.legal-doc section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-doc section:first-of-type { border-top: 0; }
.legal-doc h2 { margin: 0 0 12px; font-size: 1.25rem; }
.legal-doc p,
.legal-doc li { color: var(--muted); line-height: 1.78; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc a { color: var(--brand); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08131f;
    --surface: rgba(16, 34, 51, 0.84);
    --surface-strong: #0f2030;
    --ink: #eef8ff;
    --muted: #a8bdce;
    --line: rgba(156, 211, 241, 0.15);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }

  .cup-scene { background: linear-gradient(150deg, rgba(18,41,61,.96), rgba(10,28,43,.8)); }
}

@media (max-width: 780px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .language-switch { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; }
  .cup-scene { min-height: 360px; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-card { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
