/* ============================================================
   Huda Saeed — SEO & AEO Specialist Portfolio
   Design system
   ============================================================ */

:root {
  /* Color — soft lilac + coral, techie-girlie */
  --ink: #F3F0FA;            /* base background (was dark navy) */
  --ink-light: #EAE4F8;      /* secondary surface */
  --ink-card: #FFFFFF;       /* card background, pops off the lilac base */
  --paper: #2D2640;          /* primary text color (was light text on dark) */
  --paper-dim: #3A3252;
  --signal: #FF7A59;         /* coral accent (was amber) */
  --signal-bright: #FF9478;
  --lavender: #8B7FD4;       /* secondary accent for variety */
  --muted: #6E647F;
  --muted-light: #4A4160;
  --line: rgba(45, 38, 64, 0.1);
  --line-dark: rgba(45, 38, 64, 0.12);
  --success: #4A9B7F;

  /* Type */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2vw, 3.6rem);
  --step-5: clamp(3rem, 2.3rem + 3vw, 5rem);

  --container: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { color: var(--muted-light); }

.lede {
  font-size: var(--step-1);
  color: var(--muted-light);
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--signal);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  display: inline-block;
}

.mono { font-family: var(--font-mono); }
.text-lavender { color: var(--lavender) !important; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover { background: var(--signal-bright); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-1px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--paper);
}
.nav-logo .dot { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: var(--step--1);
}

.nav-links a {
  color: var(--muted-light);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink-light);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* Extra breathing room between the last section's content and the footer */
main > section:last-child {
  padding-bottom: 140px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139, 127, 212, 0.25), rgba(255, 122, 89, 0.12) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 64px; }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--signal); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  color: var(--paper);
  font-weight: 600;
}
.stat-label {
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- SERP mock (signature element) ---------- */

.serp-mock {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(139, 127, 212, 0.35);
  font-family: var(--font-body);
}

.serp-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 24px;
  padding: 10px 16px;
  margin-bottom: 22px;
  color: #2D2640;
  font-size: 0.92rem;
}

.serp-search-bar .typed::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  background: #2D2640;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.serp-result { padding: 4px 0; }
.serp-url { color: #006621; font-size: 0.78rem; font-family: var(--font-mono); }
.serp-title { color: #1a0dab; font-size: 1.15rem; margin: 4px 0 6px; font-weight: 500; }
.serp-desc { color: #4d5156; font-size: 0.88rem; line-height: 1.5; }

.serp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 12px;
  background: var(--signal);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 4px;
}

/* ---------- Cards / Grids ---------- */

.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: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px -8px rgba(45, 38, 64, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 122, 89, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(255, 122, 89, 0.25);
}

.card .path {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--signal);
  margin-bottom: 16px;
  display: block;
}

.card h3 { font-size: var(--step-1); margin-bottom: 12px; }
.card p { font-size: var(--step--1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  padding: 56px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo { color: #FFFFFF; }
.footer-logo .dot { color: var(--signal); }

.footer-tagline {
  font-size: 0.9rem;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: var(--step--1); }
.footer-links a:hover { color: var(--signal-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

/* ---------- Misc utility ---------- */

.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* ---------- Trust / stat bar ---------- */

.stat-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-bar-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.stat-bar-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--paper);
  display: block;
}

.stat-bar-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Process steps ---------- */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child { border-bottom: none; }

.process-num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
}

.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: var(--step--1); max-width: 560px; }

@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Trust badges row ---------- */

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink-light);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted-light);
}

/* ---------- Pull quote ---------- */

.pull-quote {
  border-left: 3px solid var(--signal);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--paper);
  font-weight: 500;
  line-height: 1.4;
  margin: 8px 0;
}

/* ---------- "Includes" list with check marks ---------- */

.includes-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--step--1);
  color: var(--muted-light);
}
.includes-list li::before {
  content: '✓';
  color: var(--signal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Add-on chips ---------- */

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .addon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .addon-grid { grid-template-columns: 1fr; } }

.addon-chip {
  background: var(--ink-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.addon-chip h4 { font-size: var(--step-0); margin-bottom: 6px; }
.addon-chip p { font-size: var(--step--1); margin: 0; }

/* ---------- Hero / profile photo frame ---------- */

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--lavender), var(--signal));
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  box-shadow: 0 8px 24px -8px rgba(45,38,64,0.25);
}
