/* ===================== Reset & base ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --ink-900:  #0f172a;
  --ink-700:  #334155;
  --ink-500:  #64748b;
  --ink-300:  #cbd5e1;
  --ink-100:  #f1f5f9;
  --white:    #ffffff;
  --radius:   16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --container: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3 { color: var(--ink-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--ink-500);
  max-width: 640px;
  font-size: 1.02rem;
}

.highlight { color: var(--blue-600); }

.ic {
  width: 16px; height: 16px;
  fill: none; stroke: var(--blue-600); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { background: var(--blue-700); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-300);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn-light {
  background: var(--white);
  color: var(--blue-700);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-900);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name em { color: var(--blue-600); font-style: normal; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.nav a:hover { color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { padding: 80px 0 60px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-desc { margin: 20px 0 32px; font-size: 1.05rem; color: var(--ink-500); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
}
.hero-highlights li { display: flex; align-items: center; gap: 8px; }

.hero-visual {
  position: relative;
  height: 420px;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 35%, var(--blue-100), transparent 60%);
  z-index: 0;
  border-radius: 40px;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  padding: 22px;
  z-index: 1;
}

.card-1 { top: 10px; left: 10px; width: 300px; }
.card-2 {
  bottom: 10px; right: 0; width: 220px;
  display: flex; flex-direction: column; gap: 14px;
}

.dot-row { display: flex; gap: 6px; margin-bottom: 16px; }
.dot-row span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); }
.dot-row span:nth-child(1) { background: #f87171; }
.dot-row span:nth-child(2) { background: #fbbf24; }
.dot-row span:nth-child(3) { background: #34d399; }

.code-line { height: 10px; border-radius: 6px; background: var(--ink-100); margin-bottom: 10px; }
.w-70 { width: 70%; } .w-40 { width: 40%; background: var(--blue-100); }
.w-90 { width: 90%; } .w-60 { width: 60%; }

.code-chip {
  margin-top: 14px;
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}
.mini-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-100));
  border-radius: 6px 6px 0 0;
}
.card-2 p { font-size: 0.85rem; font-weight: 600; color: var(--ink-900); }

/* ===================== Strip ===================== */
.strip { background: var(--blue-600); padding: 28px 0; }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { color: var(--white); font-size: 1.02rem; }
.strip-item span { color: var(--blue-100); font-size: 0.85rem; }

/* ===================== Sections ===================== */
.section { padding: 96px 0; }
.section-alt { background: var(--ink-100); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .section-desc { margin: 0 auto; }

/* ===================== About ===================== */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-visual { position: relative; height: 360px; }
.about-illustration { width: 100%; height: 100%; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.about-point h3 { margin-bottom: 8px; font-size: 1.05rem; }
.about-point p { color: var(--ink-500); font-size: 0.94rem; }

/* ===================== Services ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--blue-600); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-500); font-size: 0.94rem; }

/* ===================== Process ===================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
}
.step-no {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-100);
  margin-bottom: 14px;
}
.process-step h3 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { color: var(--ink-500); font-size: 0.9rem; }

/* ===================== Tech badges ===================== */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tech-badges span {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
}

/* ===================== CTA banner ===================== */
.cta-banner { background: var(--blue-600); padding: 64px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 8px; }
.cta-inner p { color: var(--blue-100); }

/* ===================== Contact ===================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  fill: none; stroke: var(--blue-600); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-list strong { display: block; color: var(--ink-900); font-size: 0.92rem; }
.contact-list span { color: var(--ink-500); font-size: 0.92rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-300);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-group textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 0.88rem; color: var(--blue-700); text-align: center; min-height: 1em; }

/* ===================== Footer ===================== */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-500); max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--ink-300); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; margin-top: 20px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 260px; order: 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
}
