/* =====================================================================
   IPX Systems — styles.css
   Deep navy + electric blue SaaS palette.
   Adapt variables in :root to re-skin the whole site.
   ===================================================================== */

:root {
  /* Brand */
  --blue:        #2563eb;
  --blue-bright: #3b82f6;
  --blue-glow:   rgba(59, 130, 246, 0.22);
  --blue-dim:    rgba(59, 130, 246, 0.12);

  /* Neutrals — dark theme default */
  --ink:        #0b1120;
  --ink-2:      #080e1a;
  --surface:    #111827;
  --surface-2:  #1a2234;
  --line:       #1e2a3e;
  --line-2:     #243048;

  --text:       #f0f4ff;
  --muted:      #94a3b8;
  --muted-dark: #4b5a72;

  /* Type */
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    14px;
  --radius-sm:  9px;
  --header-h:  72px;

  --shadow:      0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-blue: 0 14px 40px -12px rgba(37, 99, 235, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Light theme ----------------------------- */
html.light-theme {
  --ink:        #f8faff;
  --ink-2:      #f0f4fc;
  --surface:    #eef2fb;
  --surface-2:  #e4eaf5;
  --line:       #d0d9ef;
  --line-2:     #c0ccdf;
  --text:       #0a0f1e;
  --muted:      #1e293b;
  --muted-dark: #475569;
  --shadow:      0 20px 60px -20px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 14px 40px -12px rgba(37, 99, 235, 0.2);
}

html.light-theme .hero-eyebrow { color: var(--blue-bright); }
html.light-theme .hero-title   { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
html.light-theme .hero-sub     { color: rgba(255,255,255,.88); }
html.light-theme .hero-badges  { color: rgba(255,255,255,.75); }
html.light-theme .site-header.scrolled { background: rgba(248,250,255,.95); }
html.light-theme .site-header.scrolled .nav-link { color: var(--text); }
html.light-theme .feature-icon { background: var(--blue-dim); }
html.light-theme .contact-ico  { background: var(--blue-dim); }
html.light-theme .cta-band     { background: linear-gradient(135deg, #0d1f5c 0%, #0b1a42 100%); }
html.light-theme .slide-copy   { background: var(--surface); }
html.light-theme .theme-toggle { background: rgba(0,0,0,.06); }

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
ul, ol { list-style: none; padding: 0; }

/* ----------------------------- Accessibility --------------------------- */
.skip-link {
  position: absolute; top: -40px; left: 8px; padding: 6px 12px;
  background: var(--blue); color: #fff; border-radius: 4px; font-size: .85rem;
  transition: top .2s; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* ----------------------------- Layout ---------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }

.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-bright); margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}

.section-lead {
  font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.7;
}

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s;
  text-decoration: none; line-height: 1.3;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); color: #fff; }

.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); color: #fff; }

.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ----------------------------- Header ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(11, 17, 32, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 51px; height: 51px; border-radius: 10px;
  background: #0d1526;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.brand-logo-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.brand-name {
  font-size: 1.9rem; font-weight: 700; color: var(--text);
}

.nav { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 12px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8);
  border-radius: var(--radius-sm); transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,.08);
}

.header-cta  { margin-left: 8px; }
.nav-cta-mobile { display: none; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--blue-dim); color: var(--blue-bright); }

.theme-icon-dark  { display: none; }
.theme-icon-light { display: block; }
html.light-theme .theme-icon-dark  { display: block; }
html.light-theme .theme-icon-light { display: none; }

/* ----------------------------- Hero ------------------------------------ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, .88) 0%,
    rgba(11, 17, 32, .72) 50%,
    rgba(37, 99, 235, .22) 100%
  );
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content { max-width: none; }

.hero-visual { position: relative; }

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -32px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.2) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.hero-visual-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 72px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07);
  background: var(--surface-2);
  aspect-ratio: 4/3;
}

.hero-visual-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-eyebrow {
  font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,.82);
  max-width: 580px; line-height: 1.75; margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: .85rem; color: rgba(255,255,255,.7);
}
.hero-badges li {
  display: flex; align-items: center; gap: 7px;
}
.hero-badges svg { color: var(--blue-bright); flex-shrink: 0; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-cue span {
  display: block; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.3);
  border-radius: 11px; position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 6px;
  transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,.6);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;  transform: translateX(-50%) translateY(4px); }
}

/* ----------------------------- Reveal animation ------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--d, 0) * 100ms); }
.hero [data-reveal="1"] { --d: 1; }
.hero [data-reveal="2"] { --d: 2; }
.hero [data-reveal="3"] { --d: 3; }
.hero [data-reveal="4"] { --d: 4; }
.hero [data-reveal="5"] { --d: 5; }
.hero.loaded .reveal   { opacity: 1; transform: none; }

/* ----------------------------- Features -------------------------------- */
.features { background: var(--surface); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.feature-card:hover {
  border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-blue);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--blue-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--blue-bright); }

