/* ===== Design tokens ===== */
:root {
  --c-cyan: #29abe2;
  --c-blue: #2747e0;
  --c-blue-deep: #0b1e54;
  --c-ink: #0d1530;
  --c-text: #2a3350;
  --c-muted: #6b7592;
  --c-line: #e6eaf3;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8ff;
  --grad: linear-gradient(120deg, var(--c-cyan), var(--c-blue));
  --grad-deep: linear-gradient(140deg, #0b1e54, #16297a 55%, #1d3bb0);
  --shadow-sm: 0 4px 14px rgba(16, 30, 84, .06);
  --shadow-md: 0 16px 40px rgba(16, 30, 84, .10);
  --shadow-lg: 0 30px 70px rgba(16, 30, 84, .16);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(39, 71, 224, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(39, 71, 224, .45); }
.btn--ghost { background: transparent; color: var(--c-blue); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-blue); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { height: 62px; width: 62px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: height .3s ease, width .3s ease; }
.nav.scrolled .nav__logo { height: 52px; width: 52px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
/* At top: nav sits over the dark hero, so links are white */
.nav__links a { font-weight: 600; font-size: .95rem; color: #fff; opacity: .9; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: #fff; }
/* Once scrolled the navbar turns light, so links go dark */
.nav.scrolled .nav__links a { color: var(--c-ink); opacity: .85; }
.nav.scrolled .nav__links a:hover { opacity: 1; color: var(--c-blue); }
/* Hamburger lines: dark once scrolled (white default set below) */
.nav.scrolled .nav__toggle span { background: var(--c-ink); }
.nav__cta {
  background: var(--grad); color: #fff !important; opacity: 1 !important;
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(39, 71, 224, .3);
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 150px 0 90px;
  background: var(--grad-deep);
  color: #fff; overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(41, 171, 226, .35), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(41, 171, 226, .22), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; margin-bottom: 20px;
}
.hero__title .grad { background: linear-gradient(120deg, #5fd0ff, #9fb4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: 1.1rem; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero__stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.hero__stats span { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.hero__visual { display: flex; justify-content: center; }
.hero__logo {
  width: min(380px, 82%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(120, 180, 255, .25), 0 0 60px rgba(60, 130, 255, .35), 0 30px 60px rgba(0, 0, 0, .45);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .4));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-blue); margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }
.section__head h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--c-ink); line-height: 1.15; margin-bottom: 16px; }
.lead { color: var(--c-muted); font-size: 1.05rem; }

/* ===== Grids ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--catalog { grid-template-columns: repeat(4, 1fr); }

/* Vision / Mission / Goal */
.vmg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vmg__card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.vmg__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vmg__icon { font-size: 2rem; margin-bottom: 14px; }
.vmg__card h3 { font-family: var(--font-head); color: var(--c-ink); font-size: 1.3rem; margin-bottom: 10px; }
.vmg__card p { color: var(--c-muted); font-size: .98rem; }

/* Service cards */
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: linear-gradient(135deg, rgba(41,171,226,.14), rgba(39,71,224,.14));
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-head); color: var(--c-ink); font-size: 1.2rem; margin-bottom: 14px; }
.card ul li { position: relative; padding-left: 22px; color: var(--c-muted); font-size: .94rem; margin-bottom: 8px; }
.card ul li::before { content: "›"; position: absolute; left: 4px; color: var(--c-blue); font-weight: 700; }

/* Catalog tiles */
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3; transition: transform .25s, box-shadow .25s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8, 18, 50, .82));
  color: #fff; font-weight: 600; font-size: .95rem;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tile--text { display: grid; place-items: center; background: var(--grad-deep); }
.tile--text figcaption {
  position: static; background: none; display: flex; flex-direction: column; gap: 10px;
  text-align: center; padding: 20px;
}
.tile--text figcaption span { font-family: var(--font-head); font-size: 1.05rem; }

/* Portfolio cards */
.pcard {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-bg-alt); }
.pcard__body { padding: 22px; }
.pcard__body h3 { font-family: var(--font-head); color: var(--c-ink); font-size: 1.12rem; margin-bottom: 8px; }
.pcard__body p { color: var(--c-muted); font-size: .92rem; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Featured project */
.feature {
  margin-top: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.feature__media { background: var(--c-bg-alt); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature__body h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--c-ink); margin-bottom: 14px; }
.feature__body p { color: var(--c-muted); margin-bottom: 24px; }
.feature__meta { display: flex; flex-wrap: wrap; gap: 28px; }
.feature__meta li { display: flex; flex-direction: column; font-weight: 700; color: var(--c-ink); }
.feature__meta span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-blue); font-weight: 700; margin-bottom: 4px; }

/* Commitment */
.commitment { background: var(--grad-deep); color: #fff; text-align: center; }
.commitment .eyebrow { color: #7fd6ff; }
.commitment__quote {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.5;
  max-width: 900px; margin: 0 auto; color: rgba(255, 255, 255, .94);
}

/* Founders */
.founders { display: flex; justify-content: center; flex-wrap: wrap; gap: 44px; }
.founder { text-align: center; max-width: 260px; }
.founder__photo {
  width: 200px; height: 200px; margin: 0 auto 20px; border-radius: 50%;
  overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-md);
  background: var(--c-bg-alt);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder h3 { font-family: var(--font-head); color: var(--c-ink); font-size: 1.3rem; }
.founder__role { color: var(--c-blue); font-weight: 600; font-size: .95rem; }

/* Outsourcing CTA */
.outsourcing__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--grad); color: #fff; padding: 48px 50px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.outsourcing .eyebrow { color: rgba(255, 255, 255, .9); }
.outsourcing h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.outsourcing p { color: rgba(255, 255, 255, .9); max-width: 640px; }
.outsourcing .btn--primary { background: #fff; color: var(--c-blue); box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }
.outsourcing .btn--primary:hover { background: #f0f4ff; }

/* Footer */
.footer { background: var(--c-ink); color: rgba(255, 255, 255, .8); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { height: 84px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; font-size: .95rem; }
.footer__col h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 12px; font-size: .95rem; display: flex; flex-direction: column; }
.footer__col ul li span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-cyan); margin-bottom: 2px; }
.footer__col a:hover { color: #fff; }
.footer address { font-style: normal; font-size: .95rem; line-height: 1.8; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer__bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .vmg { grid-template-columns: 1fr; }
  .grid--catalog { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature__media img { min-height: 240px; }
  .outsourcing__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 64px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
    padding: 14px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  /* Dropdown panel is always light on mobile → force dark links & hamburger */
  .nav__links a, .nav.scrolled .nav__links a { padding: 10px 12px; border-radius: 10px; color: var(--c-ink); opacity: .9; }
  .nav__links a:hover, .nav.scrolled .nav__links a:hover { background: var(--c-bg-alt); color: var(--c-blue); }
  .nav__cta, .nav.scrolled .nav__cta { text-align: center; color: #fff; }
  .nav__toggle { display: flex; }
  .nav__toggle span, .nav.scrolled .nav__toggle span { background: var(--c-ink); }
  .nav.scrolled, .nav { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
  .nav__logo { height: 52px; width: 52px; }
  .grid--3, .grid--catalog { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 70px; }
}
