/* ==========================================================================
   UniversalAI.Tech — design system
   Indigo→cyan, Plus Jakarta Sans + Inter, light body / dark hero & footer.
   ========================================================================== */

:root {
  /* color */
  --ink: #0b1020;
  --ink-soft: #283149;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --bg-soft-2: #eef0f8;
  --bg-dark: #080b1a;
  --bg-dark-2: #0d1230;
  --brand: #6d5af6;
  --brand-2: #4f46e5;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --muted: #5b6478;
  --muted-dark: #97a3c4;
  --line: #e6e8f2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(120deg, #7c6cff 0%, #6d5af6 38%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 108, 255, 0.14), rgba(34, 211, 238, 0.14));
  --success: #22c55e;

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06), 0 4px 14px rgba(11, 16, 32, 0.06);
  --shadow: 0 10px 30px rgba(11, 16, 32, 0.08), 0 2px 8px rgba(11, 16, 32, 0.05);
  --shadow-lg: 0 30px 70px rgba(11, 16, 32, 0.16);
  --shadow-brand: 0 18px 40px rgba(109, 90, 246, 0.35);

  /* type */
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gut: clamp(1.1rem, 4vw, 2rem);
}

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--muted-dark); }
.grid { display: grid; gap: clamp(1.2rem, 2.6vw, 2rem); }
.center { text-align: center; }

/* ---------- shared text bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.section--dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 0.9rem; font-size: 1.12rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --pad: 0.95rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: var(--pad); border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(109, 90, 246, 0.45); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cfd4e6; box-shadow: var(--shadow); }
.btn-outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn-lg { --pad: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.text-link svg { transition: transform 0.18s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11, 16, 32, 0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-brand); flex: none; }
.brand__mark svg { width: 20px; height: 20px; }
.brand b { font-weight: 800; }
.brand span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-weight: 500; color: var(--ink-soft); font-size: 0.98rem; transition: color 0.15s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 0.9rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: 0.25s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 15% 0%, rgba(109, 90, 246, 0.4), transparent 60%),
    radial-gradient(55% 55% at 90% 20%, rgba(34, 211, 238, 0.3), transparent 60%),
    var(--bg-dark);
}
.hero__img { position: absolute; inset: 0; z-index: -3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 26, 0.2), rgba(8, 11, 26, 0.85)); }
.hero__inner { padding-block: clamp(4.5rem, 11vw, 8rem); max-width: 820px; }
.hero h1 { color: #fff; }
.hero p { color: #c7cfe6; font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 1.4rem; max-width: 620px; }
.hero__actions { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats { margin-top: 3.4rem; display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.4rem); }
.hero__stats .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stats .lbl { color: var(--muted-dark); font-size: 0.92rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem; font-weight: 600; color: #dfe5f5; backdrop-filter: blur(6px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }

/* ---------- logos / trust ---------- */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.4rem); opacity: 0.75; }
.trust span { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------- feature cards ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8dcec; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1rem; }

/* ---------- solution rows (image + text) ---------- */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.solution + .solution { margin-top: clamp(3.5rem, 7vw, 6rem); }
.solution.reverse .solution__media { order: 2; }
.solution__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.solution__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.solution__media:hover img { transform: scale(1.04); }
.solution__media .tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(8, 11, 26, 0.72); color: #fff; font-size: 0.82rem; font-weight: 600; backdrop-filter: blur(6px);
  display: inline-flex; gap: 0.45rem; align-items: center;
}
.solution__body .eyebrow { margin-bottom: 0.9rem; }
.solution__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.solution__body p { margin-top: 0.9rem; }
.checks { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }

/* ---------- stat band ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; gap: 2rem; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { color: var(--muted); margin-top: 0.3rem; font-weight: 500; }
.section--dark .stat .lbl { color: var(--muted-dark); }

/* ---------- process steps ---------- */
.steps { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 1.8rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 1.1rem; box-shadow: var(--shadow-brand); }
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 1rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { padding: 0.5rem 1rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.section--dark .chip { background: rgba(255, 255, 255, 0.06); border-color: var(--line-dark); color: #dbe2f4; }

/* ---------- quote / testimonial ---------- */
.quote { max-width: 860px; margin-inline: auto; text-align: center; }
.quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: #fff; letter-spacing: -0.02em; }
.quote .who { margin-top: 1.6rem; color: var(--muted-dark); font-weight: 500; }
.quote .who b { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2.6rem, 6vw, 4.4rem); background: var(--bg-dark-2); color: #fff; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0.25; background-image: var(--_bg, none); background-size: cover; background-position: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(109, 90, 246, 0.55), rgba(34, 211, 238, 0.35)); }
.cta-band h2 { color: #fff; max-width: 660px; }
.cta-band p { color: #e6ebf7; margin-top: 0.9rem; max-width: 560px; }
.cta-band .hero__actions { margin-top: 2rem; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.col-2 { grid-column: span 2; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 90, 246, 0.14); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
.field .err { font-size: 0.8rem; color: #ef4444; display: none; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .tick svg { width: 32px; height: 32px; }
.is-submitting { opacity: 0.6; pointer-events: none; }

/* ---------- info tiles (contact) ---------- */
.info-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.info-tile .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); }
.info-tile h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 0.15rem; }
.info-tile p, .info-tile a { color: var(--ink-soft); font-size: 0.98rem; }
.info-tile a:hover { color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.25rem 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__q .ic { flex: none; transition: transform 0.25s; color: var(--brand); }
.faq__item.open .faq__q .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding: 0 1.4rem 1.3rem; font-size: 1rem; }

/* ---------- footer ---------- */
.footer { background: var(--bg-dark); color: #fff; padding-block: clamp(3.4rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer__top p { color: var(--muted-dark); max-width: 320px; font-size: 0.98rem; }
.footer h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1rem; }
.footer__col a { display: block; color: #cdd5ea; padding: 0.32rem 0; font-size: 0.97rem; transition: color 0.15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted-dark); font-size: 0.88rem; }
.footer__bottom a { color: var(--muted-dark); }
.footer__bottom a:hover { color: #fff; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-dark); color: #cdd5ea; transition: 0.18s; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- page header (interior pages) ---------- */
.page-hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 80% 0%, rgba(34, 211, 238, 0.28), transparent 60%), radial-gradient(55% 60% at 0% 10%, rgba(109, 90, 246, 0.38), transparent 60%), var(--bg-dark); }
.page-hero__inner { padding-block: clamp(3.6rem, 8vw, 6rem); max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7cfe6; font-size: 1.18rem; margin-top: 1.1rem; max-width: 600px; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; color: var(--muted-dark); font-size: 0.9rem; margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: #fff; }

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

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .solution, .solution.reverse { grid-template-columns: 1fr; }
  .solution.reverse .solution__media { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem var(--gut) 1.2rem; box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav__cta .btn { display: inline-flex; margin-top: 0.8rem; }
  .nav.open .nav__cta { position: absolute; top: calc(74px + 1px); left: 0; right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.col-2 { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.6rem 2.2rem; }
}
