@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff; --bg2: #f6f5f8;
  --border: #e4e1e9;
  --text: #000000; --text2: #333336; --text3: #6b6b70;
  --lilac: #c9b8d9; --lilac-tint: #f1eef4; --lilac-ink: #5b4a6e;
  --nav-h: 56px;
}
html { overflow-x: hidden; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-weight: 400; overflow-x: hidden; }
a { color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px; text-decoration: none; }
.skip-link:focus { left: 8px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.nav-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.nav-logo img { height: 22px; width: auto; }
.nav-end { display: flex; align-items: center; gap: 8px; }

/* ── LANG SWITCH ── */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; flex-shrink: 0;
}
.lang-btn {
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text3); padding: 4px 10px; border-radius: 5px; text-decoration: none;
  transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-current="page"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.lang-menu { position: relative; flex-shrink: 0; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text3);
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  transition: color .15s;
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current:hover, .lang-menu[open] .lang-current { color: var(--text); }
.lang-list {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.lang-list a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; color: var(--text3); text-decoration: none;
}
.lang-list a:hover { background: var(--bg2); color: var(--text); }
.lang-list a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-h) + 112px) 40px 96px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--lilac-tint) 100%);
}
.hero-logo img { height: 44px; width: auto; margin-bottom: 48px; }
.h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -2px; line-height: 1.05; max-width: 900px; margin: 0 auto; }
.hero-divider { width: 48px; height: 3px; background: var(--lilac); border-radius: 2px; margin: 32px auto; }
.hero-line { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--text2); max-width: 640px; margin: 0 auto; }

/* ── PRODUCTS ── */
.products { max-width: 1080px; margin: 0 auto; padding: 96px 40px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 32px; text-align: center;
}
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 16px; padding: 40px;
  background: #fff;
}
.product-logo { height: 40px; display: flex; align-items: center; margin-bottom: 28px; }
.product-logo img { height: 32px; width: auto; }
.kialy-mark { height: 30px; width: 75px; color: var(--text); }
.product-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px;
  color: var(--lilac-ink); background: var(--lilac-tint); border: 1px solid var(--lilac);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 16px;
}
.product-lead { font-size: 20px; font-weight: 600; letter-spacing: -.3px; line-height: 1.35; margin-bottom: 12px; }
.product-text { font-size: 15px; line-height: 1.65; color: var(--text2); margin-bottom: 28px; }
.product-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--text);
  transition: background .15s, color .15s;
}
.product-link:hover { background: var(--text); color: #fff; }

/* ── CONTACT ── */
.contact { text-align: center; padding: 0 40px 112px; }
.contact h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.8px; margin-bottom: 12px; }
.contact a { font-size: 18px; color: var(--lilac-ink); text-underline-offset: 4px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.6;
  padding: 28px 40px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
}
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }

/* ── LEGAL PAGES ── */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 64px) 40px 96px; color: var(--text2); font-size: 15px; line-height: 1.7; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; color: var(--text); margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--text3); margin-bottom: 40px; }
.legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -.2px; color: var(--text); margin: 40px 0 12px; }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lilac-ink); }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--border); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.55; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 120px; }
.legal th { background: var(--bg2); color: var(--text); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }

.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 16px; }
.not-found img { height: 36px; width: auto; margin-bottom: 12px; }
.not-found h1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.not-found p { color: var(--text3); }
.not-found a { color: var(--lilac-ink); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .hero { padding: calc(var(--nav-h) + 64px) 16px 64px; }
  .hero-logo img { height: 34px; margin-bottom: 36px; }
  .products { padding: 64px 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 28px 24px; }
  .contact { padding: 0 16px 80px; }
  .site-footer { padding: 24px 16px; }
  .legal { padding: calc(var(--nav-h) + 40px) 16px 72px; }
}
