/* ============================================================
   AA Code Innovations — Modern Web & SaaS Design System
   ============================================================ */

:root {
  --navy: #071a3d;
  --navy-dark: #041026;
  --navy-surface: #0b2349;
  --blue: #0b6ad7;
  --blue-hover: #0952a8;
  --cyan: #19cde0;
  --cyan-glow: rgba(25, 205, 224, 0.28);
  --ink: #0a1830;
  --text: #33435d;
  --muted: #637087;
  --line: #dce4ef;
  --bg: #f5f8fc;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 4px 12px rgba(8, 29, 65, 0.05);
  --shadow: 0 18px 45px rgba(8, 29, 65, 0.08);
  --shadow-lg: 0 24px 70px rgba(8, 29, 65, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: #b9c8de;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: #d2e1f5;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--cyan);
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 228, 239, 0.85);
  transition: var(--transition);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #33435d;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue) !important;
  font-weight: 700;
  font-size: 13.5px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-portal-btn:hover {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #0d2f6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(7, 26, 61, 0.25);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #05142f 0%, #082452 50%, #05365c 100%);
  color: #fff;
  min-height: 740px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  right: -200px;
  top: -180px;
  background: radial-gradient(circle, rgba(25, 205, 224, 0.24), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, #000 30%, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #8edfea;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.eyebrow.dark {
  color: #48617e;
}

.hero h1 {
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin: 22px 0 24px;
  max-width: 950px;
  font-weight: 800;
}

.hero h1 em,
.platform-section h2 em,
.ai-section h2 em,
.about-section h2 em {
  font-style: normal;
  color: #25d1df;
  background: linear-gradient(90deg, #25d1df, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 720px;
  font-size: 18.5px;
  color: #c1cee0;
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: linear-gradient(90deg, #0b6ad7, #11bfd5);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 150, 220, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 150, 220, 0.38);
  color: #fff;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.btn-light:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.btn-outline-primary:hover {
  background: var(--blue);
  color: #fff;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 880px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 65px;
  padding-top: 28px;
  gap: 32px;
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-proof strong {
  font-size: 14.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-proof strong i {
  color: var(--cyan);
}

.hero-proof span {
  font-size: 12px;
  color: #92a6c2;
  line-height: 1.45;
}

/* ─── LOGO STRIP ─────────────────────────────────────────── */
.logo-strip {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.logo-strip-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-strip-inner > span {
  font-size: 11.5px;
  color: #758399;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  white-space: nowrap;
}

.techs {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  color: #556780;
}

.techs b {
  font-size: 14px;
  font-weight: 650;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

/* ─── SECTIONS COMMON ─────────────────────────────────────── */
.section {
  padding: 110px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.section-head h2,
.services h2 {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section-head > p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  max-width: 480px;
}

/* ─── SOLUTIONS GRID ──────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.solution-card {
  position: relative;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 320px;
  transition: var(--transition);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border-color: #bfdbfe;
}

.solution-card.featured {
  background: linear-gradient(150deg, #eff7ff, #ffffff);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eef6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 30px;
}

.solution-card.featured .card-icon {
  background: var(--blue);
  color: #fff;
}

.card-number {
  position: absolute;
  top: 30px;
  right: 25px;
  font-size: 11px;
  color: #9aa9bc;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.solution-card h3 {
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.solution-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.solution-card a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-card a:hover {
  gap: 10px;
}

/* ─── PLATFORM ARCHITECTURE SECTION ──────────────────────── */
.platform-section {
  background: var(--navy);
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
  position: relative;
}

.platform-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.platform-section h2,
.ai-section h2 {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 18px 0;
  font-weight: 800;
}

.platform-section p,
.ai-section p {
  color: #aebed4;
  max-width: 540px;
  font-size: 16.5px;
}

.platform-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
}

.text-link {
  font-size: 14px;
  font-weight: 750;
  color: #8edfea;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  color: #fff;
  gap: 10px;
}

.ecosystem {
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-center {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0d4f9f, #12bdd3);
  box-shadow: 0 0 80px rgba(21, 205, 224, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
}

.ecosystem-center small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c9faff;
  font-weight: 700;
}

.ecosystem-center strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 800;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(100, 170, 220, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: rotateOrbit 60s linear infinite;
}

.orbit span {
  background: #0c2852;
  border: 1px solid rgba(110, 183, 228, 0.35);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #d8e8f8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.orbit-a {
  width: 310px;
  height: 310px;
}

.orbit-b {
  width: 420px;
  height: 420px;
  transform: rotate(35deg);
  animation-duration: 80s;
  animation-direction: reverse;
}

.orbit-c {
  width: 530px;
  height: 530px;
  transform: rotate(-25deg);
  animation-duration: 100s;
}

@keyframes rotateOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── PRODUCT ECOSYSTEM ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  min-height: 340px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  border-color: #a8c8ec;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: #eff6ff;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
}

.product-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: #f8fafc;
  color: var(--navy);
  border: 1px solid var(--line);
}

.product-card h3 {
  font-size: 26px;
  margin: 6px 0 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.flow {
  font-size: 11px;
  color: var(--blue);
  font-weight: 750;
  margin: 18px 0 16px;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.launch-module-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.launch-module-btn:hover {
  color: var(--navy);
  gap: 9px;
}

/* ─── AI & AUTOMATION SECTION ────────────────────────────── */
.ai-section {
  background: #071a3d;
  color: #fff;
  padding: 125px 0;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.ai-list {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-list div {
  display: flex;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #9fb0c7;
}

.ai-list b {
  color: #24d1df;
  font-size: 15px;
}

.ai-list strong {
  color: #fff;
}

.ai-console {
  background: #0b2349;
  border: 1px solid rgba(137, 184, 226, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.console-top {
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #7590b2;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.console-top span:last-child {
  margin-left: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52708f;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.console-body {
  padding: 32px;
}

.console-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #5bd5e2;
  font-weight: 800;
}

.console-body h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 16px 0 28px;
  font-weight: 700;
}

.ai-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-result .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d1df;
  box-shadow: 0 0 14px #25d1df;
  flex-shrink: 0;
}

.ai-result div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ai-result b {
  font-size: 13.5px;
  color: #fff;
}

.ai-result small {
  font-size: 11px;
  color: #758ca9;
}

.ai-result > strong {
  color: #20cbd9;
  font-size: 16px;
}

/* ─── SERVICES SECTION ───────────────────────────────────── */
.services {
  background: #f8fbff;
}

.services h2 {
  margin-bottom: 48px;
}

.service-list {
  border-top: 1px solid #cad6e4;
}

.service-list > div {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.8fr;
  align-items: center;
  min-height: 105px;
  border-bottom: 1px solid #cad6e4;
  padding: 15px 0;
}

.service-list span {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.service-list h3 {
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.service-list p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ─── ABOUT SECTION ──────────────────────────────────────── */
.about-section {
  padding: 120px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.about-mark {
  font-size: 85px;
  font-weight: 950;
  letter-spacing: -0.07em;
  color: #dfeaf6;
  line-height: 0.85;
}

.about-mark span {
  display: block;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin: 22px 0 0 8px;
}

.about-section h2 {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 16px 0 22px;
  font-weight: 800;
}

.about-section p {
  color: var(--muted);
  max-width: 700px;
  font-size: 15.5px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 36px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-size: 26px;
  color: var(--blue);
  font-weight: 800;
}

.about-stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #73839a;
  font-weight: 700;
  margin-top: 4px;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(110deg, #0a56ad, #0a9bb9);
  color: #fff;
  padding: 85px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.cta-section h2 {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 14px 0;
  font-weight: 800;
}

.cta-section p {
  color: #d1eff5;
  max-width: 580px;
  font-size: 16.5px;
  margin: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #04132e;
  color: #fff;
  padding: 75px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  display: block;
  color: #8fa2be;
  font-size: 13px;
}

.footer-grid p {
  line-height: 1.7;
}

.footer-grid h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #dce8f7;
  margin: 4px 0 18px;
  font-weight: 750;
}

.footer-grid a {
  margin: 0 0 10px;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #637a98;
  font-size: 11.5px;
}

/* ─── AUTH MODAL (STANDALONE & EMBEDDED) ─────────────────── */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 61, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.auth-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(220, 228, 239, 0.9);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.auth-modal-header {
  padding: 24px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.auth-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.auth-modal-title img {
  height: 28px;
  width: auto;
}

.auth-modal-close {
  background: #f1f5f9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.auth-modal-body {
  padding: 24px 28px 28px;
}

/* Tabs */
.modal-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  gap: 4px;
}

.modal-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Quick Demo Pills */
.demo-pills-box {
  background: #f8fbff;
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.demo-pills-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-pills-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}

.demo-chip:hover {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}

/* Form inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: var(--transition);
}

.form-input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 106, 215, 0.15);
}

.modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
  display: none;
}

.modal-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.modal-alert.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.modal-alert.info {
  display: block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────── */
@media (max-width: 992px) {
  .nav-links {
    gap: 16px;
  }
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head,
  .platform-layout,
  .ai-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ecosystem {
    margin-top: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .hero {
    min-height: 660px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1200px);
  }
  .topbar {
    display: none;
  }
  .nav {
    height: 70px;
  }
  .brand img {
    height: 38px;
  }
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 12px;
  }
  .hero-content {
    padding: 80px 0 70px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-proof {
    grid-template-columns: 1fr;
    margin-top: 45px;
    gap: 16px;
  }
  .logo-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
    gap: 12px;
  }
  .techs {
    gap: 12px;
  }
  .section,
  .about-section,
  .ai-section,
  .platform-section {
    padding: 75px 0;
  }
  .section-head h2,
  .services h2 {
    font-size: 36px;
  }
  .solution-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .platform-section h2,
  .ai-section h2,
  .about-section h2,
  .cta-section h2 {
    font-size: 38px;
  }
  .ecosystem {
    height: 380px;
    transform: scale(0.75);
    margin: -20px -70px;
  }
  .service-list > div {
    grid-template-columns: 45px 1fr;
    gap: 10px;
    padding: 16px 0;
  }
  .service-list p {
    grid-column: 2;
  }
  .about-layout {
    gap: 45px;
  }
  .about-mark {
    font-size: 60px;
  }
  .about-stats {
    gap: 25px;
    flex-wrap: wrap;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
