:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #131a26;
  --text-soft: #5b6a83;
  --accent: #4f6df5;
  --accent-2: #7c5bf0;
  --accent-soft: #edf0fe;
  --border: #e5e9f2;
  --card-bg: #ffffff;
  --radius: 18px;
  --glow-opacity: 0.5;
  --header-bg: rgba(255, 255, 255, 0.75);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a;
    --bg-alt: #0e1424;
    --text: #eef2fa;
    --text-soft: #93a1bd;
    --accent: #7c93ff;
    --accent-2: #a184ff;
    --accent-soft: #1a2340;
    --border: #1e2a45;
    --card-bg: #101728;
    --header-bg: rgba(10, 14, 26, 0.7);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glows */
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: var(--glow-opacity); pointer-events: none;
}
.bg-glow-1 {
  width: 560px; height: 560px; top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(79, 109, 245, 0.28), transparent 70%);
}
.bg-glow-2 {
  width: 480px; height: 480px; top: 420px; left: -200px;
  background: radial-gradient(circle, rgba(124, 91, 240, 0.18), transparent 70%);
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 680px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; color: var(--accent); border-radius: 8px; }
.nav { display: flex; gap: 30px; }
.nav a {
  color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 130px 0 100px; position: relative; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.06;
  letter-spacing: -0.035em; font-weight: 800;
}
.grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede {
  margin: 26px 0 40px; font-size: 19px; line-height: 1.65;
  color: var(--text-soft); max-width: 580px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 22px rgba(79, 109, 245, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79, 109, 245, 0.45); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--border); background: var(--card-bg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* sections */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.025em; font-weight: 750; }
.body-text { color: var(--text-soft); margin-bottom: 16px; font-size: 17px; line-height: 1.7; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.card {
  position: relative; display: block; padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 18px 44px rgba(23, 35, 80, 0.14);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon-x { background: linear-gradient(135deg, #e3f2fd, #d1e7ff); color: #1976d2; }
.card-icon-t { background: linear-gradient(135deg, #f3e9fd, #e9ddff); color: #7c4dff; }
@media (prefers-color-scheme: dark) {
  .card-icon-x { background: linear-gradient(135deg, #10263e, #14324f); color: #5eb2ff; }
  .card-icon-t { background: linear-gradient(135deg, #251539, #2e1b47); color: #b28fff; }
}
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.card .tagline { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.card-desc { color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px; color: var(--accent); font-weight: 600; font-size: 14.5px;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.principle-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.principle-icon svg { width: 22px; height: 22px; }
.principle h4 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.principle p { color: var(--text-soft); font-size: 14.5px; line-height: 1.65; }

/* contact */
.contact-inner .btn { margin-top: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 15px;
}
.brand-mark-sm { width: 24px; height: 24px; color: var(--accent); border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-soft); font-size: 13.5px; }

@media (max-width: 600px) {
  .hero { padding: 84px 0 64px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13.5px; }
  .section { padding: 60px 0; }
}
