/* =====================================================
   Slay Technology — Global Stylesheet
   Modern, bold, dark theme with electric violet + cyan
   ===================================================== */

:root {
  --bg: #0B1020;
  --bg-elev: #11172E;
  --bg-card: #161D3A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --primary: #7C3AED;
  --primary-hover: #8B5CF6;
  --accent: #06B6D4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --primary-glow: rgba(124, 58, 237, 0.45);
  --success: #10B981;
  --danger: #EF4444;
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1180px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(6, 182, 212, 0.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--primary-hover); }

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

/* ==== Navigation ==== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px var(--primary-glow);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--primary-glow);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==== Hero ==== */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  background: linear-gradient(180deg, #FFFFFF, #B4B8E0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary-hover), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.4), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.3), transparent 60%),
    linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ==== Trust strip ==== */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.7;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==== Sections ==== */
.section {
  padding: 100px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.section h2 {
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==== Service grid ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 {
  color: var(--text);
  margin-bottom: 12px;
}
.card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card ul li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ==== Value props (alternating) ==== */
.valueprop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.valueprop.reverse .valueprop-text { order: 2; }
.valueprop-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.2), transparent 60%),
    var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.valueprop h2 { margin-bottom: 16px; }

@media (max-width: 900px) {
  .valueprop { grid-template-columns: 1fr; gap: 30px; }
  .valueprop.reverse .valueprop-text { order: 0; }
}

/* ==== CTA section ==== */
.cta-band {
  margin: 40px auto;
  max-width: var(--max-w);
  padding: 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.3), transparent 50%),
    linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 1.1rem; margin-bottom: 28px; }

@media (max-width: 700px) {
  .cta-band { padding: 40px 24px; margin: 24px; }
}

/* ==== Stats ==== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-hover), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ==== Form ==== */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input,
.field textarea,
.field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-status {
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* ==== Contact split layout ==== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info { padding-top: 8px; }
.contact-info .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info .item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-info .item-text strong {
  color: var(--text);
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.contact-info .item-text span,
.contact-info .item-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==== Footer ==== */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 80px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ==== Page hero (smaller, used on inner pages) ==== */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero h1 {
  background: linear-gradient(180deg, #FFFFFF, #B4B8E0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.page-hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==== Decorative network animation in hero visual ==== */
.network-svg {
  width: 90%;
  height: 90%;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}
.network-svg circle.node {
  animation: pulse 3s ease-in-out infinite;
}
.network-svg circle.node:nth-child(2) { animation-delay: 0.5s; }
.network-svg circle.node:nth-child(3) { animation-delay: 1s; }
.network-svg circle.node:nth-child(4) { animation-delay: 1.5s; }
.network-svg circle.node:nth-child(5) { animation-delay: 2s; }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ==== Process timeline (about page) ==== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.timeline-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 8px 24px -6px var(--primary-glow);
}
.timeline-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 6px;
}
.timeline-step p { font-size: 0.9rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { display: none; }
}
