/* ============================================================
   miKind — Design System
   Font: Inter (Google Fonts)
   Style: Modern, minimal, generous whitespace, thin base weight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #5f6fff;
  --primary-dark:   #4a5ae8;
  --primary-light:  #eef0ff;
  --primary-mid:    #c7cbff;
  --text:           #111827;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --bg:             #f8f9fc;
  --white:          #ffffff;
  --border:         #e5e7eb;
  --border-light:   #f3f4f6;
  --footer-bg:      #0f0f1a;
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-pill:    100px;
  --shadow-xs:      0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md:      0 4px 20px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.04);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:          1100px;
  --transition:     .18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
p { color: var(--text-muted); font-weight: 300; }
strong { font-weight: 600; color: var(--text); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(32px, 5.5vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(95,111,255,.35);
  color: var(--white);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); color: var(--primary); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.05em;
  text-decoration: none;
}
.nav__logo span { color: var(--primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--text); background: var(--border-light); }
.nav__links a.active { color: var(--primary); background: var(--primary-light); }
.nav__cta { margin-left: 12px; }
.nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
}
.nav__hamburger span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ── Page Hero (secondary pages) ───────────────────────────── */
.page-hero {
  background: var(--white);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 15% 60%, rgba(95,111,255,.03) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(95,111,255,.025) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── Section spacing ────────────────────────────────────────── */
.section { padding: 88px 0; background: var(--white); }
.section--sm { padding: 56px 0; background: var(--white); }
.section--alt {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section--bordered {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--flat { box-shadow: none; }
.card--flat:hover { box-shadow: var(--shadow-sm); transform: none; }

/* ── Form elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95,111,255,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-mid);
}
.badge::before { content: '●'; font-size: 6px; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 20px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 26px; height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  transition: all .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-mid);
}
.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a { font-weight: 400; }

/* ── Feature list ───────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%235f6fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Stat blocks ────────────────────────────────────────────── */
.stat { text-align: center; }
.stat__number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label { font-size: 14px; font-weight: 300; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.5);
  padding: 64px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}
.footer__brand-name span { color: var(--primary); }
.footer__tagline { font-size: 14px; font-weight: 300; line-height: 1.7; margin-bottom: 24px; max-width: 260px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--transition); font-size: 13px; }
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── Policy / legal pages ───────────────────────────────────── */
.policy-content { max-width: 860px; margin: 0 auto; padding: 64px 28px 80px; }
.policy-content h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; letter-spacing: -0.02em; }
.policy-content h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.policy-content p, .policy-content li { font-size: 15px; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.policy-content ul, .policy-content ol { padding-left: 20px; list-style: disc; }
.policy-content ul li, .policy-content ol li { margin-bottom: 6px; }
.policy-meta { font-size: 13px; color: var(--text-light); font-weight: 300; margin-top: 6px; margin-bottom: 32px; }
.policy-content a { font-weight: 400; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:first-child { grid-column: 1 / -1; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 10px 16px; border-radius: var(--radius-sm); }
  .nav__hamburger { display: flex; }
  .nav { position: relative; }
  .nav__cta { display: none; }
  .section { padding: 56px 0; }
  .section--sm { padding: 40px 0; }
  .page-hero { padding: 52px 0 40px; }
  /* Responsive grid helpers used across pages */
  .resp-2col { grid-template-columns: 1fr !important; }
  .resp-3col { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .policy-content { padding: 40px 20px 60px; }
  h1 { letter-spacing: -0.025em; }
  .resp-3col { grid-template-columns: 1fr !important; }
  .section-title { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
}
