/* ── base.css — worksby.design design system ─────────────────────────────── */

:root {
  --navy:        #1e3a8a;
  --navy-light:  #2d52b2;
  --navy-dark:   #152c6e;
  --coral:       #FF7A59;
  --coral-dark:  #e8623f;

  --bg:          #07090f;
  --surface-1:   #0d1326;
  --surface-2:   #131d38;
  --surface-3:   #1b2745;
  --border:      rgba(255, 255, 255, 0.07);
  --border-em:   rgba(255, 255, 255, 0.13);

  --text:        #e8eeff;
  --text-muted:  #7a8fb5;
  --text-dim:    #4a5880;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --t: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.container--narrow { max-width: 720px; }

/* ── Background glow ────────────────────────────────────────────────────────── */

.bg-glow {
  position: relative;
  isolation: isolate;
}

.bg-glow::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(30, 58, 138, 0.38) 0%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 85% 105%, rgba(255, 122, 89, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 2.5rem);
  background: rgba(7, 9, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t);
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--coral);
  font-weight: 600;
}

.nav-links .nav-cta:hover { color: var(--coral-dark); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(7rem, 15vw, 10rem) clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.hero--left { text-align: left; }
.hero--left .hero-subtitle { margin-inline: 0; }
.hero--left .hero-actions { justify-content: flex-start; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--border-em);
}

.hero--left .hero-eyebrow::before { display: none; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--coral);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.175rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 122, 89, 0.28);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-em);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid;
}

.badge-blue {
  color: #7eb3ff;
  background: rgba(30, 58, 138, 0.22);
  border-color: rgba(30, 58, 138, 0.45);
}

.badge-coral {
  color: #ffb5a0;
  background: rgba(255, 122, 89, 0.14);
  border-color: rgba(255, 122, 89, 0.32);
}

.badge-green {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-em);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-em);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.card-badge {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.card--info {
  background: transparent;
  border-color: var(--border-em);
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
}

.card--info:hover { transform: none; box-shadow: none; }

.card--link {
  cursor: pointer;
}

.card--link:hover {
  transform: translateY(-2px);
}

/* ── Feature list ────────────────────────────────────────────────────────────── */

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.feature-list li::before {
  content: '→';
  color: var(--coral);
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 0.15em;
}

/* ── Section ─────────────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.section-title em { font-style: normal; color: var(--coral); }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* ── Grids ───────────────────────────────────────────────────────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Divider ─────────────────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--t);
}

.footer-links a:hover { color: var(--text-muted); }

/* ── Status pill ─────────────────────────────────────────────────────────────── */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Page header (sub-pages) ─────────────────────────────────────────────────── */

.page-header {
  padding-block: clamp(6.5rem, 14vw, 9rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  transition: color var(--t);
}

.page-header-back:hover { color: var(--text-muted); }

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-coral  { color: var(--coral); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.8rem; }
.font-bold   { font-weight: 700; }
.mt-sm       { margin-top: 0.5rem; }
.mt-md       { margin-top: 1rem; }
.mt-lg       { margin-top: 1.5rem; }
.mt-xl       { margin-top: 2.5rem; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links          { display: none; }
  .hero-actions       { flex-direction: column; align-items: stretch; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .card--info         { flex-direction: column; }
}
