/*
  ==========================================
  CK Enterprise — minimal light theme
  ==========================================
  - Uses CSS variables for easy theming
  - Lightweight responsive grid
  - Subtle depth via soft cards and tinted sections
*/

/* Theme tokens (edit these to quickly restyle) */
:root {
  --bg: #ffffff;
  --bg-tint: #f7f9fc;
  --text: #14151a;
  --muted: #68707d;
  --brand: #1f6feb;           /* Primary accent (subtle blue) */
  --brand-ink: #0f3f9e;       /* Darker shade for focus/hover */
  --border: #e6e9ef;
  --shadow: 0 8px 24px rgba(20, 21, 26, 0.06);
  --radius: 16px;
  --radius-lg: 20px;
  --maxw: 1120px;
}

/* CSS reset-ish: keep it simple & readable */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  scroll-behavior: smooth; /* native smooth scrolling */
}

/* Utility containers and layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section--tint {
  background: var(--bg-tint);
}
.section__head {
  margin-bottom: 28px;
}
.section__head h2 {
  margin: 0 0 8px 0;
}

/* Text styles */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 12px 0;
}
p { margin: 0 0 12px 0; }
.muted { color: var(--muted); }
.fineprint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-ghost:hover { background: rgba(31, 111, 235, 0.06); }
.btn-small { padding: 8px 12px; font-size: 0.95rem;}
.btn-block { display: block; width: 100%; text-align: center; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
  padding: 8px 6px;
  border-radius: 10px;
}
.main-nav a:hover { background: var(--bg-tint); }
.main-nav .btn { margin-left: 12px; }

/* Hero */
.hero {
  padding: 72px 0 48px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hero__content h1 { font-size: clamp(28px, 5vw, 44px); }
.hero__content p { font-size: 1.125rem; color: var(--muted); }
.hero__cta { margin-top: 16px; display: flex; gap: 12px; }
.hero__art {
  min-height: 180px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(31,111,235,0.15), transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(31,111,235,0.10), transparent 60%),
    #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Cards & lists */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--soft {
  background: var(--bg-tint);
  box-shadow: none;
}
.card--highlight {
  outline: 2px solid rgba(31,111,235,0.15);
}
.card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
}
.price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.list li:last-child { border-bottom: 0; }

/* Timeline (How it works) */
.timeline {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}
.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: -12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Badges (Tools) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Integration diagram */
.integration {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.integration__box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.integration__arrow {
  color: var(--muted);
  font-size: 1.5rem;
}

/* Form styles */
.form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}
.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.form-group label {
  font-weight: 600;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.12);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff;
}
.footer__inner {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}
.footer__brand { font-weight: 800; }
.footer__nav a {
  text-decoration: none;
  color: var(--text);
  margin: 0 10px;
}
.footer__nav a:hover { text-decoration: underline; }
.footer__fine {
  text-align: right;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive adjustments (mobile-first enhancement) */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .integration { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__fine { text-align: center; }
  .main-nav a { margin-left: 12px; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}
