/* ============================================================
   iTecz Solutions — Modern dark brand system
   Deep Navy + Electric Blue · Space Grotesk / Inter
   ============================================================ */

:root {
  --bg:        #070C18;
  --bg-2:      #0A1224;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border:    rgba(255, 255, 255, .09);
  --border-2:  rgba(255, 255, 255, .16);

  --blue:      #2D7FF9;
  --blue-bri:  #5B9BFF;
  --blue-soft: #7FB4FF;
  --cyan:      #38BDF8;
  --indigo:    #6366F1;

  --text:      #EAF0FB;
  --text-2:    #A7B4CC;
  --muted:     #6B7A96;

  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1180px;

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
section { position: relative; z-index: 1; }

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

/* ----------------------- Ambient background ----------------------- */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 16%),
    radial-gradient(110% 80% at 50% -12%, #0D1A36 0%, var(--bg) 58%);
}
.bg__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 75%);
}
.bg__blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .34; will-change: transform; }
.bg__blob--1 { width: 640px; height: 640px; top: -260px; left: 50%; margin-left: -320px; background: radial-gradient(closest-side, rgba(45,127,249,.5), transparent); animation: drift1 24s ease-in-out infinite; }
.bg__blob--2 { width: 420px; height: 420px; top: 420px; left: -180px; background: radial-gradient(closest-side, rgba(99,102,241,.34), transparent); animation: drift2 28s ease-in-out infinite; }
.bg__blob--3 { width: 400px; height: 400px; top: 1200px; right: -160px; background: radial-gradient(closest-side, rgba(56,189,248,.24), transparent); animation: drift1 32s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(40px,50px); } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(60px,-40px); } }

