/* ===== Design tokens ===== */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --text: #16202e;
  --text-muted: #5a6779;
  --border: #dfe4ec;
  --accent: #0d9488;     /* teal */
  --accent-2: #4f46e5;   /* indigo */
  --accent-soft: rgba(13, 148, 136, 0.10);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(22, 32, 46, 0.05), 0 8px 24px rgba(22, 32, 46, 0.06);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1118;
    --bg-alt: #101723;
    --surface: #161e2b;
    --text: #e8edf4;
    --text-muted: #94a1b4;
    --border: #243042;
    --accent: #2dd4bf;
    --accent-2: #818cf8;
    --accent-soft: rgba(45, 212, 191, 0.10);
    --on-accent: #06211d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

a { color: var(--accent-2); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { width: 30px; height: 30px; display: block; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(600px 300px at 15% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(600px 300px at 90% 20%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  margin-bottom: 18px;
}

.lead {
  max-width: 640px;
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-lg { padding: 14px 26px; font-size: 17px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tags li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ===== Sections ===== */
.section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 750;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ===== Cards (services) ===== */
.grid { display: grid; gap: 16px; }

.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 17px; margin: 14px 0 6px; }

.card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Process ===== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process li {
  position: relative;
  padding-top: 6px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.process h3 { font-size: 16px; margin: 0 0 4px; }

.process p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== Products ===== */
.products { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.product:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.product-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.product h3 { font-size: 18px; margin: 0 0 4px; }

.product p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 8px; }

.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ===== Why ===== */
.why { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }

.why-item h3 {
  font-size: 17px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.why-item p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ===== Contact ===== */
.contact-card {
  text-align: center;
  background:
    radial-gradient(400px 200px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 24px;
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: clamp(26px, 4vw, 34px); }

.contact-card p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 26px;
}

.contact-alt {
  margin: 18px auto 0 !important;
  font-size: 15px;
}

.contact-alt a {
  color: var(--accent);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner p { margin: 0; }

.footer a { color: var(--text-muted); }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .hero { padding: 64px 0 52px; }
  .section { padding: 56px 0; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product { transition: none; }
}
