/* ============================================================
   PROJECT PAGE — shared styles
   ============================================================ */

/* ── Reset & base (inherits from site but we inline key vars) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #0d0f14;
  --ink2:     #13161e;
  --ink3:     #1c2130;
  --surface:  #1e2436;
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(255,255,255,0.12);
  --gold:     #c9a84c;
  --gold2:    #e8c96d;
  --gold-dim: rgba(201,168,76,0.12);
  --text:     #eef0f5;
  --text2:    #9ba3b8;
  --text3:    #5c6478;
  --radius:   4px;
  --tr:       0.22s cubic-bezier(0.4,0,0.2,1);
  --font:     'DM Sans', system-ui, sans-serif;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --max:      1100px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--ink); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--gold2); font-family: var(--serif); }
::selection { background: var(--gold); color: #000; }

/* ── Light mode ── */
html.light { --ink: #f0ede6; --ink2: #e8e4da; --ink3: #ddd8cc; --surface: #f5f3ee; --line: rgba(0,0,0,0.08); --line2: rgba(0,0,0,0.14); --text: #1a1c24; --text2: #444a5c; --text3: #888ea0; }

/* ── Shared container ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ════════════════════════════════════════════
   TOP BAR
   ════════════════════════════════════════════ */
.proj-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}
html.light .proj-topbar { background: rgba(240,237,230,0.92); }

.proj-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--tr);
}
.proj-back:hover { color: var(--gold); }
.proj-back svg { flex-shrink: 0; }

.proj-topbar-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.7;
}

.proj-theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: border-color var(--tr), color var(--tr);
}
.proj-theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.proj-theme-toggle .icon-sun { display: none; }
html.light .proj-theme-toggle .icon-moon { display: none; }
html.light .proj-theme-toggle .icon-sun  { display: block; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.proj-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* subtle grid lines background */
.proj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

/* gold glow top-left */
.proj-hero::after {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.proj-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .proj-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .proj-hero-img { order: -1; }
}

.proj-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.proj-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.proj-hero-tagline {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

.proj-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* tags row */
.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.proj-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--line2);
  color: var(--text3);
}

/* CTA buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: #000;
  font-size: 13px; font-weight: 700;
  padding: 12px 24px;
  border-radius: 3px;
  transition: background var(--tr), transform var(--tr);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2);
  color: var(--text2);
  font-size: 13px; font-weight: 500;
  padding: 12px 24px;
  border-radius: 3px;
  transition: border-color var(--tr), color var(--tr);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* app screenshot */
.proj-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-hero-img img {
  width: 220px;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 1px solid var(--line2);
}

/* ════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════ */
.proj-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.proj-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── The Benefit — large pull quote ── */
.proj-benefit {
  background: var(--ink2);
}
.proj-benefit-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .proj-benefit-inner { grid-template-columns: 1fr; gap: 24px; }
}

.proj-benefit-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 28px;
}

/* ── The Build — two column ── */
.proj-build-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .proj-build-inner { grid-template-columns: 1fr; gap: 36px; }
}

.proj-build-text p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.proj-stack-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* build visual panel */
.proj-build-visual {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proj-build-visual-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.proj-arch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink3);
  border-radius: 3px;
  border-left: 2px solid var(--gold);
  font-size: 13px;
  color: var(--text2);
}
.proj-arch-row svg { flex-shrink: 0; color: var(--gold); }
.proj-arch-arrow {
  text-align: center;
  color: var(--text3);
  font-size: 18px;
  line-height: 1;
}

/* ── Top Features — 3 col grid ── */
.proj-features {
  background: var(--ink2);
}
.proj-features-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 768px) { .proj-features-grid { grid-template-columns: 1fr; } }
@media (min-width: 480px) and (max-width: 768px) { .proj-features-grid { grid-template-columns: repeat(2, 1fr); } }

.proj-feature-card {
  background: var(--ink3);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--tr);
}
.proj-feature-card:hover { background: var(--surface); }

.proj-feature-icon {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}

.proj-feature-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.proj-feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* ── Features header row (label + heading) ── */
.proj-features-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px 0;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.proj-footer {
  padding: 48px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.proj-footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.proj-footer p {
  font-size: 13px;
  color: var(--text3);
}

.proj-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 10px 20px;
  border-radius: 3px;
  transition: background var(--tr);
}
.proj-footer-back:hover { background: var(--gold-dim); }

/* ════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ════════════════════════════════════════════ */
html.light .proj-benefit  { background: var(--ink3); }
html.light .proj-features { background: var(--ink3); }
html.light .proj-feature-card { background: var(--surface); }
html.light .proj-feature-card:hover { background: var(--ink2); }
html.light .proj-build-visual { background: var(--ink3); }
html.light .proj-arch-row { background: var(--surface); }
