/* ── Variables ── */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #111827;
  --muted: #667085;
  --line: #dfe5ee;
  --primary: #6c5ce7;
  --primary-dark: #5143c8;
  --dark: #10131a;
  --dark-2: #171b24;
  --success: #0f9f72;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(23, 31, 56, 0.10);
  --container: 1180px;
}

/* ── Reset & Base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ── Layout ── */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.section {
  padding: 110px 0;
}

.section-title {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 58px);
}

.section-copy {
  max-width: 700px;
  margin-top: 20px;
  font-size: 18px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(108, 92, 231, .24);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,.7);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  border-color: #c7ced9;
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 251, .82);
  border-bottom: 1px solid rgba(223, 229, 238, .75);
}

nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  height: 32px;
  width: auto;
  object-fit: contain;
  background: linear-gradient(135deg, var(--primary), #2f80ed);
  border-radius: 8px;
  padding: 6px 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: #4b5563;
}

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

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 12% 15%, rgba(108,92,231,.14), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(47,128,237,.12), transparent 30%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17,24,39,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  max-width: 800px;
  margin-top: 22px;
  font-size: clamp(50px, 7vw, 84px);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), #2f80ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin-top: 26px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  color: #697386;
  font-size: 14px;
  font-weight: 700;
}

.hero-meta span::before {
  content: "•";
  margin-right: 10px;
  color: var(--primary);
}

/* ── System Card ── */
.system-card {
  position: relative;
  min-height: 520px;
  padding: 30px;
  border-radius: 32px;
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.55), transparent 68%);
  filter: blur(3px);
}

.system-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.system-title {
  font-size: 18px;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #cfd6e4;
  font-size: 12px;
}

.live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52,211,153,.12);
}

