/* Over The Moon Digital — corporate site
   Plain CSS, single sans, warm copper accent on a dark corporate ground.
   Register: boring corporate tech, per Tony 2026-07-19. Crescent mark only.
   Dark theme is the committed look (Tony 2026-07-19). */

/* -----------------------------------------------------------------------------
   Tokens — dark corporate
   ---------------------------------------------------------------------------- */
:root {
  --bg:            #0f1114;     /* near-black corporate ground */
  --surface:       #171a1f;     /* elevated card */
  --surface-2:     #14171b;     /* recessed band */
  --text:          #f3f4f6;
  --text-soft:     #c4c8ce;
  --text-muted:    #939aa4;
  --text-dim:      #6b727c;

  --accent:        #cf7038;     /* warm copper, lifted for dark contrast */
  --accent-deep:   #e08a52;     /* hover goes brighter on dark */
  --accent-soft:   rgba(207, 112, 56, 0.22);

  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --font-sans:     "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     14px;

  --content-narrow: 680px;
  --content-wide:   1080px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  --space-10: 8.5rem;
}

/* -----------------------------------------------------------------------------
   Reset
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* -----------------------------------------------------------------------------
   Base
   ---------------------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) { body { font-size: 18px; line-height: 1.6; } }

::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-bottom: var(--space-3); }

p { margin-bottom: var(--space-4); max-width: 56ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
  transition: color 120ms, text-decoration-color 120ms;
}
a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }

/* -----------------------------------------------------------------------------
   Utility
   ---------------------------------------------------------------------------- */
.wrap          { width: 100%; max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--space-5); }
.wrap--narrow  { max-width: var(--content-narrow); }

/* -----------------------------------------------------------------------------
   Top bar
   ---------------------------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  max-width: var(--content-wide);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.brand__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: var(--space-6);
  align-items: center;
}
.nav a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-soft);
}
.nav a:hover { color: var(--accent); }
@media (min-width: 760px) { .nav { display: flex; } }

.topbar__cta { display: none; }
@media (min-width: 560px) { .topbar__cta { display: inline-flex; } }

/* -----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  min-height: 46px;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #ffffff; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--small { padding: 0.55rem 1rem; font-size: 0.95rem; min-height: 38px; }
.btn__arrow { display: inline-block; transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* -----------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------------- */
.hero {
  padding: var(--space-9) 0 var(--space-8);
}
@media (min-width: 960px) { .hero { padding: var(--space-10) 0 var(--space-9); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}
.hero__headline .accent { color: var(--accent); }

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* -----------------------------------------------------------------------------
   Section
   ---------------------------------------------------------------------------- */
.section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}
.section--surface { background: var(--surface-2); border-top-color: transparent; }
.section--last { border-bottom: 1px solid var(--border); }

.section__head {
  margin-bottom: var(--space-7);
  max-width: 60ch;
}
.section__title { letter-spacing: -0.024em; margin-bottom: var(--space-3); }
.section__lede { color: var(--text-muted); font-size: 1.05rem; }

/* -----------------------------------------------------------------------------
   Products (hosting/automation + shop software cards)
   ---------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 800px) { .products { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.product h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.018em;
}
.product__label {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: var(--space-5);
}
.product__pitch {
  color: var(--text-soft);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.product__cta { align-self: flex-start; }

/* -----------------------------------------------------------------------------
   Free tools — plain prose over hairline rules
   ---------------------------------------------------------------------------- */
.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) { .tools { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }

.tool {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.tool h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.012em;
}
.tool h3 a { color: var(--text); text-decoration-color: var(--border-strong); }
.tool h3 a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.tool p {
  color: var(--text-soft);
  font-size: 1rem;
  margin: 0;
  max-width: none;
}

.section__note {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 64ch;
}

/* -----------------------------------------------------------------------------
   Story
   ---------------------------------------------------------------------------- */
.story-block p {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--text);
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

/* -----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer__brand p { color: var(--text-muted); max-width: 36ch; margin-top: var(--space-3); font-size: 0.95rem; }
.footer__col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.footer__col ul li { margin-bottom: var(--space-2); font-size: 0.95rem; }
.footer__col a { color: var(--text-soft); text-decoration: none; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* -----------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------------- */
.notfound {
  padding: var(--space-10) 0;
  text-align: center;
}
.notfound h1 { margin-bottom: var(--space-4); }
.notfound p { margin: 0 auto var(--space-6); color: var(--text-muted); }

/* -----------------------------------------------------------------------------
   Print
   ---------------------------------------------------------------------------- */
@media print {
  body { background: white; color: black; }
  .topbar, .footer { display: none; }
  a { color: black; text-decoration: underline; }
}
