@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080810;
  --navy: #0c1424;
  --ink: #181b2a;
  --slate: #374060;
  --mid: #64708f;
  --muted: #96a0bb;
  --border: #e8ebf4;
  --border-s: #d4d9eb;
  --surface: #f5f7fc;
  --surface2: #eef1f9;
  --white: #ffffff;
  --accent: #4a67f5;
  --accent2: #7730e8;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(74,103,245,.08) 0%, rgba(119,48,232,.08) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 4px rgba(10,10,30,.06);
  --shadow: 0 4px 20px rgba(74,103,245,.10), 0 1px 4px rgba(10,10,30,.06);
  --shadow-md: 0 8px 32px rgba(10,10,30,.10), 0 2px 8px rgba(10,10,30,.06);
  --shadow-lg: 0 20px 60px rgba(10,10,30,.13), 0 4px 16px rgba(10,10,30,.07);
  --shadow-accent: 0 8px 32px rgba(74,103,245,.30);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.68,0,1.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section--alt { background: var(--surface); }
.section--alt + .section,
.section + .section--alt { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}

.h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; color: var(--black); }
.h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--black); }
.h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--black); line-height: 1.4; }

.lead { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--mid); max-width: 560px; margin-top: 20px; line-height: 1.75; font-weight: 400; }

.tag {
  display: inline-block;
  background: rgba(74,103,245,.1);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.section-header { text-align: center; }
.section-header .lead { margin: 18px auto 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  border: none;
  transition: transform .22s var(--ease), box-shadow .22s ease, background .2s ease, color .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }

.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 4px 20px rgba(74,103,245,.38); }
.btn-primary:hover { box-shadow: var(--shadow-accent); }
.btn-primary:hover::after { background: rgba(255,255,255,.07); }

.btn-ghost { background: var(--white); color: var(--slate); border: 1.5px solid var(--border-s); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); }

.btn-ghost--light { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost--light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.50); color: var(--white); box-shadow: none; }

.btn-white { background: var(--white); color: var(--accent); box-shadow: 0 4px 24px rgba(0,0,0,.18); font-weight: 700; }
.btn-white:hover { box-shadow: 0 10px 40px rgba(0,0,0,.25); }

.btn-outline-white { background: transparent; color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.22); }
.btn-outline-white:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); color: var(--white); }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(232,235,244,.8);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; color: var(--black); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--mid); transition: color .15s ease; position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--muted); font-size: 13.5px; }
footer .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .footer-links { display: flex; gap: 28px; }
footer .footer-links a { color: var(--muted); transition: color .15s ease; }
footer .footer-links a:hover { color: var(--ink); }

/* ── Hero (homepage video) ── */
.hero {
  padding: 172px 0 108px;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,16,0.58);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-content .lead { margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.72); }
.hero-content .hero-actions { justify-content: center; }
.hero-title { margin-bottom: 0; color: var(--white); }
.hero-title .accent { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  margin-bottom: 32px;
  letter-spacing: -.01em;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(74,103,245,.4); }
  50% { opacity: .7; transform: scale(1.2); box-shadow: 0 0 0 4px rgba(74,103,245,0); }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stat { text-align: center; }
.hero-stat .card-stat { font-size: 26px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .card-label { color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 500; margin-top: 4px; letter-spacing: .03em; text-transform: uppercase; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 88px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(74,103,245,.20) 0%, transparent 65%);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,103,245,.35), transparent);
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero .h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.65); margin-left: auto; margin-right: auto; }

/* ── Problem ── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 64px; }
.problem-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .25s ease, transform .25s var(--ease), border-color .2s ease;
  position: relative; overflow: hidden;
}
.problem-card::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .25s ease; }
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(74,103,245,.25); }
.problem-card:hover::before { opacity: 1; }
.problem-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(74,103,245,.08); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 22px; position: relative; transition: transform .25s var(--ease); }
.problem-card:hover .problem-icon { transform: scale(1.08); }
.problem-card p { color: var(--mid); font-size: 14.5px; margin-top: 9px; line-height: 1.7; position: relative; }
.problem-card .h3 { position: relative; }

/* ── Solution ── */
.solution-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.solution-list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.solution-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); transition: background .2s ease; }
.solution-list li:hover { background: var(--surface); }
.check { flex-shrink: 0; width: 26px; height: 26px; background: var(--grad); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; margin-top: 1px; box-shadow: 0 2px 8px rgba(74,103,245,.3); }
.solution-list li p { color: var(--mid); font-size: 14.5px; margin-top: 5px; line-height: 1.7; }