.flow {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.flow-item strong { font-size: 15px; }
.flow-item span { color: #98a2b3; font-size: 13px; }

.flow-line {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, var(--primary), rgba(255,255,255,.16));
  margin: -4px auto;
}

.mini-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.mini-stat {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.mini-stat b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  letter-spacing: -.03em;
}

.mini-stat span {
  color: #98a2b3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Trust ── */
.trust {
  padding: 24px 0 38px;
}

.trust-card {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust-card p {
  font-weight: 700;
  color: #475467;
}

.logo-chip {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: #798294;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.service-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f0edff;
  color: var(--primary);
  font-size: 21px;
  font-weight: 800;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 30px;
}

.service-card p {
  margin-top: 14px;
  font-size: 16px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px 18px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  color: #475467;
  font-size: 14px;
}

.service-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 800;
}

/* ── Dark Section / Problems ── */
.dark-section {
  background: var(--dark);
  color: white;
}

.dark-section p { color: #aab3c2; }

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.problem-card {
  padding: 28px;
  min-height: 270px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.problem-card .num {
  color: #7c72ea;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.problem-card h3 {
  margin-top: 24px;
  font-size: 25px;
}

.problem-card p { margin-top: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  color: white;
}

/* ── Why / About ── */
.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 16px;
}

.why-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.why-item h3 {
  font-size: 22px;
}

.why-item p { margin-top: 8px; }

/* ── Work / Portfolio ── */
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-top: 48px;
}

.work-card {
  position: relative;
  min-height: 470px;
  padding: 32px;
  border-radius: 28px;
  overflow: hidden;
  background: #e7ecf8;
  border: 1px solid var(--line);
}

.work-card.dark {
  background: #1b2230;
  color: white;
  border-color: #293140;
}

.work-card h3 {
  max-width: 480px;
  margin-top: 18px;
  font-size: 34px;
}

.work-card p {
  max-width: 520px;
  margin-top: 14px;
}

.work-card.dark p { color: #b6c0cf; }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(17,24,39,.06);
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.dark .tag {
  color: #d9e0ea;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}

.work-visual {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: -52px;
  height: 210px;
  border-radius: 22px 22px 0 0;
  background: white;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 20px 50px rgba(17,24,39,.12);
  padding: 20px;
}

.work-card.dark .work-visual {
  background: #10151f;
  border-color: #30394a;
}

.bars {
  height: 100%;
  display: flex;
  align-items: end;
  gap: 10px;
}

.bars span {
  flex: 1;
  min-height: 20px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(to top, var(--primary), #74a7ff);
  opacity: .9;
}

/* ── Cloud ── */
.cloud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.cloud-diagram {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cloud-layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-2);
  font-weight: 700;
}

.cloud-layer span {
  color: #7c8493;
  font-size: 12px;
  font-weight: 700;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech {
  padding: 10px 13px;
  border-radius: 11px;
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}

/* ── Process ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.process-step {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}

.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-weight: 800;
  font-size: 13px;
}

.process-step h3 {
  margin-top: 24px;
  font-size: 23px;
}

.process-step p { margin-top: 10px; }

/* ── Insights ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.article-card {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  transition: .25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-thumb {
  height: 190px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 70% 20%, rgba(108,92,231,.5), transparent 28%),
    linear-gradient(135deg, #151926, #283147);
  color: white;
}

.article-thumb.alt {
  background:
    radial-gradient(circle at 30% 30%, rgba(47,128,237,.45), transparent 30%),
    linear-gradient(135deg, #161d28, #263d57);
}

.article-thumb.alt2 {
  background:
    radial-gradient(circle at 70% 25%, rgba(15,159,114,.42), transparent 30%),
    linear-gradient(135deg, #16221f, #233a33);
}

.article-body {
  padding: 24px;
}

.article-type {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-card h3 {
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.22;
}

.article-card p {
  margin-top: 12px;
  font-size: 14px;
}

/* ── FAQ ── */
.faq-wrap {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.faq-q span:last-child {
  font-size: 20px;
  color: var(--primary);
  transition: transform .2s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a p {
  padding: 0 22px 20px;
}

.faq-item.open .faq-a { max-height: 240px; }
.faq-item.open .faq-q span:last-child { transform: rotate(45deg); }

/* ── CTA ── */
.cta {
  padding: 0 0 110px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 72px;
  border-radius: 34px;
  background: linear-gradient(135deg, #11141c, #232947);
  color: white;
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.85), transparent 66%);
}

.cta-card h2 {
  position: relative;
  z-index: 2;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 64px);
}

.cta-card p {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-top: 18px;
  color: #b9c1d0;
  font-size: 18px;
}

.cta-card .hero-actions { position: relative; z-index: 2; }
.cta-card .btn-secondary {
  background: rgba(255,255,255,.06);
  color: white;
  border-color: rgba(255,255,255,.16);
}

/* ── Footer ── */
footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #f1f4f8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: #667085;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #8a94a6;
  font-size: 13px;
}

/* ── Legal Pages ── */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 12% 15%, rgba(108,92,231,.10), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(47,128,237,.08), transparent 30%);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  max-width: 700px;
}

.page-hero p {
  margin-top: 16px;
  font-size: 18px;
  max-width: 620px;
}

.legal-content {
  padding: 60px 0 110px;
}

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

.legal-card h2 {
  font-size: 26px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  line-height: 1.2;
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-card h3 {
  font-size: 20px;
  margin-top: 28px;
  line-height: 1.3;
}

.legal-card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #475467;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #475467;
  font-size: 16px;
  line-height: 1.75;
}

.legal-card ul li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--primary);
  font-weight: 600;
}

.legal-card a:hover {
  text-decoration: underline;
}

/* ── Responsive: Tablet ── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid, .cloud-grid, .why-grid, .faq-wrap, .work-grid {
    grid-template-columns: 1fr;
  }
  .system-card { min-height: auto; }
  .problems-grid, .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-card p { grid-column: 1 / -1; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 78px 0; }
  .hero { padding-top: 62px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero-copy { font-size: 18px; }
  .nav-cta { display: none; }
  .service-grid, .problems-grid, .process-grid, .insights-grid, .trust-card, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-list { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .cta-card { padding: 46px 26px; }
  .footer-bottom { flex-direction: column; }
  .work-card { min-height: 520px; }
  .section-title { font-size: 40px; }
  .legal-card { padding: 32px 24px; }
  .page-hero { padding: 60px 0 40px; }
}