/* =========================
   LaunchCraft Design System
   ========================= */

:root {
  --font-main: system-ui, -apple-system, BlinkMacSystemFont,
               "SF Pro Text", -system-ui, sans-serif;

  --accent: #f97316;        /* Launch orange */
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-alt: #2563eb;    /* Blue accent for links/buttons */

  --dark-bg: #020817;
  --dark-elevated: #0b1020;
  --dark-soft: #111827;

  --light-bg: #f5f5f7;
  --light-surface: #ffffff;

  --border-subtle-dark: rgba(148, 163, 253, 0.18);
  --border-subtle-light: rgba(15, 23, 42, 0.06);

  --text-light-main: #f9fafb;
  --text-light-muted: #d1d5db;
  --text-dark-main: #111827;
  --text-dark-muted: #6b7280;

  --radius-md: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-soft-dark: 0 18px 40px rgba(15, 23, 42, 0.7);
  --shadow-soft-light: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* Base reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* We treat .theme-light as the main marketing theme */

body {
  font-family: var(--font-main);
}

/* Light theme (used on marketing pages) */
body.theme-light {
  background: var(--light-bg);
  color: var(--text-dark-main);
}

/* Dark theme (for admin or toggle) */
body:not(.theme-light) {
  background: var(--dark-bg);
  color: var(--text-light-main);
}

/* Generic layout */

.page {
  padding: 32px 7vw 40px;
}

.page-header {
  margin-bottom: 18px;
}


/* =========================
   Header & Navigation
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 7vw;
  background: var(--dark-bg);
  color: var(--text-light-main);
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: all 0.18s ease-out;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.96);
}

.btn-nav {
  border: 1px solid rgba(249, 115, 22, 0.7);
  color: var(--accent);
  padding-inline: 16px;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--dark-bg);
}

#theme-toggle,
#nav-toggle {
  margin-left: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 253, 0.4);
  background: transparent;
  color: var(--text-light-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

#nav-toggle {
  display: none; /* you can enable for mobile menu later */
}

/* =========================
   Hero
   ========================= */

/* Hero is dark, fades into light content area */
.hero {
  position: relative;
  padding: 64px 7vw 80px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1.1fr);
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 55%),
    var(--dark-bg);
  color: var(--text-light-main);
}

/* create a soft fade to light background below hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(2, 8, 23, 1), rgba(245, 245, 247, 1));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 253, 0.35);
  background: rgba(2, 6, 23, 0.96);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-alt);
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.06;
}

.hero p {
  margin: 0 0 18px;
  color: var(--text-light-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 6px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-aside-box {
  background: var(--dark-elevated);
  border-radius: 26px;
  padding: 18px 18px 14px;
  border: 1px solid var(--border-subtle-dark);
  box-shadow: var(--shadow-soft-dark);
  color: var(--text-light-main);
  max-width: 320px;
}

.hero-aside-box h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

.hero-aside-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

/* =========================
   Buttons & Links
   ========================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #111827;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft-dark);
  transition: all 0.18s ease-out;
}

.btn-primary:hover {
  background: #fb923c;
  transform: translateY(-1px);
}

.ghost-link {
  color: var(--accent-alt);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a {
  color: var(--accent-alt);
}

/* =========================
   What I Build – Tier Cards
   ========================= */

.what-i-build {
  padding: 40px 7vw 32px;
  background: var(--light-bg);
  color: var(--text-dark-main);
}

.what-i-build h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  color: var(--text-dark-main);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tier-card {
  background: var(--light-surface);
  border-radius: var(--radius-xl);
  padding: 18px 20px 16px;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark-main);
}

.tier-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dark-muted);
}

.tier-card ul {
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
}

/* =========================
   Home preview cards
   ========================= */

.home-preview {
  padding: 24px 7vw 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--light-bg);
}

.home-preview > div {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
}

.home-preview h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-dark-main);
}

.home-preview p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--text-dark-muted);
}

.link-arrow {
  font-size: 0.82rem;
  color: var(--accent-alt);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* =========================
   Generic Form Styles
   ========================= */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

label {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
}

input,
select,
textarea {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle-light);
  background: #ffffff;
  color: var(--text-dark-main);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-alt);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

/* =========================
   Portfolio Page
   ========================= */

.page-portfolio {
  background: var(--light-bg);
}

.page-portfolio .page-header h1,
.page-portfolio .page-header h2,
.page-portfolio .page-header p {
  color: var(--text-dark-main);
}

#portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual project cards (JS creates <article class="card">) */
#portfolio-grid .card {
  background: var(--light-surface);
  border-radius: 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#portfolio-grid .card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text-dark-main);
}

#portfolio-grid .card p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--text-dark-muted);
}

#portfolio-grid .card .link-arrow {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--accent-alt);
  text-decoration: none;
}

#portfolio-grid .card .link-arrow:hover {
  text-decoration: underline;
}

/* Mobile tweak */
@media (max-width: 900px) {
  #portfolio-grid {
    grid-template-columns: 1fr;
    padding-inline: 5vw;
  }
}

/* =========================
   Services & Pricing Page
   ========================= */

.page-services {
  background: var(--light-bg);
}

/* Container for tiers */
.page-services #services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;                        /* ✅ space between cards */
  margin-top: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual tier card */
.page-services .service-card {
  background: var(--light-surface);
  border-radius: 18px;              /* slightly softer */
  padding: 20px 22px 18px;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
}

/* Heading + price spacing */
.page-services .service-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--text-dark-main);
}

.page-services .service-card .price-range {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
}

/* Bullets inside */
.page-services .service-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

/* CTA link / button alignment */
.page-services .service-card .btn-primary,
.page-services .service-card a {
  margin-top: 6px;
}

/* Make sure generic .card styles don't override services cards */
.page-services .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}


/* =========================
   Footer
   ========================= */

.site-footer {
  padding: 16px 7vw 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--dark-bg);
  color: var(--text-light-muted);
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--accent-alt);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-right {
  display: flex;
  gap: 10px;
}

/* =========================
   Admin / Leads (kept minimal)
   ========================= */

.admin-body {
  background: var(--dark-bg);
  color: var(--text-light-main);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--light-surface);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
}

.admin-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle-light);
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

.hidden {
  display: none !important;
}

/* Leads list */

.leads-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle-light);
  box-shadow: var(--shadow-soft-light);
}

.lead-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
}

.muted {
  color: var(--text-dark-muted);
  font-size: 0.76rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 5vw 56px;
  }

  .hero-aside {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .what-i-build,
  .home-preview {
    padding-inline: 5vw;
  }

  .tier-grid,
  .home-preview {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-inline: 5vw;
  }

  .site-footer {
    padding-inline: 5vw;
    flex-direction: column;
    align-items: flex-start;
  }
}



