/* ============================================================
   KLIENTO — Design System
   Monochrome · Minimal · Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Tokens ------------------------------------------------- */
:root {
  --black:       #0D0D0D;
  --white:       #FFFFFF;
  --gray-900:    #111827;
  --gray-700:    #374151;
  --gray-500:    #6B7280;
  --gray-300:    #D1D5DB;
  --gray-200:    #E5E7EB;
  --gray-100:    #F3F4F6;
  --gray-50:     #F9FAFB;

  --font:        'Inter', system-ui, -apple-system, sans-serif;

  --max:         1160px;
  --nav-h:       72px;
  --radius:      10px;
  --radius-lg:   18px;

  --ease:        cubic-bezier(.4,0,.2,1);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }
.section--lg { padding: 9rem 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--muted { background: var(--gray-50); }

/* --- Typography --------------------------------------------- */
.display {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
}
h1, .h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}
h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}
h3, .h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.body-lg {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--gray-500);
}
.prose {
  max-width: 64ch;
}
.prose p, .prose li { margin-bottom: 1rem; color: var(--gray-700); line-height: 1.7; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.4rem; }
.prose h3 { margin: 2rem 0 0.75rem; font-size: 1.1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--black);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* --- Navigation --------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--gray-200); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--black); }
.nav__cta { margin-left: 0.5rem; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

/* --- Hero --------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--gray-100);
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}
.hero__headline { margin-bottom: 1.5rem; }
.hero__sub {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Divider ------------------------------------------------ */
.divider {
  height: 1px;
  background: var(--gray-200);
  width: 100%;
}

/* --- Stat strip --------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--gray-200);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.stat__label { font-size: 0.875rem; color: var(--gray-500); }

/* --- Product Cards ------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-card:hover {
  border-color: var(--gray-900);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}
.product-card__icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.product-card__name { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.product-card__desc { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; }
.product-card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}
.product-card:hover .product-card__link { gap: 0.625rem; }

/* --- Feature Row (products page) ---------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.feature-row:last-child { border-bottom: none; }
.feature-row--reverse .feature-visual { order: -1; }
.feature-visual {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.feature-icon-lg {
  font-size: 5rem;
  line-height: 1;
}
.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.feature-body { margin: 1rem 0 1.5rem; font-size: 1rem; color: var(--gray-500); line-height: 1.7; }
.feature-list { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.feature-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: var(--black);
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.5L4 7.5L8 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Pricing note ------------------------------------------- */
.pricing-note {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.pricing-note h2 { margin-bottom: 0.75rem; }
.pricing-note p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* --- CTA Section -------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--black);
  border-radius: var(--radius-lg);
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* --- Mission strip ------------------------------------------ */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.mission__kicker { color: var(--gray-500); margin-bottom: 1.5rem; line-height: 1.7; }
.mission__quote {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding-left: 1.5rem;
  border-left: 3px solid var(--black);
}

/* --- Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: var(--black); }
.contact-item__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.contact-item__value { font-size: 1.125rem; font-weight: 600; color: var(--black); }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-note { font-size: 0.875rem; color: var(--gray-500); margin-top: 1.5rem; line-height: 1.6; }

/* --- Page hero (inner pages) -------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero .label { margin-bottom: 0.75rem; }

/* --- Legal page -------------------------------------------- */
.legal-body {
  padding: 4rem 0 6rem;
}
.legal-body .prose {
  max-width: 72ch;
}
.legal-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

/* --- Footer ------------------------------------------------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer__logo img { height: 28px; width: auto; filter: invert(1); }
.footer__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer__tagline { font-size: 0.875rem; max-width: 28ch; line-height: 1.6; }
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
}
.footer__legal-links { display: flex; gap: 1.5rem; }
.footer__legal-links a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__legal-links a:hover { color: var(--white); }

/* --- Utilities ---------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-row--reverse .feature-visual { order: 0; }
  .mission { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: 1fr; border-radius: var(--radius); }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 4rem 0; }
  .section--lg { padding: 5rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-section { padding: 3.5rem 1.5rem; border-radius: var(--radius); }
  .hero { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 4rem; }
}
