/* — VARIABLES — */
:root {
  --bg: #18181B;
  --bg-card: #1e1e22;
  --text: #FAFAFA;
  --text-mid: #A1A1AA;
  --text-muted: #8A8A94;
  --border: #27272A;
  --border-hover: #3f3f46;
  --highlight-bg: #FAFAFA;
  --highlight-fg: #18181B;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --hero-size: clamp(40px, 6vw, 64px);
  --h2-size: clamp(28px, 4vw, 38px);
  --body-size: 17px;
  --col-width: 760px;
  --px: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* — GRAIN OVERLAY — */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* — TYPOGRAPHY — */
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
}

.highlight {
  background: var(--highlight-bg);
  color: var(--highlight-fg);
  padding: 1px 6px;
  border-radius: 0;
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* — SECTION LABELS — */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* — LAYOUT — */
.page {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  border-bottom: none;
}

/* — BUTTONS — */
.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline {
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* — HEADER — */
.site-header {
  width: 100%;
  max-width: var(--col-width);
  padding: 24px var(--px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

.header-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* — HERO — */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: none;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--col-width);
  padding: 0 var(--px);
}


.hero h1 {
  font-size: var(--hero-size);
  line-height: 1.35;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  position: relative;
}

/* Hero staggered entrance */
.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.6s ease forwards;
}

.hero-fade-1 { animation-delay: 0.1s; }
.hero-fade-2 { animation-delay: 0.25s; }
.hero-fade-3 { animation-delay: 0.45s; }
.hero-fade-4 { animation-delay: 0.6s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* — SECTION HEADINGS — */
.section h2 {
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}

.section > p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* — FAILED LIST (problem section) — */
.failed-list {
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.failed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.failed-item:last-child {
  border-bottom: none;
}

.failed-x {
  font-size: 18px;
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.failed-text {
  font-size: 16px;
  color: var(--text-mid);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.problem-punchline {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  padding-top: 4px;
}

.problem-punchline strong {
  color: var(--text);
}

/* — ABOUT LAYOUT — */
.about-layout {
  position: relative;
  margin-top: 8px;
}

.about-layout .about-quote {
  max-width: 460px;
}

.about-photo {
  position: absolute;
  right: -100px;
  top: -25px;
  width: 340px;
  order: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 0 var(--highlight-bg))
    drop-shadow(3px 0 0 var(--highlight-bg))
    drop-shadow(-3px 0 0 var(--highlight-bg))
    drop-shadow(0 3px 0 var(--highlight-bg))
    drop-shadow(0 -3px 0 var(--highlight-bg));
}

/* — ABOUT QUOTE — */
.about-quote {
  border-left: 2px solid var(--highlight-bg);
  padding-left: 24px;
}

.about-quote p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-quote p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 500;
}

.about-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.about-link:hover {
  color: var(--text-mid);
}

/* — SERVICES GRID — */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.65;
}

/* — SOCIAL PROOF — */
.proof-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.proof-item {
  padding: 24px 16px;
}

.proof-num {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.proof-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* — HOW IT WORKS (process list) — */
.process-list {
  margin-top: 28px;
}

.process-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.process-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.process-text h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.process-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.process-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.process-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
}

/* — CONTRAST GRID (before & after) — */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.contrast-col {
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.contrast-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.contrast-before .contrast-label {
  color: #ef4444;
}

.contrast-after .contrast-label {
  color: #22c55e;
}

.contrast-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contrast-col li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.contrast-before li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.contrast-after li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 13px;
}

/* — CTA — */
.cta {
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--col-width);
  padding: 0 var(--px);
}

.cta .section-label {
  text-align: center;
}

.cta h2 {
  font-size: var(--h2-size);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 36px;
  line-height: 1.7;
}

.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 24px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
  letter-spacing: 0.3px;
}

.copy-email:hover {
  border-color: var(--text-mid);
}

.copy-email-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.copy-email .icon-copy,
.copy-email .icon-check {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-email .icon-copy {
  opacity: 0.5;
}

.copy-email .icon-check {
  opacity: 0;
  transform: scale(0.5);
}

.copy-email.copied .icon-copy {
  opacity: 0;
  transform: scale(0.5);
}

.copy-email.copied .icon-check {
  opacity: 1;
  transform: scale(1);
  color: #4ade80;
}

.copy-email.copied {
  border-color: #4ade80;
  color: #4ade80;
}

/* — FOOTER — */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: var(--col-width);
  padding: 32px var(--px);
}

.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links span {
  color: var(--border);
  font-size: 10px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* — FOCUS — */
:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* — REVEAL ANIMATIONS — */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* — TOUCH & MOBILE FOUNDATIONS — */
@media (hover: none) and (pointer: coarse) {
  a, button, .btn-outline {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
  }

  .service-card:hover {
    transform: none;
  }
}

/* — TABLET (641px – 1024px) — */
@media (max-width: 1024px) {
  :root {
    --px: 32px;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
  }

  .about-layout .about-quote {
    max-width: none;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --hero-size: clamp(36px, 5.5vw, 56px);
    --h2-size: clamp(26px, 4vw, 34px);
  }

  .about-photo {
    position: static;
    width: 260px;
    margin: 48px auto 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .contrast-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .contrast-col {
    padding: 24px 20px;
  }

  .section {
    min-height: auto;
    padding: 80px 0;
  }
}

/* — MOBILE (≤ 640px) — */
@media (max-width: 640px) {
  :root {
    --hero-size: clamp(32px, 8vw, 48px);
    --h2-size: clamp(24px, 6vw, 32px);
    --body-size: 16px;
    --px: 20px;
  }

  .header-status {
    font-size: 12px;
  }

  .hero {
    min-height: 100dvh;
    padding: 0;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .copy-email {
    font-size: 15px;
    padding: 14px 20px;
    width: 100%;
    justify-content: center;
  }

  .section {
    min-height: auto;
    padding: 64px 0;
  }

  .section h2 {
    margin-bottom: 20px;
  }

  .highlight {
    padding: 0 4px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 14px;
  }

  .process-list {
    margin-top: 24px;
  }

  .process-row {
    grid-template-columns: 24px 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .process-time {
    grid-column: 2;
    font-size: 11px;
    margin-top: 2px;
  }

  .process-text h3 {
    font-size: 16px;
  }

  .process-text p {
    font-size: 14px;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contrast-col {
    padding: 24px 20px;
  }

  .contrast-col li {
    font-size: 14px;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
  }

  .about-photo {
    position: static;
    width: 280px;
    margin: 48px auto 0;
  }

  .about-layout .about-quote {
    max-width: none;
  }

  .about-quote {
    padding-left: 16px;
  }

  .about-quote p {
    font-size: 16px;
  }

  .cta {
    padding: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-links a {
    padding: 4px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .failed-item {
    padding: 12px 0;
    gap: 12px;
  }

  .failed-text {
    font-size: 15px;
  }

  .problem-punchline {
    font-size: 16px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proof-item {
    padding: 20px 16px;
  }

  .proof-num {
    font-size: 28px;
  }
}

/* — REDUCED MOTION — */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-fade {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .status-dot {
    animation: none;
  }
}
