/* =========================================================
   iTech Gravity — Modern Theme (2026)
   ========================================================= */
:root {
  --bg: #0b1020;
  --bg-soft: #0f1730;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e6eaf2;
  --brand: #6366f1;
  --brand-2: #2563eb;
  --brand-3: #7c3aed;
  --accent: #14b8a6;
  --grad: linear-gradient(135deg, #6366f1 0%, #2563eb 50%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.12), rgba(124,58,237,.12));
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow: 0 18px 50px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .18);
  --radius: 18px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-2); text-decoration: none; transition: .2s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(99,102,241,.45); color:#fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color:#fff; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--brand-2); border: 1.5px solid var(--brand-2); }
.btn-outline:hover { background: var(--brand-2); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: .3s;
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img {
  height: 46px; width: auto;
  /* logo is dark on transparent — make it white while over the dark hero */
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
.site-header.scrolled .brand img { filter: none; } /* restore original colours on light header */
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e8ecf6; font-weight: 600; font-size: 15px; position: relative; }
.site-header.scrolled .nav-links a { color: var(--ink-2); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-2); }
.site-header.scrolled .nav-links a:hover { color: var(--brand-2); }
.nav-cta { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.site-header.scrolled .nav-toggle { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 170px 0 110px; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #312e81 0%, transparent 60%),
              radial-gradient(900px 500px at 0% 20%, #0e2a6b 0%, transparent 55%),
              var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600; color: #c7d2fe; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 0 0 18px; color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg,#a5b4fc,#67e8f9,#c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c3cae0; max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .t-num { font-size: 28px; font-weight: 800; color: #fff; }
.hero-trust .t-lbl { font-size: 13px; color: #97a3c2; }
.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .5s;
}
.hero-visual:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-visual img { width: 100%; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-3); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
.section-head p { font-size: 17px; color: var(--ink-3); margin: 0; }
.bg-soft { background: var(--surface-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-row { display: flex; gap: 16px; margin-top: 26px; }
.feature-row .ic {
  flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-3); font-size: 20px;
}
.feature-row h4 { margin: 0 0 6px; font-size: 18px; }
.feature-row p { margin: 0; color: var(--ink-3); font-size: 15px; }
.about-art { border-radius: var(--radius); }

/* ---------- Products ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.product:last-child { margin-bottom: 0; }
.product.rev .p-media { order: 2; }
.p-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-3);
  background: var(--grad-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.product h3 { font-size: 30px; margin: 0 0 14px; }
.product > div > p { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; }
.p-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.p-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.p-list li i { color: var(--accent); margin-top: 4px; }
.p-media {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .4s, box-shadow .4s;
}
.p-media:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.p-frame { background: #0f172a; padding: 10px 12px; display: flex; gap: 7px; align-items: center; }
.p-frame span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.p-frame span:nth-child(1){ background:#ef4444; } .p-frame span:nth-child(2){ background:#f59e0b; } .p-frame span:nth-child(3){ background:#22c55e; }
.p-frame .p-url { margin-left: 10px; font-size: 11px; color: #94a3b8; background:#1e293b; padding: 3px 12px; border-radius: 6px; }

/* ---------- Services / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--grad); transform:scaleX(0); transform-origin:left; transition:.35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; color: #fff; margin-bottom: 18px; background: var(--grad);
}
.card h4 { font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--ink-3); margin: 0; font-size: 15px; }
.card ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.card ul li { display:flex; gap:9px; font-size:14px; color:var(--ink-2); margin-bottom:8px; }
.card ul li i { color: var(--accent); margin-top: 4px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--grad); color: #fff; }
.stats-band .grid-4 { gap: 20px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: 15px; color: #e0e7ff; }

/* ---------- Clients ---------- */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 34px;
  display: grid; place-items: center; min-width: 180px; min-height: 96px;
  filter: grayscale(1); opacity: .7; transition: .3s; box-shadow: var(--shadow-sm);
}
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-5px); }
.client-logo img { max-height: 56px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm);
}
.info-card .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-3); font-size: 18px; }
.info-card h5 { margin: 0 0 4px; font-size: 15px; }
.info-card p { margin: 0; color: var(--ink-3); font-size: 14px; }
.info-card a { color: var(--ink-3); }
.info-card a:hover { color: var(--brand-2); }
.contact-map { margin-top: 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 200px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2); transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.form-note { font-size: 13px; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-note.ok { display: block; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-note.err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #c3cad9; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 22px; margin: 0 0 14px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .04em; }
.site-footer p { color: #98a2bd; font-size: 14px; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #98a2bd; font-size: 14px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #c3cad9; transition: .25s;
}
.social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.news-form { display: flex; gap: 8px; margin-top: 12px; }
.news-form input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; }
.news-form input::placeholder { color: #8b93ab; }
.news-form button { border: 0; border-radius: 10px; padding: 0 18px; background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8b93ab; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 22px; z-index: 900; }
.whatsapp-fab { bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 12px 30px rgba(37,211,102,.45); transition: .25s; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.to-top { bottom: 94px; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand-2); color:#fff; }

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

/* =========================================================
   Animations & micro-interactions
   ========================================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.15); } 66% { transform: translate(-30px,25px) scale(.9); } }
@keyframes pulse { 0% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
@keyframes shine { 0% { left: -120%; } 60%,100% { left: 130%; } }
@keyframes bobble { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Hero entrance — staggered */
.hero-copy > * { animation: fadeUp .8s both; }
.hero-copy > .eyebrow      { animation-delay: .05s; }
.hero-copy > h1            { animation-delay: .18s; }
.hero-copy > p.lead        { animation-delay: .32s; }
.hero-copy > .hero-actions { animation-delay: .46s; }
.hero-copy > .hero-trust   { animation-delay: .60s; }

/* Animated gradient headline */
.hero h1 .grad {
  background: linear-gradient(90deg,#a5b4fc,#67e8f9,#c4b5fd,#a5b4fc);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 6s linear infinite;
}

/* Floating, glowing hero visual */
.hero-visual { animation: floaty 6s ease-in-out infinite; }
.hero-visual::after {
  content: ""; position: absolute; inset: -2px; border-radius: 22px; z-index: -1;
  background: linear-gradient(135deg, rgba(99,102,241,.6), rgba(20,184,166,.5));
  filter: blur(34px); opacity: .55;
}

/* Glowing animated blobs behind the hero */
.hero .container::before,
.hero .container::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none;
}
.hero .container::before { width: 320px; height: 320px; background: rgba(99,102,241,.45); top: -40px; left: 40%; animation: blob 16s ease-in-out infinite; }
.hero .container::after  { width: 260px; height: 260px; background: rgba(20,184,166,.35); bottom: 0; left: 8%; animation: blob 20s ease-in-out infinite reverse; }
.hero-grid { position: relative; z-index: 2; }

/* Buttons: shine sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { animation: shine .8s ease; }

/* Card icon micro-interaction */
.card .ic, .feature-row .ic, .info-card .ic { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover .ic { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.feature-row:hover .ic { transform: rotate(-6deg) scale(1.08); }

/* Product list ticks pop on hover */
.product .p-list li i { transition: transform .25s; }
.product:hover .p-list li i { transform: scale(1.25); }

/* Staggered reveal for grid items */
.grid-3 .reveal, .grid-4 .reveal { transition-delay: 0s; }
.grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2) { transition-delay: .12s; }
.grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3) { transition-delay: .24s; }
.grid-4 > .reveal:nth-child(4) { transition-delay: .36s; }

/* Client logos gentle bob on hover */
.client-logo:hover img { animation: bobble 1.2s ease-in-out infinite; }

/* WhatsApp pulse + to-top bob */
.whatsapp-fab { animation: pulse 2.4s infinite; }
.to-top.show { animation: bobble 2s ease-in-out infinite; }

/* Nav links underline already animated; add CTA lift */
.nav-cta { transition: transform .2s, box-shadow .2s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .product, .product.rev .p-media, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .product .p-media { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 30px; }
  .hero-visual { transform: none; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: #0b1020; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 40px; gap: 22px; transform: translateX(100%); transition: .35s; box-shadow: -20px 0 60px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: #e8ecf6 !important; font-size: 18px; }
  .nav-toggle { display: block; z-index: 1100; }
  .grid-3, .grid-4, .form-row, .p-list { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { padding: 140px 0 90px; }
}
