/* SwiftyEx — Landing shared tokens & atoms */

:root {
  /* Brand */
  --brand: #5B46F6;
  --brand-2: #6824D3;
  --brand-soft: #9684E7;
  --brand-pale: #C3B9EF;
  --brand-tint: #B9A9FF;
  --accent: #1DD6B4;
  --warn: #F7931A;
  --down: #FF5A4A;
  --brand-grad: linear-gradient(135deg, #5B46F6 0%, #7B3CE0 100%);
  --hero-grad: radial-gradient(ellipse at top right, rgba(91,70,246,0.35), transparent 55%),
               radial-gradient(ellipse at bottom left,  rgba(29,214,180,0.18), transparent 55%);

  /* Radii */
  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 32px;  --pill: 999px;

  /* Type scale */
  --t-hero: clamp(40px, 7vw, 88px);
  --t-h1:   clamp(32px, 4.5vw, 56px);
  --t-h2:   clamp(24px, 3vw, 40px);
  --t-h3:   20px;
  --t-body: 16px;
  --t-sm:   14px;
  --t-xs:   12px;
}

[data-theme="dark"] {
  --bg:       #08070F;
  --bg-2:     #0F0D1B;
  --surface:  #16131F;
  --surface-2:#1F1B2D;
  --surface-3:#2A2540;
  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --text:     #FFFFFF;
  --text-2:   rgba(255,255,255,0.72);
  --text-3:   rgba(255,255,255,0.48);
  --link:     #B9A9FF;
  --pill-bg:  rgba(255,255,255,0.05);
  --nav-bg:   rgba(11,10,20,0.65);
}

[data-theme="light"] {
  --bg:       #FAFAFC;
  --bg-2:     #F2EFFA;
  --surface:  #FFFFFF;
  --surface-2:#F3F0FB;
  --surface-3:#E7E1F7;
  --border:   rgba(17,16,28,0.07);
  --border-2: rgba(17,16,28,0.14);
  --text:     #0E0B1F;
  --text-2:   rgba(14,11,31,0.7);
  --text-3:   rgba(14,11,31,0.5);
  --link:     #5B46F6;
  --pill-bg:  rgba(91,70,246,0.06);
  --nav-bg:   rgba(255,255,255,0.78);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;            /* safety net: never allow horizontal scroll */
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
input, textarea { min-width: 0; }   /* let inputs shrink inside flex rows */

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ───── Top Nav ───── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.3px;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 14px rgba(91,70,246,0.35);
}
.nav-links {
  display: flex; gap: 4px;
  font-size: var(--t-sm); color: var(--text-2); font-weight: 500;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--pill);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--pill-bg); color: var(--text); }
.nav-links a.active { background: var(--pill-bg); color: var(--text); }

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

/* Hamburger — hidden on desktop, shown when nav collapses */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--pill-bg); border: 1px solid var(--border);
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle .bars { position: relative; width: 18px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.topbar.nav-open .nav-toggle .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.topbar.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.topbar.nav-open .nav-toggle .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Primary CTA that only appears inside the mobile dropdown */
.nav-links .nav-cta { display: none; }

.theme-switch {
  width: 60px; height: 32px; border-radius: var(--pill);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; padding: 3px;
  cursor: pointer; position: relative;
}
.theme-switch span.knob {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-grad);
  transition: transform .25s ease;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
[data-theme="light"] .theme-switch span.knob { transform: translateX(28px); }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--pill); border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: var(--t-sm);
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand-grad); color: white; box-shadow: 0 8px 24px rgba(91,70,246,0.35); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(91,70,246,0.5); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { background: var(--pill-bg); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 12px 16px; }
.btn-ghost:hover { background: var(--pill-bg); color: var(--text); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ───── Pills / Chips ───── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--pill);
  background: var(--pill-bg); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29,214,180,0.18); }

/* ───── Cards ───── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

/* ───── Section ───── */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 14px;
}
[data-theme="light"] .eyebrow { color: var(--brand); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); }
p { color: var(--text-2); margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 640px; margin: 0 auto; }

/* ───── Footer ───── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  color: var(--text-2);
  font-size: var(--t-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pill-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--surface-2); color: var(--text); }

/* ───── Shared FAQ accordion ───── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq-item:hover { border-color: var(--text-3); }
.faq-item.open { background: var(--surface-2); border-color: var(--brand-soft); }
[data-theme="light"] .faq-item.open { border-color: var(--brand); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px; color: var(--text);
  text-align: left;
}
.faq-q .plus {
  font-size: 24px; line-height: 1; color: var(--text-3); flex-shrink: 0;
  transition: transform .25s ease, color .2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--brand); }
[data-theme="dark"] .faq-item.open .faq-q .plus { color: var(--brand-soft); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 20px;
  font-size: 14px; line-height: 1.6; color: var(--text-2);
  transition: max-height .3s ease, padding .25s ease;
}
.faq-item.open .faq-a { max-height: 360px; padding: 0 20px 18px; }

/* ════════════ Responsive ════════════ */

/* Collapse the top nav into a hamburger dropdown */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }   /* moved into the dropdown */

  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px -20px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    font-size: 16px;
  }
  .topbar.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  .container, .container-tight { padding: 0 18px; }
  .nav-links { padding: 14px 18px 18px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-lg { padding: 15px 22px; }
}

/* Tech badge (round glyph chip, mirrors the old coin badge) */
.tech {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.tech-web    { background: #5B46F6; }
.tech-mobile { background: #1DD6B4; color: #04241d; }
.tech-ai     { background: #7B3CE0; }
.tech-cloud  { background: #229ED9; }
.tech-data   { background: #F7931A; color: #2A1B00; }
.tech-auto   { background: #FF5A4A; }
.tech-design { background: #E6007A; }
.tech-ops    { background: #345D9D; }

/* Utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.up { color: var(--accent); }
.down { color: var(--down); }
.grow { flex: 1; }

/* ───── Marquee ───── */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 36px; width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
