/* =============================================
   VARIABLES & RESET
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-purple-light: #a78bfa;
  --accent-cyan-light: #67e8f9;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  /* Was #64748b, which measured 4.15:1 against the background — under the 4.5:1
     AA floor, and this token carries small text (form notes, stage timings, tags). */
  --text-muted: #707f96;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(124, 58, 237, 0.3);
  --shadow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
  --shadow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* Accessibility floor -------------------------------------------------
   A visible focus ring on everything interactive. :focus-visible keeps it
   off mouse clicks but always on for keyboard users. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-cyan-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect the OS "reduce motion" setting: no scroll animation, no reveals,
   no transforms. Anything that moved now simply appears. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .guide-link:hover {
    transform: none;
  }
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* =============================================
   BACKGROUND EFFECT
   ============================================= */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-logo {
  height: 34px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4) !important;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-purple-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 720px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple-light) 0%, var(--accent-cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-body {
  max-width: 660px;
  margin: 0 auto;
}

.about-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Four cards that should sit 2x2 rather than 3+1 on desktop */
.cards-grid-pairs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.card:hover::before {
  opacity: 1;
}

/* =============================================
   ICONS
   Emoji rendered differently on every device and read as templated.
   These are one geometric set on a 24px grid; stroke-width is set per
   size so the drawn weight lands at 1.5px on screen either way.
   ============================================= */
.icon-sprite {
  display: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent-purple-light);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  transition: var(--transition);
}

.card-link:hover {
  color: var(--accent-cyan-light);
  gap: 0.7rem;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.service-card {
  display: flex;
  flex-direction: column;
}

/* ---------- Services page: one block per system ---------- */
.service-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-block {
  /* Clear the fixed navbar when the homepage cards link straight to a system */
  scroll-margin-top: 6rem;
}

.service-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}

.service-block p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 68ch;
}

.service-block p:last-of-type {
  margin-bottom: 0;
}

.service-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

.service-lede {
  font-size: 1.08rem !important;
  color: var(--text-primary) !important;
  line-height: 1.6 !important;
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem !important;
}

.stack-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stack-line-items {
  color: var(--text-secondary);
}

.service-aside {
  margin-top: 2rem;
  padding: 1.1rem 1.35rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card .badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

.badge-video { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-ai { background: rgba(124, 58, 237, 0.15); color: var(--accent-purple-light); border: 1px solid rgba(124, 58, 237, 0.3); }
.badge-web { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan-light); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-app { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-content { background: rgba(251, 146, 60, 0.15); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.3); }

.service-card .btn {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* =============================================
   LEGAL PAGES  (privacy, terms, refund)
   The global reset strips margins and nothing restored them here, so these
   pages ran together as one block of text. Scoped to <main>, which only the
   legal pages use.
   ============================================= */
main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

main h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}

main p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

main ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

main li {
  margin-bottom: 0.6rem;
}

main strong {
  color: var(--text-primary);
  font-weight: 600;
}

main a {
  color: var(--accent-purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================
   ENGAGEMENT STAGES  (How I Work)
   ============================================= */
.stage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: stage;
}

.stage-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.stage-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-purple-light);
  font-size: 0.9rem;
  font-weight: 700;
}

.stage-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.stage-time {
  margin-left: auto;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.stage p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Price anchor ---------- */
.price-anchor {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border-color: var(--border-accent);
}

.price-anchor-figure {
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0.5rem auto 1.25rem;
  max-width: 34ch;
}

.price-anchor-figure strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-anchor-note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto;
}

/* =============================================
   LIVE DEMO
   ============================================= */
.demo-section {
  position: relative;
  z-index: 1;
  /* Clear the fixed navbar when the hero CTA jumps to #demo */
  scroll-margin-top: 6rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-lede {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.demo-phone {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-cyan-light);
  transition: var(--transition);
}

.demo-phone:hover,
.demo-phone:focus-visible {
  color: var(--accent-purple-light);
}

.demo-expect {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-expect li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.demo-expect li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
}

.demo-expect strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field .req {
  color: var(--accent-purple-light);
}

.field input,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color-scheme: dark;
  transition: var(--transition);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: rgba(239, 68, 68, 0.6);
}

.field-error:empty {
  display: none;
}

.field-error {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fca5a5;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-status-success,
.form-status-info {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-status-info {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan-light);
}

.form-status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.form-note {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Guides strip ---------- */
.guides {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.guides-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guides-lede {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
}

.guide-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.guide-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.guide-link strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-link > span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------- Instagram strip ---------- */
.ig-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: var(--transition);
}

.ig-strip:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.ig-strip-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent-purple-light);
  stroke-width: 1.3;
}

.ig-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ig-strip-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ig-strip-text span {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ig-strip-count {
  margin-left: auto;
  padding-left: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan-light);
  white-space: nowrap;
}

.guide-tag {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   CASE STUDIES
   ============================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.case-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* Flag on engagements that are not finished, so an in-build system is never
   mistaken for a delivered one. */
.case-flag {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.case-card h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.case-block h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.case-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple-light);
}

.stack-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-tags li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.case-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.case-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.case-status strong {
  font-weight: 600;
}

.case-status-live .status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.case-status-live strong {
  color: #86efac;
}

.case-status-build .status-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.case-status-build strong {
  color: #fcd34d;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-section {
  padding: 0 2rem 6rem;
  position: relative;
  z-index: 1;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(20px);
  text-align: center;
}

.contact-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.whatsapp-btn-wrap {
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.divider-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 9rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  /* Let the headline wrap naturally on narrow screens instead of on the desktop breaks */
  .hero h1 br {
    display: none;
  }

  /* The timeline pill wraps onto its own line here — align it under the stage title
     rather than pinning it to the far right, where it reads as disconnected. */
  .stage-time {
    margin-left: 0;
  }

  .ig-strip {
    flex-wrap: wrap;
  }

  .ig-strip-count {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