.solution-visual { background: var(--navy); border-radius: 24px; padding: 44px 40px; color: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.solution-visual::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(74,103,245,.28) 0%, transparent 65%); border-radius: 50%; }
.solution-visual::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(119,48,232,.15) 0%, transparent 65%); border-radius: 50%; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; position: relative; z-index: 1; }
.stat-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 22px; transition: background .2s ease, border-color .2s ease; }
.stat-box:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.stat-box .num { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-box .lbl { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 5px; line-height: 1.5; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 64px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; transition: box-shadow .28s ease, transform .28s var(--ease), border-color .2s ease; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: rgba(74,103,245,.2); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { font-size: 28px; margin-bottom: 22px; display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; background: var(--surface); border-radius: 14px; border: 1px solid var(--border); transition: transform .25s var(--ease), background .2s ease; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); background: rgba(74,103,245,.08); border-color: rgba(74,103,245,.2); }
.service-card p { color: var(--mid); font-size: 14.5px; margin-top: 10px; line-height: 1.72; }
.service-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 24px; font-size: 13.5px; font-weight: 600; color: var(--accent); transition: gap .18s ease, opacity .18s ease; opacity: .8; }
.service-card:hover .service-link { gap: 9px; opacity: 1; }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: calc(16.66% + 20px); right: calc(16.66% + 20px); height: 1.5px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: .15; }
.step { text-align: center; padding: 36px 24px; border-radius: var(--radius); transition: background .2s ease; }
.step:hover { background: var(--surface); }
.step-num { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); color: var(--white); font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; box-shadow: 0 0 0 8px rgba(74,103,245,.08), 0 4px 16px rgba(74,103,245,.28); transition: box-shadow .25s ease, transform .25s var(--ease); }
.step:hover .step-num { box-shadow: 0 0 0 12px rgba(74,103,245,.1), var(--shadow-accent); transform: scale(1.06); }
.step p { color: var(--mid); font-size: 14.5px; margin-top: 12px; line-height: 1.72; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 64px; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; transition: box-shadow .25s ease, transform .25s var(--ease), border-color .2s ease; position: relative; }
.testi-card::before { content: '\201C'; position: absolute; top: 20px; right: 28px; font-size: 72px; line-height: 1; font-family: Georgia, serif; color: var(--border); transition: color .2s ease; }
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(74,103,245,.2); }
.testi-card:hover::before { color: rgba(74,103,245,.12); }
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 18px; letter-spacing: .08em; }
.testi-card blockquote { font-size: 15px; color: var(--slate); line-height: 1.75; font-style: normal; font-weight: 400; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--white); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.avatar-a { background: var(--grad); }
.avatar-b { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.avatar-c { background: linear-gradient(135deg, #10b981, #059669); }
.author-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.author-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── Final CTA ── */
.cta-section { background: var(--navy); padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(74,103,245,.18) 0%, transparent 65%); border-radius: 50%; }
.cta-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(74,103,245,.4), transparent); }
.cta-section .h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.55); max-width: 480px; margin: 20px auto 0; font-size: 1.05rem; line-height: 1.75; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }

/* ── About page — Team ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 64px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; text-align: center; transition: box-shadow .25s ease, transform .25s var(--ease), border-color .2s ease; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(74,103,245,.2); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--white); margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(74,103,245,.28); }
.team-card .author-role { font-size: 13px; color: var(--muted); margin: 4px 0 16px; display: block; }
.team-card p { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; margin-top: 72px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(74,103,245,.08); border: 1px solid rgba(74,103,245,.14); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.contact-info-text span { font-size: 14px; color: var(--mid); }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 44px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.form-input, .form-textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border-s); border-radius: var(--radius-sm); font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(74,103,245,.12); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp .65s cubic-bezier(.22,.68,0,1) both; }
.fade-up-d1 { animation-delay: .10s; }
.fade-up-d2 { animation-delay: .22s; }
.fade-up-d3 { animation-delay: .34s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .solution-inner { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero {
    padding: 128px 0 72px;
    background-image: url('assets/images/hero-end2.png');
    background-size: cover;
    background-position: center;
  }
  .hero-video { display: none; }
  .hero-overlay { background: rgba(8,8,16,0.68); }
  .hero-stats { gap: 32px; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-section { padding: 80px 0; }
  .page-hero { padding: 120px 0 64px; }
  .contact-form-wrap { padding: 32px 24px; }
}