/* ----------------------- Shared bits ----------------------- */
.grad {
  background: linear-gradient(100deg, var(--blue-soft) 0%, var(--blue) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 18px;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  padding: 7px 15px 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(8px); margin-bottom: 28px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56,189,248,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bri), var(--blue) 60%, #1B5FE0);
  box-shadow: 0 8px 30px rgba(45,127,249,.40), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(45,127,249,.55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: #fff; background: rgba(45,127,249,.12); }

/* ----------------------- Nav ----------------------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 16px 0; transition: padding .25s ease; }
.nav-wrap.is-scrolled { padding: 8px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding-left: 22px; padding-right: 14px;
  border-radius: 999px;
  background: rgba(10, 16, 30, .55); border: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(16px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav-wrap.is-scrolled .nav { background: rgba(10, 16, 30, .82); box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 14px rgba(45,127,249,.4)); }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: .04em; }

/* --- Animated logo (draws in, then glassy shine sweep) --- */
.logo-border { stroke-dasharray: 232; stroke-dashoffset: 0; opacity: .6; animation: logoBorder 1s ease .15s backwards; }
@keyframes logoBorder { from { stroke-dashoffset: 232; } to { stroke-dashoffset: 0; } }

.logo-z {
  stroke-dasharray: 170; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0;
  animation: logoDraw 1.9s cubic-bezier(.65,0,.35,1) .25s backwards;
}
@keyframes logoDraw {
  0%   { stroke-dashoffset: 170; fill-opacity: 0; stroke-opacity: 1; }
  45%  { stroke-dashoffset: 0;   fill-opacity: 0; stroke-opacity: 1; }
  70%  { fill-opacity: 1;        stroke-opacity: .5; }
  100% { stroke-dashoffset: 0;   fill-opacity: 1; stroke-opacity: 0; }
}

.logo-shine {
  opacity: 0; transform-box: view-box; transform-origin: 32px 32px;
  animation: logoShine 7s ease-in-out 2.2s infinite;
}
@keyframes logoShine {
  0%   { transform: translateX(0)    rotate(18deg); opacity: 0; }
  4%   { opacity: .9; }
  18%  { transform: translateX(82px) rotate(18deg); opacity: 0; }
  100% { transform: translateX(82px) rotate(18deg); opacity: 0; }
}
/* gentle hover lift on the whole brand mark */
.brand:hover .brand__mark { transform: translateY(-1px) scale(1.05); }
.brand__mark { transition: transform .25s ease; }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links > a { font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 9px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.nav__links > a:hover { color: var(--text); background: var(--surface-2); }
.nav__cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-bri), var(--blue)) !important;
  font-weight: 600 !important; box-shadow: 0 6px 20px rgba(45,127,249,.35);
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta span { display: inline-block; transition: transform .2s ease; }
.nav__cta:hover span { transform: translateX(3px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------- Hero ----------------------- */
.hero { padding: 80px 0 70px; text-align: center; }
.hero__inner { max-width: 860px; margin: 0 auto; }
.hero__title { font-size: clamp(40px, 7vw, 76px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 26px; }
.hero__lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--text-2); max-width: 640px; margin: 0 auto 36px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; max-width: 760px; margin-left: auto; margin-right: auto; }
.stat {
  padding: 22px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.stat__num { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ----------------------- Marquee ----------------------- */
.marquee { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 36px; white-space: nowrap; width: max-content; animation: scroll 34s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 500; font-size: 17px; color: #8294b4; }
.marquee__track i { color: var(--blue); font-size: 9px; font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------- Sections ----------------------- */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 18px; }
.section__title--left { text-align: left; font-size: clamp(28px, 3.6vw, 40px); }
.section__sub { color: var(--text-2); font-size: 18px; }

/* ----------------------- Bento / Cards ----------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card--lg { grid-column: span 6; }
.card--md { grid-column: span 3; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) 0%, rgba(45,127,249,.18), transparent 70%);
  transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.card__icon { width: 48px; height: 48px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-soft); background: rgba(45,127,249,.12); border: 1px solid rgba(45,127,249,.22); }
.card__icon[data-c="finance"]     { color: #2dd4bf; background: rgba(45,212,191,.10); border-color: rgba(45,212,191,.24); }
.card__icon[data-c="hospitality"] { color: #fbbf65; background: rgba(251,146,60,.10); border-color: rgba(251,146,60,.24); }
.card__icon[data-c="erp"]         { color: var(--blue-bri); background: rgba(45,127,249,.12); border-color: rgba(45,127,249,.26); }
.card__icon[data-c="security"]    { color: #a78bfa; background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.26); }
.card__icon[data-c="oss"]         { color: #38bdf8; background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.24); }
.card__icon[data-c="codereview"]  { color: #5b9bff; background: rgba(45,127,249,.12); border-color: rgba(45,127,249,.26); }

.card__badge { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.card__title { font-size: 25px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.card--lg .card__title { font-size: 30px; }
.card__desc { color: var(--text-2); font-size: 15.5px; flex-grow: 1; margin-bottom: 24px; }
.card__link { font-weight: 600; font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; }
.card__link .card__arrow { color: var(--blue-soft); transition: transform .2s ease; }
.card__link:hover { color: var(--blue-soft); }
.card__link:hover .card__arrow { transform: translate(3px, -3px); }

/* ----------------------- Features ----------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(8px); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--blue-bri), var(--blue) 60%, var(--indigo)); margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(45,127,249,.35); }
.feature h3 { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--text-2); }

/* ----------------------- About ----------------------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about__text p { margin-bottom: 18px; color: var(--text-2); }
.about__text .btn { margin-top: 12px; }
.about__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.orb { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 150px;
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(45,127,249,.14), rgba(99,102,241,.06));
  border: 1px solid var(--border-2); backdrop-filter: blur(8px); }
.orb:nth-child(2), .orb:nth-child(3) { transform: translateY(22px); }
.orb span { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orb small { font-size: 13.5px; color: var(--text-2); }

/* ----------------------- CTA ----------------------- */
.cta { padding: 40px 0 110px; }
.cta__inner {
  position: relative; max-width: 920px; margin: 0 auto; text-align: center;
  padding: 70px 40px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, rgba(45,127,249,.16), rgba(99,102,241,.10) 50%, rgba(56,189,248,.08));
  border: 1px solid var(--border-2);
}
.cta__inner::before { content: ""; position: absolute; width: 520px; height: 520px; top: -260px; left: 50%; margin-left: -260px;
  background: radial-gradient(closest-side, rgba(45,127,249,.45), transparent); filter: blur(40px); pointer-events: none; }
.cta__title { position: relative; font-size: clamp(30px, 5vw, 50px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 18px; }
.cta__sub { position: relative; color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 auto 34px; }
.cta__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------- Footer ----------------------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 70px 0 30px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 250px; }
.footer__col h4 { font-family: var(--sans); color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em; }
.footer__col a { display: block; font-size: 14.5px; color: var(--text-2); margin-bottom: 11px; transition: color .15s ease; }
.footer__col a:hover { color: var(--blue-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ----------------------- Responsive ----------------------- */
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lg, .card--md { grid-column: span 1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 44px; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    border-radius: 20px; background: rgba(12,18,34,.97); border: 1px solid var(--border);
    backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.5);
    transform: translateY(-10px) scale(.98); opacity: 0; pointer-events: none; transform-origin: top;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .nav__links > a { padding: 13px 16px; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .nav__toggle { display: flex; }

  .hero { padding: 56px 0 54px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 46px; }
  .section { padding: 72px 0; }
  .bento, .features { grid-template-columns: 1fr; }
  .about__panel { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cta__inner { padding: 50px 24px; }
}
@media (max-width: 420px) {
  .about__panel { grid-template-columns: 1fr; }
  .orb:nth-child(2), .orb:nth-child(3) { transform: none; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Reveal-on-scroll (added by JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 560px){ .hero__title{ font-size: 31px; line-height: 1.14; } }
