/* Liberty Forge — static site (no Next, no Tailwind build) */
:root {
  --bg: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.55);
  --fg: #e2e8f0;
  --muted: #94a3b8;
  --card: linear-gradient(to bottom right, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  --border: rgba(154, 52, 18, 0.45);
  --border-hot: #f97316;
  --gold: #facc15;
  --orange: #fb923c;
  --red: #f87171;
  --fire: linear-gradient(90deg, #facc15, #fb923c, #f87171);
  --fire-text: linear-gradient(90deg, #fde047, #fb923c, #ef4444);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.fire-text {
  background: var(--fire-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fire-btn {
  display: inline-block;
  font-weight: 700;
  color: #111;
  background: var(--fire);
  border: none;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.fire-btn:hover { transform: scale(1.04); filter: brightness(1.05); }
.fire-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.fire-btn.block { display: block; width: 100%; text-align: center; }

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
}
.hero .logo {
  width: 11rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45));
}
@media (min-width: 640px) { .hero .logo { width: 14rem; } }
@media (min-width: 1024px) { .hero .logo { width: 18rem; } }

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  padding-bottom: 0.5rem;
}
.title-wrap { position: relative; display: inline-block; }
.title-glow {
  position: absolute;
  left: 0; right: 0; bottom: -0.35rem;
  height: 0.5rem;
  background: var(--fire);
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
}
.title-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--fire);
}

.hero .lead {
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #e2e8f0;
  max-width: 36rem;
}
.hero .sub {
  margin: 0.5rem auto 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  max-width: 36rem;
}
.hero .cta-row { margin-top: 2.5rem; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 146, 60, 0.7);
  animation: bounce 1.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 639px) { .scroll-hint { display: none; } }

.section {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}
.section.dim { background: rgba(15, 23, 42, 0.5); }
.section h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}
.section .intro {
  text-align: center;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 3rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: rgba(234, 179, 8, 0.55); }
.card.hot {
  border: 2px solid var(--border-hot);
  box-shadow: 0 20px 40px rgba(124, 45, 18, 0.35);
}
@media (min-width: 768px) {
  .card.hot { transform: scale(1.04); }
}
.card .pill {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ea580c;
  color: #fff;
  border-radius: 999px;
}
.card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}
.card p {
  margin: 0 0 2rem;
  color: #d1d5db;
  flex: 1;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step-n {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: var(--fire);
  color: #111;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 1.15rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.values .card p { margin: 0; color: #ffedd5; }

.deliver {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.deliver p {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  color: #e2e8f0;
}

.cta-block { text-align: center; }
.cta-block p {
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: #d1d5db;
  max-width: 28rem;
}

footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(253, 186, 116, 0.55);
  border-top: 1px solid rgba(124, 45, 18, 0.35);
}
footer .copy { margin: 0 0 0.65rem; }
footer a { color: rgba(253, 186, 116, 0.85); font-weight: 600; }
footer a:hover { color: #fde68a; }

/* Powered-by line lives inside <footer> when present */
.lf-powered-inline {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.5);
}
.lf-powered-inline a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}
.lf-powered-inline a:hover { text-decoration: underline; color: #fde68a; }

.contact-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  border-bottom: none;
  background: transparent;
}

/* Standalone bar only when a page has no real footer */
.lf-powered {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.85rem 1rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.55);
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(2, 6, 23, 0.35);
}
.lf-powered a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}
.lf-powered a:hover { text-decoration: underline; color: #fde68a; }

/* Projects */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover {
  border-color: rgba(234, 179, 8, 0.55);
  transform: translateY(-2px);
}
.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold);
}
.project-card p {
  margin: 0;
  color: #d1d5db;
  flex: 1;
  line-height: 1.55;
  font-size: 0.95rem;
}
.project-card .meta {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.project-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.project-card .links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fdba74;
}
.project-card .links a:hover { color: #fde68a; }

/* Contact */
.contact-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.contact-inner { width: 100%; max-width: 42rem; }
.contact-inner .logo {
  width: 11rem;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.4));
}
@media (min-width: 640px) { .contact-inner .logo { width: 14rem; } }
.contact-inner .lead {
  text-align: center;
  font-size: 1.25rem;
  color: #d1d5db;
  margin: 0 0 1.5rem;
}
.form-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(154, 52, 18, 0.35);
  border-radius: 0.9rem;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.75);
  color: var(--fg);
  font: inherit;
  outline: none;
}
.form-card input:focus,
.form-card textarea:focus { border-color: #f97316; }
.form-card textarea { resize: vertical; min-height: 9rem; }
.form-msg {
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-msg.ok { color: #86efac; }
.form-msg.err { color: #fca5a5; }
.form-msg.muted { color: var(--muted); }

.nav-mini {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-mini a { color: var(--orange); font-weight: 600; }
