:root {
  /* Brand palette */
  --primary: #2F92F1;      /* blue */
  --secondary: #423EDE;    /* indigo */
  --purple: #BE7CE8;       /* purple accent */
  --purple-deep: #8b47cf;

  /* Ink & neutrals */
  --ink: #1b1740;
  --muted: #5d5878;
  --line: #e8e4f3;
  --surface: #ffffff;
  --surface-2: #f7f4fd;

  /* Gradients */
  --grad: linear-gradient(120deg, #2F92F1 0%, #423EDE 55%, #BE7CE8 100%);
  --grad-deep: linear-gradient(120deg, #12467F 0%, #2E2A9E 50%, #6A2A9E 100%);

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(27, 23, 64, 0.06);
  --shadow-md: 0 16px 38px rgba(27, 23, 64, 0.10);
  --shadow-lg: 0 30px 70px rgba(66, 62, 222, 0.16);

  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1140px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(190, 124, 232, 0.16), transparent 60%),
    radial-gradient(1000px 620px at -10% 6%, rgba(47, 146, 241, 0.14), transparent 55%),
    linear-gradient(180deg, #f5f7fc 0%, #f3f0fb 100%);
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

/* Gradient text utility */
.grad-text {
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.container--narrow { max-width: 820px; }

.main {
  min-height: calc(100vh - var(--header-h) - 160px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(190, 124, 232, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 24px rgba(27, 23, 64, 0.05);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 12px;
}

.brand__logo {
  height: 54px;
  width: auto;
  display: block;
}

/* Tabs */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab {
  position: relative;
  display: inline-block;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.tab:hover { color: var(--ink); background: rgba(66, 62, 222, 0.06); }

.tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

.tab:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ---------- Panels ---------- */
.panel { padding: clamp(40px, 6vw, 80px) 0; }
.panel[hidden] { display: none; }

.panel.is-active { animation: fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel:focus { outline: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 15ch;
}

.hero__lead {
  margin-top: 22px;
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.stats {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  justify-content: start;
}

.stat { display: flex; flex-direction: column; position: relative; padding-right: 28px; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.stat__num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--secondary);
  line-height: 1.1;
}
.stat__label { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

/* Hero media */
.hero__media { display: flex; justify-content: center; }

.hero__card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12%;
  border-radius: 32px;
  background: linear-gradient(160deg, #eaf2ff 0%, #f1ebff 55%, #f7eefc 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(190, 124, 232, 0.35);
  pointer-events: none;
}

.hero__card::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85), rgba(255,255,255,0));
  z-index: 0;
}

.hero__card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- About ---------- */
.prose { }
.prose p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.prose p + p { margin-top: 20px; }

.highlights {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.highlight p { color: var(--muted); font-size: 0.96rem; }

.highlight__icon, .feature__icon, .info-row__icon {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white, #fff);
  background: var(--grad);
  box-shadow: 0 8px 18px rgba(66, 62, 222, 0.22);
}
.highlight__icon { width: 48px; height: 48px; margin-bottom: 18px; }
.highlight__icon svg, .feature__icon svg { width: 24px; height: 24px; color: #fff; }

/* ---------- Services ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(190, 124, 232, 0.55);
}
.feature__icon { width: 50px; height: 50px; margin-bottom: 18px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--ink); }
.feature p { color: var(--muted); font-size: 0.98rem; }

.note {
  margin: 34px auto 0;
  max-width: 820px;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
.note strong { color: var(--purple-deep); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form { padding: 32px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fcfbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a79fc0; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 146, 241, 0.16);
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.96rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.is-success { color: #1f7a4d; }
.form-status.is-error { color: #b3261e; }

.contact-info { padding: 32px; }
.contact-info h3 { font-size: 1.14rem; margin-bottom: 20px; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-row { display: flex; align-items: center; gap: 14px; }
.info-row__icon { width: 44px; height: 44px; flex-shrink: 0; }
.info-row__icon svg { width: 22px; height: 22px; color: #fff; }
.info-row__text { display: flex; flex-direction: column; }
.info-row__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-deep); font-weight: 700; }
.info-row__value { color: var(--ink); font-weight: 500; }
.info-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-position 0.5s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 12px 26px rgba(66, 62, 222, 0.28);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(190, 124, 232, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(190, 124, 232, 0.55);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--secondary);
  background: #fff;
  transform: translateY(-2px);
}
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { font-family: "Poppins", sans-serif; color: var(--secondary); }
.footer-brand span { font-size: 0.9rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-nav a {
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-nav a:hover { color: var(--ink); background: rgba(66, 62, 222, 0.06); }
.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__title, .hero__lead { max-width: none; }
  .hero__actions, .stats { justify-content: center; }
  .stats { grid-template-columns: repeat(3, auto); }
  .hero__media { order: -1; }
  .hero__card { width: min(300px, 80%); }
  .highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner { padding: 8px 16px; }
  .brand__logo { height: 44px; }
  .tab { padding: 9px 10px; font-size: 0.9rem; }
  .tab::after { left: 10px; right: 10px; }
  .stats { gap: 16px; }
  .stat { padding-right: 16px; }
  .stat__num { font-size: 1.15rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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