/* =========================================================
   Swaylen — Official Website V1
   AI-powered B2B Buyer Intelligence & Revenue Automation
   ========================================================= */

:root {
  --bg: #0b0e14;
  --bg-elev: #10141d;
  --surface: #141927;
  --surface-2: #171d2b;
  --border: #242c3d;
  --border-soft: #1d2433;
  --text: #e8ecf4;
  --muted: #98a2b3;
  --muted-2: #6b7483;
  --accent: #4d7cfe;
  --accent-soft: rgba(77, 124, 254, 0.12);
  --accent-border: rgba(77, 124, 254, 0.4);
  --max-w: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(77, 124, 254, 0.35);
}
.btn-primary:hover { background: #5d89ff; box-shadow: 0 14px 38px rgba(77, 124, 254, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-border); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }

.header-cta { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elev);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { font-size: 16px; color: var(--muted); font-weight: 500; }
.mobile-menu a:not(.btn):hover { color: #fff; }
.mobile-menu .btn { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.hero { padding: 128px 0 112px; text-align: center; position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 700;
  max-width: 860px;
  margin: 0 auto 24px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  max-width: 760px;
}
.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
  margin-top: 18px;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.card:hover { border-color: var(--border); background: var(--surface-2); }
.card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 1.03rem; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-plain { background: transparent; border-color: var(--border-soft); text-align: left; }
.card-plain:hover { background: var(--surface); }

/* ---------- Problem grid (5 cols) ---------- */
.grid-5 .card h3 { font-size: 1rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  background: linear-gradient(180deg, var(--surface), transparent);
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Flow (differentiation) ---------- */
.flow {
  margin-top: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.flow-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.flow-arrow { color: var(--accent); font-size: 18px; font-weight: 700; }

/* ---------- Industries tiles ---------- */
.grid-industry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.tile {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.tile:hover { border-color: var(--border); transform: translateY(-2px); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: linear-gradient(180deg, var(--bg-elev), var(--bg)); }
.final-cta h2 { max-width: 700px; margin: 0 auto 18px; }
.final-cta .section-intro { margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-name { font-size: 20px; }
.footer-tagline { color: var(--muted-2); font-size: 0.92rem; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a, .footer-col .link-muted {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.link-muted { cursor: default; opacity: 0.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 0.88rem;
}
.footer-domain { letter-spacing: 0.03em; }


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .hero { padding: 88px 0 72px; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-cta .btn, .hero-cta .btn-lg { width: 100%; }
}

