/* ── TOKENS ── */
:root {
  --navy: #0A1628; --navy-mid: #112240; --navy-light: #1A3258;
  --blue: #1565C0; --sky: #1E88E5; --cyan: #00ACC1;
  --cyan-light: #E0F7FA; --blue-light: #E3F2FD;
  --white: #FFFFFF; --off-white: #F7F9FC;
  --gray-100: #EFF2F7; --gray-300: #CBD5E0; --gray-500: #718096;
  --gray-700: #2D3748; --gray-900: #1A202C;
  --green: #00897B; --amber: #F59E0B;
  --radius: 10px; --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(10,22,40,.10);
  --shadow-md: 0 8px 40px rgba(10,22,40,.16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #0A1628; --off-white: #0D1F3C; --gray-100: #112240;
    --gray-300: #1A3258; --gray-500: #94A3B8; --gray-700: #CBD5E0;
    --gray-900: #F1F5F9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --white: #0A1628; --off-white: #0D1F3C; --gray-100: #112240;
  --gray-300: #1A3258; --gray-500: #94A3B8; --gray-700: #CBD5E0;
  --gray-900: #F1F5F9; color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--gray-900); line-height: 1.6; }
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── PAGE ROUTING ── */
.page { display: none; }
.page.active { display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: env(safe-area-inset-top, 0px);
  background: rgba(10,22,40,.96); backdrop-filter: blur(12px);
  z-index: 100; border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav-logo span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 6px 14px; border-radius: 6px; font-size: .92rem; font-weight: 500;
  color: rgba(255,255,255,.75); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-cta {
  margin-left: auto;
  background: var(--cyan); color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 20px; font-size: .88rem; font-weight: 600;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #00838F; transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; padding: 4px; }
.mobile-menu { display: none; flex-direction: column; background: #0A1628; padding: 16px 24px; gap: 4px; }
.mobile-menu a { padding: 10px 12px; color: rgba(255,255,255,.8); font-size: .95rem; border-radius: 6px; }
.mobile-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .mobile-menu.open { display: flex; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2347 55%, #0F2A5C 100%);
  padding: 100px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,172,193,.12) 0%, transparent 70%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,172,193,.15); border: 1px solid rgba(0,172,193,.3);
  color: var(--cyan); padding: 6px 14px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: #fff; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--cyan); }
.hero p { font-size: 1.08rem; color: rgba(255,255,255,.72); max-width: 48ch; margin-bottom: 36px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--cyan); color: #fff;
  border: none; border-radius: 9px;
  padding: 14px 28px; font-size: .95rem; font-weight: 700;
  transition: background .2s, transform .15s; letter-spacing: .01em;
}
.btn-primary:hover { background: #00838F; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.3); border-radius: 9px;
  padding: 13px 28px; font-size: .95rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.hero-visual {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,.06); border-radius: 12px;
  padding: 20px; text-align: center;
}
.hero-stat .num { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--cyan); }
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; font-weight: 500; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy-mid); padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); font-size: .88rem; font-weight: 500; }
.trust-item .icon { font-size: 1.3rem; }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,.12); }
@media (max-width: 600px) { .trust-divider { display: none; } }

/* ── SECTIONS ── */
.section { padding: 88px 24px; }
.section-dark { background: var(--navy); color: #fff; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.6); }
.container { max-width: 1200px; margin: 0 auto; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--cyan); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }
.service-card .learn-more { color: var(--sky); font-size: .85rem; font-weight: 600; margin-top: 16px; display: inline-block; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 36px;
  transition: background .2s, border-color .2s;
}
.project-card:hover { background: rgba(255,255,255,.08); border-color: rgba(0,172,193,.4); }
.project-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(0,172,193,.15); color: var(--cyan);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.project-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.project-card p { color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.7; margin-bottom: 20px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 4px 10px; background: rgba(255,255,255,.07);
  border-radius: 6px; font-size: .77rem; color: rgba(255,255,255,.75); font-weight: 500;
}
@media (max-width: 680px) { .projects-grid { grid-template-columns: 1fr; } }

/* ── ABOUT STRIP ── */
.about-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  padding: 64px 24px; text-align: center;
}
.about-strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; font-weight: 800; margin-bottom: 16px; }
.about-strip p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 32px; font-size: 1.02rem; line-height: 1.7; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.contact-info p { color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-detail .icon { font-size: 1.3rem; margin-top: 2px; }
.contact-detail .text { font-size: .95rem; color: var(--gray-700); }
.contact-detail .text strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; border-radius: 9px;
  padding: 13px 24px; font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .15s; margin-top: 8px;
}
.whatsapp-btn:hover { background: #1EB857; transform: translateY(-2px); }
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-field input, .form-field textarea, .form-field select {
  padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-family: inherit; font-size: .93rem;
  background: var(--white); color: var(--gray-900);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 56px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.footer-brand .name { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .86rem; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .83rem; }
.footer-bottom span { color: var(--cyan); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── INNER PAGES ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2347 100%);
  padding: 72px 24px 56px; text-align: center;
}
.page-hero .eyebrow { color: var(--cyan); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.68); font-size: 1.05rem; max-width: 58ch; margin: 0 auto; line-height: 1.7; }

/* ── TEAM / ABOUT ── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 28px;
}
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }
@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .values-grid { grid-template-columns: 1fr; } }

/* ── AGENTFLOW ── */
.agentflow-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.af-feature {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 24px;
}
.af-feature h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.af-feature p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; }
@media (max-width: 600px) { .agentflow-features { grid-template-columns: 1fr; } }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }