/* ============================================================
   D2Graphics — Design System (vanilla HTML/CSS/JS)
   Brand palette pulled from the logo: navy/indigo, lime green, cyan
   ============================================================ */

:root {
  --navy: #0c0c3a;
  --navy-700: #14146b;
  --green: #6cbf2c;
  --green-bright: #8ad641;
  --cyan: #1ca9e2;
  --cyan-bright: #36c0f5;

  --ink: #0e1020;
  --muted: #5b6072;
  --line: #e7e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;

  --grad: linear-gradient(120deg, var(--green) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(160deg, #101046 0%, #0a0a2e 60%, #0a0a24 100%);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(16, 18, 40, 0.06);
  --shadow: 0 18px 50px rgba(16, 18, 40, 0.12);
  --shadow-glow: 0 18px 60px rgba(28, 169, 226, 0.28);

  --maxw: 1200px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

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

.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--grad-navy); color: #fff; }
.stats-section { padding-top: 80px; padding-bottom: 0; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animations (replaces Framer Motion) ---------- */
.anim { opacity: 0; transform: translateY(26px); animation: rise .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow { color: var(--green-bright); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.section--dark .section-head p { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #04122a; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(108,191,44,.4); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ============================================================
   Header
   ============================================================ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 18px 0; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.header.scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(16,18,40,.06), var(--shadow-sm); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img {
  height: 40px; width: auto; display: block;
  background: #fff; padding: 6px 12px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(12, 12, 58, 0.16);
  transition: height .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled .brand img { height: 36px; box-shadow: 0 2px 10px rgba(12,12,58,0.1); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.88); position: relative; transition: color .2s var(--ease); }
.header.scrolled .nav a { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .25s var(--ease); }
.nav a:hover::after { width: 100%; }
.header:not(.scrolled) .header-cta.btn-dark { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.92); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 14px; margin-top: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 16px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .mobile-cta { background: var(--grad); color: #04122a; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--grad-navy); color: #fff; padding: 180px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1503602642458-232111445657?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center; opacity: 0.16; filter: saturate(1.1);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.hero-glow.g1 { width: 460px; height: 460px; background: var(--green); top: -120px; right: -80px; }
.hero-glow.g2 { width: 420px; height: 420px; background: var(--cyan); bottom: -160px; left: -100px; opacity: 0.45; }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 28px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 12px var(--green-bright); }
.hero h1 { font-size: clamp(40px, 7vw, 78px); font-weight: 800; line-height: 1.02; }
.hero p.lead { margin-top: 26px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 620px; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta .item .n { font-family: var(--display); font-size: 30px; font-weight: 800; }
.hero-meta .item .l { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Marquee */
.marquee { background: var(--navy); color: rgba(255,255,255,0.65); border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; display: inline-flex; align-items: center; }
.marquee-track span::after { content: '✦'; color: var(--green-bright); margin-left: 56px; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Stats
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 36px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat .v { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); font-weight: 800; }
.stat .l { color: var(--muted); margin-top: 8px; font-weight: 500; font-size: 15px; }

/* ============================================================
   Services
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,58,0) 35%, rgba(12,12,58,0.55) 100%); mix-blend-mode: multiply; }
.service-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 20px; font-weight: 700; }
.service-body p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 10px; flex: 1; }
.service-points { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.service-points li { list-style: none; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; font-weight: 500; }
.service-points li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

/* ============================================================
   About / split
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.why-split { grid-template-columns: 0.9fr 1.1fr; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-badge { position: absolute; left: 24px; bottom: 24px; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.about-badge .big { font-family: var(--display); font-size: 34px; font-weight: 800; }
.about-badge .small { color: var(--muted); font-size: 13px; font-weight: 600; }
.about-copy h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 20px; }
.about-list { margin: 28px 0 0; display: grid; gap: 14px; }
.about-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.about-list .check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #04122a; display: grid; place-items: center; font-size: 14px; font-weight: 800; }

/* ============================================================
   Process
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); transition: transform .3s var(--ease), background .3s var(--ease); }
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); }
.step .no { font-family: var(--display); font-size: 40px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 19px; margin-top: 14px; }
.step p { color: rgba(255,255,255,0.66); font-size: 14.5px; line-height: 1.6; margin-top: 10px; }

/* ============================================================
   Why us
   ============================================================ */
.reasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.reason { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; gap: 18px; align-items: flex-start; }
.reason .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #04122a; display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-glow); }
.reason h3 { font-size: 19px; }
.reason p { color: var(--muted); margin-top: 8px; line-height: 1.6; font-size: 15px; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }

/* ============================================================
   Testimonials
   ============================================================ */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); margin: 0; }
.tst .stars { color: var(--green); font-size: 16px; letter-spacing: 3px; }
.tst p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.tst .who { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.tst .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #04122a; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.tst .who .nm { font-weight: 700; font-size: 15px; display: block; }
.tst .who .rl { color: var(--muted); font-size: 13px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad); color: #04122a; padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; max-width: 620px; }
.cta-band p { margin-top: 12px; font-size: 17px; opacity: 0.85; max-width: 560px; }
.cta-band .btn-dark { box-shadow: 0 18px 40px rgba(4,18,42,.3); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.contact-info > p { color: var(--muted); margin-top: 18px; font-size: 17px; line-height: 1.7; }
.contact-cards { margin-top: 34px; display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.c-card .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #04122a; display: grid; place-items: center; font-size: 22px; }
.c-card .lbl { font-size: 13px; color: var(--muted); font-weight: 600; display: block; }
.c-card .val { font-weight: 700; font-size: 16px; margin-top: 2px; color: var(--ink); display: block; }
.contact-map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(28,169,226,0.12); }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form .btn-primary[disabled] { opacity: .65; cursor: not-allowed; transform: none; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 18px; }
.form-status.err { background: rgba(226,28,28,0.08); color: #b22; border: 1px solid rgba(226,28,28,0.25); }

.form-success { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 30px; box-shadow: var(--shadow); text-align: center; }
.form-success .tick { width: 70px; height: 70px; border-radius: 50%; background: var(--grad); color: #04122a; display: grid; place-items: center; margin: 0 auto 20px; font-size: 34px; font-weight: 800; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .f-brand img { height: 50px; background: rgba(255,255,255,0.96); padding: 8px 12px; border-radius: 12px; width: auto; }
.footer .f-brand p { margin-top: 18px; line-height: 1.7; max-width: 300px; font-size: 14.5px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a, .footer ul li { font-size: 14.5px; transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--green-bright); }
.footer .f-contact div { margin-bottom: 14px; font-size: 14.5px; line-height: 1.5; }
.footer .f-contact a:hover { color: var(--green-bright); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.powered-by a { color: var(--green-bright); font-weight: 600; transition: color .2s var(--ease); }
.powered-by a:hover { color: var(--cyan-bright); }

/* ============================================================
   Responsive — mobile-first priority
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: 1fr; }
  .split, .why-split { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .header { padding: 14px 0; }
  .header.scrolled { padding: 9px 0; }
  .services-grid, .stats-grid, .steps-grid, .reasons-grid, .gallery-grid, .tst-grid, .form-row { grid-template-columns: 1fr; gap: 16px; }
  .section-head { margin-bottom: 38px; }
  .section-head p { font-size: 16px; }
  .hero { padding: 132px 0 78px; }
  .hero p.lead { font-size: 16.5px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 22px 32px; margin-top: 42px; }
  .hero-meta .item .n { font-size: 26px; }
  .service-body { padding: 20px 20px 24px; }
  .reason { padding: 24px; }
  .step { padding: 26px 22px; }
  .tst { padding: 26px; }
  .cta-band { padding: 40px 26px; text-align: center; justify-content: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .form { padding: 24px; }
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero { padding: 124px 0 64px; }
  .hero-badge { font-size: 12px; padding: 7px 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 18px 26px; }
  .btn { padding: 14px 22px; }
  .brand img { height: 36px; padding: 5px 10px; }
  .cta-band .btn-dark { width: 100%; justify-content: center; }
  .about-badge { left: 16px; bottom: 16px; padding: 14px 18px; }
  .about-badge .big { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .anim { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