.feature-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text);
}
.feature-card p { font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* ----------------------------- Showcase / Slideshow -------------------- */
.showcase { background: var(--ink-2); }

.slideshow {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
}

.slides {
  position: relative;
  height: 460px;
}

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: stretch;
  opacity: 0; transition: opacity .8s var(--ease);
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }

.slide-media {
  flex: 0 0 58%;
  overflow: hidden; background: var(--ink-2);
}
.slide-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.slide-copy {
  flex: 1;
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.slide-copy h3 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px; line-height: 1.3;
}
.slide-copy p {
  font-size: .97rem; color: var(--muted); line-height: 1.75;
}

/* Slide nav buttons */
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  background: rgba(11, 17, 32, .55); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
  cursor: pointer;
}
.slide-btn:hover { background: var(--blue); transform: translateY(-50%) scale(1.08); }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }

/* Dots — live outside the overflow:hidden slideshow in .slideshow-wrap */
.slideshow-wrap { position: relative; margin-bottom: 32px; }
.slideshow { margin-bottom: 0; }

.slide-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 20px;
}
.slide-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2); border: none; cursor: pointer;
  transition: background .25s, transform .25s;
}
.slide-dots button.is-active { background: var(--blue); transform: scale(1.3); }

/* ----------------------------- Mobile slideshow ------------------------ */
@media (max-width: 768px) {
  .slides { height: auto; min-height: 400px; }
  .slide {
    position: relative; display: none; flex-direction: column;
    opacity: 1; pointer-events: auto;
  }
  .slide.is-active { display: flex; }
  .slide-media { flex: none; height: 220px; }
  .slide-copy { padding: 28px 24px; border-left: none; border-top: 1px solid var(--line); }
  .slide-btn { display: none; }
  .slide-dots { margin-top: 16px; }
}

/* ----------------------------- About / Value --------------------------- */
.about { background: var(--surface); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-media { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3; object-fit: cover;
}

.about-copy .kicker { display: block; }
.about-copy > p {
  color: var(--muted); line-height: 1.75; margin-bottom: 16px; font-size: .98rem;
}

.value-points { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.value-points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; color: var(--muted); line-height: 1.5;
}
.value-points li svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--blue-bright);
}

/* ----------------------------- CTA Band -------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, #0d1f5c 0%, #0f2352 50%, #0b1a42 100%);
  padding: 80px 0;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 10, 22, .72) 100%);
  pointer-events: none;
}

.cta-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 620px; margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 16px;
}
.cta-inner p {
  font-size: 1.05rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 32px;
}
.cta-band .btn-primary {
  background: #fff; color: var(--blue);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.cta-band .btn-primary:hover {
  background: #f0f4ff; color: var(--blue); transform: translateY(-2px);
}

/* ----------------------------- Contact --------------------------------- */
.contact { background: var(--ink); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

.contact-info {}
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }

.contact-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-dim); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-ico svg { color: var(--blue-bright); }

.contact-label {
  display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 4px;
}
.contact-list a { color: var(--text); font-size: .97rem; }
.contact-list a:hover { color: var(--blue-bright); }
.contact-list span { color: var(--text); font-size: .97rem; }

.contact-tagline {
  border-top: 1px solid var(--line); padding-top: 24px;
}
.contact-tagline p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* Form */
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--muted);
  margin-bottom: 7px; letter-spacing: .02em;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
textarea { min-height: 120px; resize: vertical; }

select option { background: var(--surface-2); }

.form-note {
  text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px;
}
.form-status { text-align: center; font-size: .88rem; min-height: 20px; margin-top: 6px; }

/* ----------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 7px;
  background: #0d1526;
  overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.07);
}
.footer-brand-name { font-weight: 700; font-size: 1.24rem; color: var(--text); }
.footer-brand p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }

.site-footer h4 {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 14px;
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: .9rem; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact span { font-size: .9rem; color: var(--muted); }
.footer-contact a:hover { color: var(--blue-bright); }

.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--muted-dark);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-bottom a { color: var(--muted-dark); }
.footer-bottom a:hover { color: var(--muted); }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-visual-frame { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .nav-menu {
    position: fixed; inset: 0; top: var(--header-h);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 28px 24px; gap: 6px;
    background: var(--ink); z-index: 99;
    transform: translateX(100%); transition: transform .3s var(--ease);
  }
  .nav-menu.open { transform: none; }
  .nav-link { font-size: 1.1rem; width: 100%; padding: 10px 14px; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 16px; }
  .nav-cta-mobile a { width: 100%; justify-content: center; }

  .hero-title { font-size: 2rem; }
  .hero-visual { max-width: 100%; }
}

@media (max-width: 500px) {
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
