:root {
  --bg: #eef1f7;
  --bg-alt: #e1e6ef;
  --card: #f8fafc;
  --card-hover: #eef2f8;
  --border: #b8c2d4;
  --text: #080c16;
  --muted: #3a4255;
  --shadow: 0 1px 2px rgba(8, 12, 22, 0.06), 0 4px 16px rgba(8, 12, 22, 0.05);
  --shadow-hover: 0 6px 24px rgba(8, 12, 22, 0.12);
  --accent: #1e3a8a;
  --accent-2: #172554;
  --grad: linear-gradient(120deg, #1e3a8a 0%, #1e40af 60%, #2a52be 100%);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.12);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.brand-name { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 10px;
  background: var(--card);
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(30, 58, 138, 0.18), transparent 70%),
              radial-gradient(40% 40% at 80% 10%, rgba(30, 58, 138, 0.12), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.1rem; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* SECTIONS */
.section { padding: 84px 0; scroll-margin-top: 80px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 44px; max-width: 620px; }

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

/* SERVICE CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--card-hover); box-shadow: var(--shadow-hover); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.12);
  border: 1px solid rgba(30, 58, 138, 0.22);
  border-radius: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* PROJECT CARDS */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover { border-color: var(--accent-2); transform: translateY(-3px); background: var(--card-hover); box-shadow: var(--shadow-hover); }
.project-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.project-head h3 { margin: 0; font-size: 1.35rem; }
.project-tagline { margin: 0 0 12px; font-weight: 500; color: var(--text); }
.project-desc { margin: 0 0 18px; color: var(--muted); font-size: 0.96rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.1);
  border: 1px solid rgba(30, 58, 138, 0.22);
  padding: 3px 9px;
  border-radius: 7px;
}
.project-links { display: flex; flex-wrap: wrap; gap: 16px; }
.project-link { font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.project-link:hover { color: var(--text); text-decoration: none; }
.project-link-primary { color: var(--accent); }

.work-footer { margin-top: 44px; text-align: center; }

/* PROCESS STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
}
.step h3 { margin: 12px 0 8px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.about-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.about-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.about-list strong { font-size: 1.02rem; margin-bottom: 3px; }
.about-list span { color: var(--muted); font-size: 0.94rem; }

/* AI */
.ai { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.ai .eyebrow { margin-bottom: 12px; }
.ai-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.ai-text strong { color: var(--text); }
.ai-badge { display: inline-block; margin-top: 12px; }
.ai-badge:hover { text-decoration: none; }
.ai-badge img { max-width: 190px; height: auto; display: block; }
.ai-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ai-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.ai-list strong { font-size: 1.02rem; margin-bottom: 3px; }
.ai-list span { color: var(--muted); font-size: 0.94rem; }

/* CONTACT */
.contact { text-align: center; }
.contact .section-sub { margin-left: auto; margin-right: auto; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 32px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.contact-card > p { color: var(--muted); margin: 0 0 26px; font-size: 1.05rem; }
.form-embed {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.form-embed iframe { display: block; border: 0; width: 100%; }
.contact-alt { font-size: 0.95rem; margin: 24px 0 0 !important; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 480px; visibility: visible; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-links a:first-child { border-top: none; }
  .nav-cta { border-radius: 0; text-align: center; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .ai { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 60px 0; }
  .hero-stats { gap: 24px; }
}
