/* ============================================================
   Ugly Pumpkins LLC — corporate site
   Aesthetic: dark "carved-pumpkin glow" — warm near-black,
   ember-orange light, wart-green accent, terminal/IT details.
   ============================================================ */

:root {
  /* surfaces */
  --bg:          #0c0a08;
  --bg-2:        #100c09;
  --surface:     #19130d;
  --surface-2:   #211810;
  --line:        rgba(255, 154, 60, 0.14);
  --line-strong: rgba(255, 154, 60, 0.30);

  /* brand */
  --primary:        #ff7a00;
  --primary-bright: #ff9a3c;
  --ember:          #ffb454;
  --green:          #7bc043;
  --green-bright:   #9be05a;

  /* text */
  --text:  #f6efe6;
  --muted: #b3a392;
  --dim:   #8a7c6c;

  --maxw: 1180px;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Offset in-page anchor targets so they don't hide behind the sticky header */
#products, #about { scroll-margin-top: 90px; }
#top { position: absolute; top: 0; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Carved-pumpkin glow — warm light bleeding from upper-center, like
   the glow from inside a jack-o'-lantern. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(255, 122, 0, 0.22), transparent 60%),
    radial-gradient(45% 40% at 85% 8%, rgba(123, 192, 67, 0.10), transparent 70%),
    radial-gradient(50% 45% at 12% 30%, rgba(255, 122, 0, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  pointer-events: none;
}

/* Fine grain overlay for texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 60ch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--green-bright);
  background: rgba(123, 192, 67, 0.10);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.hl { color: var(--primary-bright); }
.hl.green { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  color: #1a0e00;
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 122, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-ghost {
  background: rgba(255, 154, 60, 0.06);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(255, 154, 60, 0.12);
}

.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 10, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand img { height: 46px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--primary-bright) !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.nav-cta:hover { border-color: var(--primary); background: rgba(255,154,60,0.08); }

/* Mobile hamburger (CSS-only checkbox hack — no JS). Hidden on desktop; the
   mobile media query reveals it and turns .nav-links into a dropdown panel. */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; flex: none; }
.nav-burger span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4.5rem;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0 auto;
  max-width: 26ch;
}
.hero .lead {
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-align: center;
}
.hero-actions {
  margin-top: 3.2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95%);
  height: 520px;
  z-index: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 122, 0, 0.18), transparent 70%);
  filter: blur(20px);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  margin-bottom: 2.8rem;
}
.section-head h2,
.about h2,
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 0.6rem;
}

/* ---------- Products ---------- */
.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,154,60,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 122, 0, 0.10);
}
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1.7rem;
  margin: 0.9rem 0 0.7rem;
  color: var(--text);
}
.card p { color: var(--muted); margin: 0; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.pill-live { background: rgba(123,192,67,0.12); color: var(--green-bright); }
.pill-live .dot { background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); animation: blink 2s ease-in-out infinite; }
.pill-soon { background: rgba(255,154,60,0.12); color: var(--ember); }
.pill-soon .dot { background: var(--ember); }
.pill-free { background: rgba(255,255,255,0.06); color: var(--muted); }
.pill-free .dot { background: var(--muted); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.6rem;
  display: grid;
  gap: 0.55rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}
.card .btn { margin-top: auto; align-self: flex-start; }

.card-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-bright) !important;
  margin: 0 0 0.7rem !important;
  letter-spacing: -0.01em;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.card-actions .btn { margin-top: 0; }

/* Feature card (UglyDMARC) — spans full row, split layout */
.card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  padding: 2.5rem;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,122,0,0.10), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.card-feature h3 { font-size: 2.3rem; }
.card-feature .feature-list { margin-bottom: 1.8rem; }
.card-feature-body { display: flex; flex-direction: column; }
.card-feature-aside { display: flex; align-items: center; }

/* Terminal mock */
.terminal {
  width: 100%;
  background: #0a0806;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(255,122,0,0.05), 0 20px 40px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a221a; }
.terminal-bar span:nth-child(1){ background:#e0563f; }
.terminal-bar span:nth-child(2){ background:#e0a93f; }
.terminal-bar span:nth-child(3){ background:#7bc043; }
.terminal pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}
.c-mut { color: var(--dim); }
.c-grn { color: var(--green-bright); }
.c-org { color: var(--ember); }

/* ---------- About / Values ---------- */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.about-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.about .lead { margin: 1.2rem auto 0; text-align: center; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
  text-align: left;
}
.value {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}
.value-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.value h4 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }
.value p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta {
  max-width: var(--maxw);
  margin: 2rem auto 5rem;
  padding: 0 1.5rem;
}
.cta-inner {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255,122,0,0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.cta-inner .lead { margin: 1rem auto 2rem; text-align: center; }
.cta-inner h2 { max-width: 18ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 54px; margin-bottom: 1rem; }
.footer-brand p { color: var(--dim); font-size: 0.95rem; margin: 0; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin: 0 0 0.9rem;
}
.footer-cols a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ---------- Modals ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 4, 2, 0.78);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; align-items: center; justify-content: center; }
.modal {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 60px rgba(255,122,0,0.10);
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 1.6rem; color: var(--text); }
.modal-sub { color: var(--muted); margin: 0.6rem 0 1.5rem; font-size: 0.98rem; }
.modal input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0a0806;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 0.6rem;
}
.modal input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.18);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-error { display: none; color: #ff8a7a; font-size: 0.88rem; margin-bottom: 0.6rem; text-align: left; }
.cf-turnstile { margin: 0.4rem 0 1rem; display: flex; justify-content: center; }
.modal-close {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.modal-close:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero-glow, .pill-live .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .card-feature-aside { order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
}

@media (max-width: 620px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.5rem 1rem;
    background: rgba(12, 10, 8, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a:not(.nav-cta) {
    padding: 0.9rem 0.1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin-top: 0.75rem; text-align: center; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-brand img { height: 40px; }
  .card, .card-feature { padding: 1.6rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
}
