/* ===== Commonark — landing styles =====
   Palette derived from the logo: warm taupe + cream. */

:root {
  --taupe-900: #2b2621;
  --taupe-800: #3a332c;
  --taupe-700: #524739;
  --taupe-600: #6f5f4c;
  --taupe-500: #7c6d5b;   /* logo circle */
  --taupe-400: #9a8b76;
  --taupe-300: #c3b6a1;
  --cream-100: #faf7f0;
  --cream-200: #f2ece0;   /* logo letter */
  --cream-300: #e7dcc9;
  --line: #e3d9c8;
  --accent: #a8794a;      /* warm amber for CTAs */
  --accent-dark: #8c6238;

  --text: #2b2621;
  --text-soft: #6b6055;
  --bg: #faf7f0;
  --bg-alt: #f2ece0;
  --white: #fffdf8;

  --shadow-sm: 0 1px 2px rgba(43, 38, 33, .06), 0 2px 8px rgba(43, 38, 33, .05);
  --shadow-md: 0 6px 24px rgba(43, 38, 33, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream-100);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--taupe-700);
  border-color: var(--taupe-300);
}
.btn-ghost:hover { background: var(--white); border-color: var(--taupe-400); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--taupe-800);
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--taupe-800); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button.active { background: var(--taupe-600); color: var(--cream-100); }
.lang-switch button:not(.active):hover { background: var(--cream-200); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--cream-300), transparent 70%),
    var(--bg);
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 640px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 121, 74, .18), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--taupe-900);
  margin: 0 0 20px;
}
.hero-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  color: var(--taupe-700);
  line-height: 1;
}
.stat-unit { font-size: 22px; }
.stat-label { font-size: 14px; color: var(--text-soft); margin-top: 8px; max-width: 180px; text-align: center; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--taupe-900);
  margin: 0 0 16px;
}
.section-sub { font-size: 17px; color: var(--text-soft); margin: 0; }

/* ===== Grids ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Cards (modules) ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--taupe-300); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--cream-200);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--taupe-800); }
.card p { margin: 0; font-size: 15px; color: var(--text-soft); }
.card-muted { background: transparent; box-shadow: none; border-style: dashed; }
.card-muted .card-icon { background: var(--cream-300); }

/* ===== Platforms ===== */
.platform {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.platform-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--cream-200);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.platform h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0 0 12px; color: var(--taupe-800); }
.platform p { margin: 0; font-size: 15px; color: var(--text-soft); }

/* ===== Steps ===== */
.steps { display: flex; align-items: stretch; gap: 12px; justify-content: center; }
.step {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream-100);
  background: var(--taupe-600);
  border-radius: 50%;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--taupe-800); }
.step p { margin: 0; font-size: 15px; color: var(--text-soft); }
.step-arrow { display: flex; align-items: center; font-size: 28px; color: var(--taupe-300); }

/* ===== Feature list (security) ===== */
.feature-list { gap: 18px 40px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-dot {
  flex: none;
  width: 12px; height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 121, 74, .15);
}
.feature strong { display: block; font-size: 16px; color: var(--taupe-800); margin-bottom: 3px; }
.feature span { font-size: 15px; color: var(--text-soft); }

/* ===== CTA panel ===== */
.cta-panel {
  text-align: center;
  background: linear-gradient(135deg, var(--taupe-700), var(--taupe-500));
  color: var(--cream-100);
  border-radius: 24px;
  padding: 64px 32px;
  box-shadow: var(--shadow-md);
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 14px;
}
.cta-panel p { font-size: 18px; color: var(--cream-300); max-width: 560px; margin: 0 auto 30px; }
.cta-panel .btn-primary { background: var(--cream-100); color: var(--taupe-800); }
.cta-panel .btn-primary:hover { background: var(--white); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-tagline { margin: 2px 0 0; font-size: 14px; color: var(--text-soft); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-contact a { font-weight: 600; color: var(--accent-dark); }
.footer-copy { font-size: 14px; color: var(--text-soft); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); justify-content: center; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .hero-stats { gap: 32px; }
  .header-actions .btn { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}
