/* ============================================================
   SWEG ENTERPRISE LLC — Design System
   Dark premium SaaS · Electric blue + purple accents
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #08090f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #0c0e15;
  --glass: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --muted: #9aa1b4;
  --dim: #6b7186;
  --blue: #2d7dff;
  --cyan: #00c8ff;
  --purple: #8b5cf6;
  --grad: linear-gradient(120deg, #2d7dff 0%, #00c8ff 100%);
  --grad-mix: linear-gradient(120deg, #8b5cf6 0%, #2d7dff 55%, #00c8ff 100%);
  --glow-blue: 0 0 40px rgba(45, 125, 255, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: rgba(45, 125, 255, 0.35); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
}

.grad-text {
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Ambient background ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: drift 16s var(--ease) infinite alternate;
}
.orb-blue { background: rgba(45, 125, 255, 0.28); }
.orb-purple { background: rgba(139, 92, 246, 0.24); animation-delay: -8s; }
.orb-cyan { background: rgba(0, 200, 255, 0.18); animation-delay: -4s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.12); }
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); line-height: 1.05; }
.logo-text b { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; display: block; }
.logo-text span { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14.5px; color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

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

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; position: relative;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }
.nav.open .hamburger span { background: transparent; }
.nav.open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(6, 7, 12, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px 26px;
}
.mobile-menu a {
  display: block; padding: 13px 4px; font-size: 16px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a.active { color: var(--text); }
.nav.open .mobile-menu { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 22px rgba(45, 125, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(45, 125, 255, 0.5); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.07); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 7px 15px; border-radius: 100px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(40px, 6.6vw, 74px);
  font-weight: 700;
  margin-bottom: 26px;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating UI cards */
.float-card {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  z-index: 1;
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.float-card .fc-value { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.float-card .fc-bar { margin-top: 10px; height: 5px; width: 130px; border-radius: 4px; background: rgba(255,255,255,0.09); overflow: hidden; }
.float-card .fc-bar i { display: block; height: 100%; width: 72%; border-radius: 4px; background: var(--grad); animation: fill 3.5s var(--ease) infinite alternate; }
@keyframes fill { from { width: 45%; } to { width: 86%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.fc-1 { top: 24%; right: 6%; animation-delay: 0s; }
.fc-2 { top: 52%; right: 16%; animation-delay: -2.4s; }
.fc-3 { top: 74%; right: 4%; animation-delay: -4.8s; }

/* ---------- Tech marquee / trust ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 42px 0; background: var(--bg-2); }
.trust-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.tech-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-pill {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--muted);
  padding: 10px 22px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.tech-pill:hover {
  color: var(--text); border-color: rgba(45, 125, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(45, 125, 255, 0.18);
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; position: relative; z-index: 1; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 125, 255, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(45, 125, 255, 0.35); box-shadow: 0 20px 46px rgba(0,0,0,0.5); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(45,125,255,0.16), rgba(139,92,246,0.16));
  border: 1px solid rgba(45, 125, 255, 0.25);
  margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.card.accent-purple .icon { background: linear-gradient(140deg, rgba(139,92,246,0.2), rgba(45,125,255,0.12)); border-color: rgba(139,92,246,0.3); }
.card.accent-purple .icon svg { stroke: var(--purple); }
.card.accent-purple:hover { border-color: rgba(139, 92, 246, 0.4); }

/* Product cards */
.product-card { padding: 0; }
.product-visual {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45,125,255,0.18), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(139,92,246,0.18), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.product-visual svg { width: 76px; height: 76px; }
.product-body { padding: 26px 28px 30px; }
.product-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--purple);
  display: inline-block; margin-bottom: 10px;
}

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; z-index: 1; }
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 4%; right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,125,255,0.5), rgba(139,92,246,0.5), transparent);
}
.step { text-align: center; padding-top: 0; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  position: relative; z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.step:hover .step-num { border-color: var(--blue); box-shadow: var(--glow-blue); color: var(--cyan); }
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--dim); line-height: 1.5; }

/* ---------- Feature list rows ---------- */
.feature-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-sm {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45,125,255,0.12);
  border: 1px solid rgba(45,125,255,0.25);
}
.feature-row .icon-sm svg { width: 18px; height: 18px; stroke: var(--cyan); }
.feature-row h4 { font-size: 16.5px; margin-bottom: 4px; }
.feature-row p { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ accordion ---------- */
.accordion { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.acc-item.open { border-color: rgba(45,125,255,0.4); }
.acc-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--text);
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600;
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.acc-q .chev { flex-shrink: 0; transition: transform 0.35s var(--ease); stroke: var(--muted); }
.acc-item.open .acc-q .chev { transform: rotate(180deg); stroke: var(--cyan); }
.acc-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.acc-a p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(45,125,255,0.16), transparent 65%),
    radial-gradient(ellipse 50% 100% at 80% 100%, rgba(139,92,246,0.14), transparent 60%),
    var(--surface-solid);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; position: relative; z-index: 1; }
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.contact-info p { color: var(--muted); margin-bottom: 28px; }
.email-chip {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(8px);
  padding: 16px 22px;
  font-family: var(--font-mono); font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.email-chip:hover { border-color: rgba(45,125,255,0.5); box-shadow: var(--glow-blue); }
.email-chip svg { stroke: var(--cyan); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--muted); font-family: var(--font-display); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa1b4' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,125,255,0.18);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 18px; max-width: 720px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; position: relative; z-index: 1; }
.about-cols h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 18px; }
.about-cols p { color: var(--muted); margin-bottom: 18px; }
.pillar {
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--blue), var(--purple)) 1;
  padding-left: 22px;
  margin-bottom: 30px;
}
.pillar h4 { font-size: 17px; margin-bottom: 6px; }
.pillar p { font-size: 15px; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 70px 0 34px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--dim); font-size: 13.5px;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .contact-grid, .about-cols { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 150px 0 90px; }
}

@media (max-width: 580px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .cta-band { padding: 50px 26px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 13.5px; }
}
