/* ==========================================================================
   PhonixForge marketing site — styles
   Premium, minimal B2B technology aesthetic. No external assets.
   ========================================================================== */

:root {
  --bg: #0d1220;
  --bg-alt: #0a0f1a;
  --surface: #121a2b;
  --surface-2: #0f1728;
  --border: #24344f;
  --text: #e8ecf4;
  --muted: #a6b1c6;
  --accent: #7aa2ff;
  --accent-strong: #4f7dff;
  --maxw: 1100px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.14; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 .5em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--accent); font-weight: 600; margin: 0 0 1rem;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 32, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--accent-strong); box-shadow: 0 0 0 3px rgba(79, 125, 255, .18); }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a { color: var(--muted); font-weight: 500; }
.primary-nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 10px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #eef2f8; color: #0d1220; }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.hero-inner { max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.1rem; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 62ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 24ch; }
.section-note { color: var(--muted); margin-top: 2rem; max-width: 72ch; font-size: .98rem; }

/* Cards ------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }

/* Steps ------------------------------------------------------------------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.step-number { font-family: var(--mono); color: var(--accent); font-size: .9rem; letter-spacing: .12em; display: block; margin-bottom: .8rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }

/* Contact ----------------------------------------------------------------- */
.contact-inner { max-width: 640px; text-align: center; }
.contact-inner h2 { margin-inline: auto; }
.contact-inner .lede { margin-inline: auto; }
.contact-email { color: var(--muted); margin-top: 1.3rem; font-size: .95rem; }
.privacy-note { margin-top: 2.6rem; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent-strong); border-radius: 10px; padding: 1.25rem 1.4rem; }
.privacy-note h3 { font-size: 1rem; margin-bottom: .4rem; }
.privacy-note p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.footer-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-note { color: var(--muted); font-size: .9rem; flex-basis: 100%; margin: 0; }
.footer-copy { color: var(--muted); font-size: .85rem; flex-basis: 100%; margin: 0; }

/* Mobile navigation ------------------------------------------------------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 820px) {
  .card-grid, .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem; display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: .25rem; width: 100%; }
  .primary-nav ul a { display: block; padding: .7rem 0; }
  .nav-cta { margin-top: .8rem; text-align: center; }
  .footer-nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
