/* ============ MaxSave — light hi-tech theme ============ */
:root {
  --bg: #f4f7fe;
  --bg-2: #ffffff;
  --alt: #eaf1fc;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --border: #e4ebf7;
  --text: #1a2545;
  --muted: #5e6a8a;
  --navy: #1c2b7a;
  --brand: #5b6ef5;
  --brand-2: #2bb8c9;
  --brand-3: #9b8cf6;
  --radius: 20px;
  --maxw: 1180px;
  --shadow-sm: 0 6px 18px rgba(35, 54, 130, 0.06);
  --shadow: 0 18px 44px rgba(35, 54, 130, 0.10);
  --shadow-lg: 0 28px 60px rgba(35, 54, 130, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, .brand__text { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; color: var(--text); }

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

/* ---- background decoration ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(28,43,122,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,43,122,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: .55; pointer-events: none;
}
.bg-glow--1 { width: 540px; height: 540px; top: -180px; left: -140px;
  background: radial-gradient(circle, #aab9ff 0%, transparent 70%); }
.bg-glow--2 { width: 620px; height: 620px; top: 26%; right: -220px;
  background: radial-gradient(circle, #b9eef2 0%, transparent 70%); opacity: .5; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 254, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy);
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { font-size: 1.2rem; color: var(--navy); }
.brand__text span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 8px 20px rgba(91,110,245,.32);
}
.nav__cta:hover { filter: brightness(1.04); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 12px 26px rgba(91,110,245,.34); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(91,110,245,.46); }
.btn--ghost { color: var(--navy); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- hero ---- */
.hero { padding: clamp(48px, 9vw, 110px) 0 70px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted);
  padding: 7px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.06; margin: 22px 0 18px; font-weight: 700; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 38px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat strong { display: block; font-family: 'Space Grotesk'; font-size: 1.9rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }

/* hero visual */
.hero__visual { position: relative; height: 420px; }
.orb {
  position: absolute; inset: 10% 14%; border-radius: 50%;
  background: conic-gradient(from 90deg, #aab9ff, #b9eef2, #d8cffb, #aab9ff);
  filter: blur(8px); opacity: .55; animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.glass-card {
  position: absolute; background: rgba(255,255,255,.82); border: 1px solid var(--border);
  border-radius: 16px; backdrop-filter: blur(10px); box-shadow: var(--shadow); padding: 18px;
  animation: float 6s ease-in-out infinite;
}
.glass-card--a { top: 30px; left: 0; width: 230px; }
.glass-card--b { top: 0; right: 6px; width: 150px; text-align: center; animation-delay: -2s; }
.glass-card--c { bottom: 16px; right: 30px; width: 175px; animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.gc__row { display: flex; gap: 6px; margin-bottom: 14px; }
.gc__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.gc__dot:first-child { background: #ff8a80; } .gc__dot:nth-child(2){ background: #ffd27a; } .gc__dot:nth-child(3){ background: #7ed99b; }
.gc__bar { height: 9px; border-radius: 6px; margin: 9px 0; width: var(--w);
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.gc__chip { margin-top: 14px; font-size: .78rem; color: var(--brand-2); font-weight: 600; }
.gc__label { font-size: .8rem; color: var(--muted); }
.gc__big { display: block; font-family: 'Space Grotesk'; font-size: 1.9rem; margin-top: 4px; color: var(--navy); }
.gc__spark { height: 30px; margin-top: 8px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--brand-2) 0 2px, transparent 2px 9px);
  opacity: .6; mask: linear-gradient(180deg, transparent, #000); }

/* ---- trust strip ---- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  padding: 22px 0; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.strip__inner i { color: var(--brand); font-style: normal; }

/* ---- sections ---- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 12px 0 14px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ---- grid + cards ---- */
.grid { display: grid; gap: 22px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6e0f6; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #e9edff, #e2f6f8); border: 1px solid var(--border); }
.card__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---- why us ---- */
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 26px 0 32px; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; color: var(--muted); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%; font-size: .75rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__num { font-family: 'Space Grotesk'; font-size: 1.4rem; color: var(--brand); font-weight: 700; }
.feature h4 { margin: 10px 0 6px; font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---- industries tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tag { padding: 12px 24px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 500; font-size: 1.02rem; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, color .2s; }
.tag:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }

/* ---- testimonial ---- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow); }
.quote__mark { font-family: 'Space Grotesk'; font-size: 4.5rem; line-height: 1; color: var(--brand); opacity: .35; }
.quote blockquote { font-size: clamp(1.25rem, 3vw, 1.7rem); font-family: 'Space Grotesk'; margin: -8px 0 28px; color: var(--text); }
.quote figcaption { display: inline-flex; align-items: center; gap: 14px; }
.quote__avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3)); }
.quote__who { display: flex; flex-direction: column; text-align: left; color: var(--muted); font-size: .92rem; }
.quote__who strong { color: var(--text); font-size: 1.05rem; }

/* ---- selected work ---- */
.grid--work { grid-template-columns: repeat(3, 1fr); }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.project::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6e0f6; }
.project:hover::after { transform: scaleX(1); }
.project__logo { height: 56px; display: flex; align-items: center; margin-bottom: 18px; }
.project__logo img { max-height: 52px; max-width: 160px; width: auto; object-fit: contain; }
.project__wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project h3 { font-size: 1.22rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project__tag { font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: #eef1ff; border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.project p { color: var(--muted); font-size: .97rem; }
.brands { margin-top: 44px; text-align: center; }
.brands__label { display: block; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.brands__row { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 14px 26px; box-shadow: var(--shadow-sm); }
.brands__row img { height: 30px; width: auto; opacity: .78; }
.brands__note { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* ---- projects grid ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d6e0f6; }
.project__logo {
  height: 96px; border-radius: 14px; background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; padding: 18px 22px; margin-bottom: 18px;
}
.project__logo--dark { background: #131a33; border-color: #131a33; }
.project__logo img { max-height: 56px; max-width: 170px; width: auto; object-fit: contain; }
.project__logo .client__wordmark { font-size: 1.9rem; }
.project h3 { font-size: 1.18rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project__subtitle { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); margin-top: -4px; margin-bottom: 12px; }
.project__role { font-family: 'Inter', sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 4px 9px; border-radius: 999px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ptag { font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--brand);
  background: #eef1ff; border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.project p { color: var(--muted); font-size: .95rem; margin-top: auto; }
.project__powered { margin-top: 12px !important; font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #eef1ff; border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.project__powered::before { content: "⚡"; font-size: .82rem; }
.client__wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.client__wordmark-dim { -webkit-text-fill-color: var(--muted); opacity: .85; }
.clients__note { text-align: center; color: var(--muted); margin-top: 34px; font-size: 1rem; }

/* ---- founder ---- */
.founder__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.founder__photo { position: relative; }
.founder__photo img { width: 100%; max-width: 380px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); }
.founder__photo::before { content: ""; position: absolute; inset: -14px -14px 20px 20px; z-index: -1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .18; }
.founder__role { color: var(--brand); font-weight: 600; margin: -4px 0 16px; }
.founder__badges { margin-top: 18px; color: var(--text); font-size: 1rem; }
.founder__badges strong { color: var(--brand); }

/* ---- about ---- */
.about__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.about .btn { margin-top: 26px; }

/* ---- contact ---- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.ci__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--brand); font-weight: 500; }
.contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; color: var(--muted); }
.field input, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,110,245,.18); background: #fff; }
.form__note { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 20px; }
.form__note.ok { color: #1aa34a; } .form__note.err { color: #e0483a; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-2); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted); font-size: .9rem; }

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

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; }
  .why__inner, .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .grid--services { grid-template-columns: 1fr 1fr; }
  .grid--work { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .founder__inner { grid-template-columns: 1fr; gap: 32px; }
  .founder__photo { max-width: 320px; margin: 0 auto; }
  .nav__links {
    position: fixed; top: 74px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s; padding: 12px 24px 24px;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 10px; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2){ opacity: 0; }
  .nav__toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--services, .why__cards, .field-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}

/* ---- Accessibility widget: bottom-left, vertically centered with the chat button (bottom-right) ---- */
body {
  --_access-icon-top: unset;
  --_access-icon-bottom: 24px;
  --_access-icon-left: 20px;
  --_access-icon-right: unset;
}
@media (max-width: 560px) {
  body {
    --_access-icon-bottom: 24px;
    --_access-icon-left: 16px;
  }
}
