/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --ink: #0e1620;
  --ink-soft: #475569;
  --ink-mute: #7b8794;
  --brand: #2b8fd8;
  --brand-2: #7cc7f5;
  --brand-deep: #1f6fb0;
  --dark: #0e1620;
  --dark-2: #16212e;
  --line: #e4ecf3;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(20, 50, 80, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(20, 50, 80, 0.25);
  --maxw: 1140px;
  --grad: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--brand-2); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(31, 111, 176, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(31, 111, 176, 0.75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-dot { color: var(--brand); }
.brand-tag { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-mute); margin-top: 4px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.15s; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--brand); color: #fff; }

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--brand); }
.lang-btn.is-active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(124, 199, 245, 0.22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(43, 143, 216, 0.12), transparent 60%),
    var(--bg);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-mute); }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 130px; height: 130px;
  background: var(--grad);
  filter: blur(8px);
  opacity: 0.25;
  border-radius: 30px;
  z-index: -1;
}

/* ===== Trust strip ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust-inner { display: flex; align-items: center; gap: 26px; padding: 18px 24px; flex-wrap: wrap; }
.trust-inner > span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.trust ul { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; margin: 0; padding: 0; }
.trust li { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.card-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,199,245,0.18), rgba(43,143,216,0.12));
  color: var(--brand-deep);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card-feature { background: var(--dark); border-color: var(--dark); color: #fff; }
.card-feature h3 { color: #fff; }
.card-feature p { color: #aebccb; }
.card-feature .card-icon { background: rgba(124,199,245,0.18); color: var(--brand-2); }

/* ===== Approach ===== */
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.approach-visual img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 20px; }
.step-no {
  flex: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.about-visual img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #fff; font-size: 0.7rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
}

/* ===== Tech ===== */
.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tech-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: 0.18s;
}
.tech-grid span:hover { color: var(--brand-deep); border-color: var(--brand-2); transform: translateY(-2px); }

/* ===== Contact ===== */
.contact { background: var(--dark); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: #aebccb; font-size: 1.1rem; max-width: 40ch; margin-bottom: 28px; }
.contact-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 22px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.contact-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-2); font-weight: 700; padding-top: 2px; }
.contact-card dd { margin: 0; color: #d6dee7; }
.contact-card dd a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer ===== */
.site-footer { background: #0a1119; color: #93a1b0; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-footer .brand-name { color: #fff; font-size: 1.15rem; }
.footer-meta { font-size: 0.88rem; margin: 0; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 0.9rem; transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .approach-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .approach-visual, .about-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-sm);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .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); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .contact-card dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
