/* Jexte Unisolutions — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #050813;
  --bg-2: #080d1f;
  --surface: #0d1428;
  --surface-2: #131b35;
  --surface-3: #1a2444;
  --line: #1f2a4a;
  --line-2: #2a3760;
  --text: #eaf0ff;
  --text-2: #b8c2dd;
  --muted: #7a85a8;
  --dim: #4a567a;

  --brand: #3b82ff;
  --brand-2: #5cc6ff;
  --brand-3: #7c5cff;
  --brand-glow: rgba(80, 160, 255, 0.55);

  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --accent-purple: #a78bfa;

  --grad-brand: linear-gradient(135deg, #5cc6ff 0%, #3b82ff 45%, #7c5cff 100%);
  --grad-glow: radial-gradient(60% 80% at 50% 0%, rgba(60, 130, 255, 0.35), rgba(124, 92, 255, 0.08) 50%, transparent 80%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 32px -8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 30px 80px -20px rgba(60,130,255,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Background atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 600px at 12% -10%, rgba(60,130,255,0.18), transparent 60%),
    radial-gradient(900px 700px at 110% 20%, rgba(124,92,255,0.13), transparent 65%),
    radial-gradient(1200px 800px at 50% 120%, rgba(50,90,200,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
h4 { font-size: clamp(18px, 1.5vw, 22px); }
p { margin: 0; color: var(--text-2); }

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

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 12px;
  border: 1px solid rgba(92, 198, 255, 0.25);
  border-radius: 100px;
  background: rgba(60, 130, 255, 0.05);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2); }

.grad-text {
  background: linear-gradient(120deg, #ffffff 0%, #c8d8ff 35%, #5cc6ff 60%, #a78bfa 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { padding: 100px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: 0 8px 30px -8px rgba(60,130,255,0.7), 0 0 0 1px rgba(120,180,255,0.4) inset;
}
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(60,130,255,0.9), 0 0 0 1px rgba(120,180,255,0.6) inset; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(120, 180, 255, 0.4); }

.btn-quiet {
  background: transparent;
  color: var(--text-2);
  padding: 10px 12px;
}
.btn-quiet:hover { color: var(--text); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

.arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* NAVBAR */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(8, 12, 28, 0.6);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-brand .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-brand .name span { color: var(--brand-2); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 100px;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }
  .nav-cta .btn-call { display: none; }
}

/* MEGA MENU */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(1240px, calc(100vw - 32px));
  background: rgba(10, 16, 36, 0.92);
  backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
}
.has-mega { position: relative; }
.has-mega::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.open .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mega-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
}
.mega-item:hover { background: rgba(60,130,255,0.06); border-color: rgba(92, 198, 255, 0.2); }
.mega-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(92,198,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid rgba(92,198,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--brand-2);
}
.mega-body .name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.mega-body .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.mega-price { font-family: var(--font-mono); font-size: 11px; color: var(--brand-2); text-align: right; line-height: 1.3; }
.mega-price span { display: block; color: var(--muted); font-size: 10px; }
.mega-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.mega-footer a { color: var(--brand-2); }

@media (max-width: 980px) { .mega { display: none; } }

/* Cards & glass */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  position: relative;
}
.glass.hover { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.glass.hover:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 198, 255, 0.3);
  box-shadow: 0 30px 60px -20px rgba(60,130,255,0.3);
}

/* Reusable: pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.pill.brand { color: var(--brand-2); border-color: rgba(92,198,255,0.3); background: rgba(92,198,255,0.08); }
.pill.emerald { color: var(--accent-emerald); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.06); }
.pill.amber { color: var(--accent-amber); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.pill.purple { color: var(--accent-purple); border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.06); }
.pill.rose { color: var(--accent-rose); border-color: rgba(251,113,133,0.3); background: rgba(251,113,133,0.06); }

/* FOOTER */
footer.site {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(60,130,255,0.05) 100%);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand .name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.foot-brand .tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.05em; }
.foot-brand p { margin-top: 16px; font-size: 14px; max-width: 320px; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-2); }
.foot-col a:hover { color: var(--brand-2); }
.foot-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Sticky floating CTAs */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--grad-brand);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: white;
  box-shadow: 0 20px 50px -10px rgba(60,130,255,0.6), 0 0 0 1px rgba(120,180,255,0.4) inset;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.floating-cta:hover { transform: translateY(-2px) scale(1.02); }
.floating-cta .pulse {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.floating-cta .pulse::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5);
  animation: ringpulse 2s infinite;
}
@keyframes ringpulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

/* Hero shared */
.hero-pad { padding-top: 140px; }
@media (max-width: 720px) { .hero-pad { padding-top: 110px; } }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}
.faq-q .plus { font-size: 24px; color: var(--brand-2); transition: transform 0.25s; line-height: 1; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.25s;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 300px; margin-top: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-2);
  background: rgba(92,198,255,0.04);
}
.field textarea { resize: vertical; min-height: 100px; }

/* Mockup chrome */
.mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.mockup-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  gap: 6px;
}
.mockup-bar .dots { display: flex; gap: 5px; }
.mockup-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mockup-bar .url {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 100px;
}

/* Animations */
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fadeup { animation: fadeup 0.7s ease both; }
.delay-1 { animation-delay: 0.08s; } .delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; } .delay-4 { animation-delay: 0.32s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Utility */
.grid { display: grid; }
.flex { display: flex; }
.gap-1 { gap: 8px; } .gap-2 { gap: 12px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; } .gap-6 { gap: 32px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Two-col responsive grid */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
}

/* Tag for tech stack */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}
.chip svg { width: 14px; height: 14px; }
