/* ───────────────────────────────────────────────────────────────
   Websites By Link — v2 shared styles
   Dark + cyan palette retained. Distinct identity from prior build:
   monospace breadcrumbs, Space Grotesk display, dotted-grid headers,
   no photo-backed CTAs, terminal/device/IDE/chat-bubble components.
   ─────────────────────────────────────────────────────────────── */

/* Reset + base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: clip; }

body {
  background: #0a0a0a;
  color: #f4f4f7;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv11';
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; }

/* ─── Type tokens ─── */
.t-mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
.t-display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.015em; }
.t-label-mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.02em; color: #0ea5e9;
  text-transform: lowercase;
}

/* ─── Backgrounds: dotted grid (replaces LR photo backgrounds) ─── */
.dotted-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14,165,233,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}
.line-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── NAV (v2: solid dark, monospace home-prompt logo) ─── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  padding: 0 32px;
}
.brand-prompt {
  display: inline-flex; align-items: baseline; gap: 0;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 14px; font-weight: 500;
  color: #f4f4f7;
  letter-spacing: 0;
}
.brand-prompt .prompt-tilde { color: #0ea5e9; margin-right: 6px; }
.brand-prompt .prompt-slash { color: #5a606b; }
.brand-prompt .prompt-name { color: #f4f4f7; }
.brand-prompt .prompt-cursor {
  display: inline-block; width: 7px; height: 14px;
  background: #0ea5e9; margin-left: 4px;
  animation: blink 1.1s steps(2) infinite;
  transform: translateY(2px);
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.site-nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav-links a {
  text-decoration: none; color: #9aa0aa;
  font-size: 14px; font-weight: 400;
  transition: color 0.15s;
}
.site-nav-links a:hover { color: #f4f4f7; }
.site-nav-links a.active { color: #f4f4f7; }
.site-nav-links a.active::before {
  content: '/ '; color: #0ea5e9;
  font-family: 'JetBrains Mono', monospace;
}
.site-nav-links .nav-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: #0ea5e9;
  border: 1px solid rgba(14,165,233,0.4);
  padding: 8px 16px; border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.site-nav-links .nav-cta:hover {
  background: rgba(14,165,233,0.12);
  border-color: #0ea5e9;
  color: #38bdf8;
}
.site-nav-links .nav-cta::before { content: none; }

/* Hamburger (mobile.css un-hides) */
.nav-hamburger { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; width: 38px; height: 38px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; }
.nav-hamburger span { display: block; width: 16px; height: 1.5px; background: #f4f4f7; }
.mobile-drawer { display: none; }

/* ─── Page header (v2: dotted grid, breadcrumb, mixed case) ─── */
.ph {
  padding: 140px 32px 70px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ph-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ph-crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: #0ea5e9;
  margin-bottom: 22px; display: inline-block;
}
.ph-crumb .ph-crumb-dim { color: #5a606b; }
.ph-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f4f7;
  max-width: 880px;
}
.ph-title em { color: #0ea5e9; font-style: normal; }
.ph-sub {
  font-size: 17px; color: #9aa0aa; line-height: 1.65;
  margin-top: 22px; max-width: 660px;
}

/* ─── Section rhythm (v2: mono label + Space Grotesk title, no rule) ─── */
.s-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: #0ea5e9;
  margin-bottom: 18px; display: inline-block;
}
.s-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #f4f4f7;
}
.s-title em { color: #0ea5e9; font-style: normal; }
.s-lede {
  font-size: 16px; color: #9aa0aa;
  line-height: 1.7; margin-top: 16px; max-width: 640px;
}

/* ─── Buttons (v2) ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-cyan { background: #0ea5e9; color: #0a0a0a; }
.btn-cyan:hover { background: #38bdf8; transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.16);
  color: #f4f4f7;
}
.btn-ghost:hover { border-color: #0ea5e9; color: #0ea5e9; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Terminal block ─── */
.term {
  background: #0e1014; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.term-chrome {
  background: #16181d; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; }
.term-dots .d-r { background: #ff5f57; }
.term-dots .d-y { background: #febc2e; }
.term-dots .d-g { background: #28c840; }
.term-title {
  font-size: 12px; color: #5a606b; margin-left: 4px;
  letter-spacing: 0.02em;
}
.term-body {
  padding: 26px 28px;
  font-size: 14px; line-height: 1.85;
  color: #c8ccd4;
}
.term-body .tk-c { color: #0ea5e9; }       /* command */
.term-body .tk-p { color: #5a606b; }       /* prompt $ */
.term-body .tk-s { color: #9aa0aa; }       /* secondary text */
.term-body .tk-ok { color: #38d399; }
.term-body .tk-w { color: #fbbf24; }
.term-body .tk-k { color: #c084fc; }       /* keyword */
.term-body .tk-str { color: #fca5a5; }     /* string */

/* ─── Device frames (laptop + phone) ─── */
.device-laptop {
  position: relative; width: 100%;
  border-radius: 12px 12px 4px 4px;
  background: #1a1a22;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 10px 0;
}
.device-laptop::after {
  content: ''; display: block; height: 14px;
  background: #0d0d0d; margin: 0 -22px;
  border-radius: 0 0 12px 12px; position: relative;
}
.device-laptop-screen {
  background: #0a0a0a; border-radius: 4px; overflow: hidden;
  aspect-ratio: 16 / 10;
}
.device-phone {
  background: #1a1a22; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px; padding: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.device-phone-screen {
  background: #0a0a0a; border-radius: 22px; overflow: hidden;
  aspect-ratio: 9 / 19;
}

/* Faux-website preview content inside a device */
.preview-mini {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0d1014 0%, #0a0a0a 100%);
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.preview-mini-bar {
  height: 18px; background: rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 5px;
  padding: 0 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 8px;
  color: #5a606b;
}
.preview-mini-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.preview-mini-line { height: 6px; background: rgba(255,255,255,0.07); border-radius: 2px; }
.preview-mini-line.short { width: 40%; }
.preview-mini-line.cyan { background: rgba(14,165,233,0.5); }
.preview-mini-line.title { height: 12px; width: 68%; background: rgba(255,255,255,0.16); }

/* ─── Chat bubbles (testimonials / contact intro) ─── */
.chat-thread {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.bubble {
  padding: 14px 18px; border-radius: 16px;
  font-size: 15px; line-height: 1.55;
  max-width: 78%;
  position: relative;
}
.bubble.in {
  background: #1a1d24;
  color: #d8dce3;
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.bubble.out {
  background: #0ea5e9;
  color: #0a0a0a;
  border-top-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.bubble-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #5a606b;
  margin-top: 4px; padding: 0 6px;
}
.bubble-meta.out { align-self: flex-end; }

/* ─── IDE pane (contact form wrapper) ─── */
.ide {
  background: #0e1014; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.ide-tabs {
  display: flex; background: #14171c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ide-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #5a606b;
  padding: 11px 18px;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.ide-tab.active { color: #f4f4f7; background: #0e1014; border-bottom: 2px solid #0ea5e9; }
.ide-body {
  padding: 28px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.ide-line { display: flex; gap: 14px; align-items: baseline; padding: 4px 0; }
.ide-ln { color: #3a3f48; width: 22px; text-align: right; flex-shrink: 0; user-select: none; }

/* ─── Footer (v2) ─── */
footer.site-footer {
  background: #08080a;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 70px 32px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: #0ea5e9; margin-bottom: 18px;
  letter-spacing: 0;
}
.footer-col h4::before { content: '// '; color: #5a606b; }
.footer-col a, .footer-col p {
  display: block; color: #9aa0aa; text-decoration: none;
  font-size: 14px; line-height: 2; font-weight: 400;
}
.footer-col a:hover { color: #0ea5e9; }
.footer-col .footer-tagline { color: #6a707a; font-size: 14px; line-height: 1.7; max-width: 340px; margin-top: 14px; }
.footer-bottom {
  margin-top: 26px; display: flex;
  justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #3a3f48;
  flex-wrap: wrap; gap: 12px;
}

/* ─── Mobile drawer (kept; restyled below) ─── */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer-panel { position: fixed; top: 0; right: 0; width: 84%; max-width: 360px; height: 100%; background: #0e1014; z-index: 1101; transform: translateX(100%); transition: transform 0.3s ease; padding: 26px 26px 32px; display: flex; flex-direction: column; gap: 24px; border-left: 1px solid rgba(255,255,255,0.06); }
.mobile-drawer.open .drawer-overlay { opacity: 1; pointer-events: auto; }
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.drawer-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #0ea5e9; }
.drawer-close { background: none; border: none; color: #9aa0aa; font-size: 28px; cursor: pointer; }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-links a { color: #f4f4f7; text-decoration: none; font-size: 19px; font-weight: 500; padding: 10px 0; font-family: 'Space Grotesk', sans-serif; }
.drawer-links a.active { color: #0ea5e9; }
.drawer-contact { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 8px; }
.drawer-contact-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #5a606b; margin-bottom: 4px; }
.drawer-contact a { color: #f4f4f7; text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 14px; }

/* Back to top */
.back-to-top { position: fixed; bottom: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(14,165,233,0.18); border: 1px solid rgba(14,165,233,0.4); color: #0ea5e9; cursor: pointer; z-index: 800; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s, background 0.15s; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: rgba(14,165,233,0.28); }
.back-to-top svg { width: 16px; height: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section spacer */
.section { padding: 90px 32px; position: relative; }
.section-narrow { max-width: 1100px; margin: 0 auto; }
.section-wide { max-width: 1240px; margin: 0 auto; }
