/*
Theme Name: Forge Terminal
Description: Staging recreation of the forgewebservices.com look: dark terminal aesthetic, monospace type, electric-purple accent. Self-contained: no external fonts, scripts or requests. Staging only (noindex).
Version: 0.1.0
Author: Forge Web Services
Text Domain: forge-terminal
*/

:root {
  --bg: #07020b;            /* page */
  --surface: #0f0616;       /* cards, terminal, pills */
  --surface-2: #15101c;     /* dark buttons */
  --border: rgba(147, 51, 255, .18);
  --border-strong: rgba(147, 51, 255, .35);
  --purple: #7b00ec;        /* primary action */
  --purple-bright: #9333ff;
  --purple-accent: #c49cff;
  --text: #fff;
  --text-lead: rgba(255, 255, 255, .72);
  --text-body: rgba(255, 255, 255, .66);
  --text-muted: rgba(255, 255, 255, .6);
  --ok: #3ddc97;
  --radius: 3px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

/* Self-hosted JetBrains Mono (SIL OFL 1.1, see assets/fonts/OFL.txt): no third-party font requests. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--mono); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; background: #000; color: #fff; padding: 5px 10px; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; top: 0; z-index: 100; }
:focus-visible { outline: 2px solid var(--purple-accent); outline-offset: 2px; }

/* ---- staging strip ---- */
.staging-strip { background: #1a0a24; color: var(--purple-accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--border); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 2, 11, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 12px; font-size: 12.5px; color: rgba(255, 255, 255, .88); text-decoration: none; border-radius: var(--radius); }
.primary-nav a:hover { background: rgba(255, 255, 255, .05); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font: 500 14px/1 var(--mono); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--border-strong); }
.btn-primary { background: var(--purple); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-bright); border-color: var(--purple-bright); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.link-login { font-size: 13px; color: rgba(255, 255, 255, .85); text-decoration: none; }

/* ---- type ---- */
h1, h2, h3, h4 { font-family: var(--mono); margin: 0; color: #fff; }
h1 { font-size: clamp(30px, 5.2vw, 55px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; margin-bottom: 22px; overflow-wrap: anywhere; }
h2 { font-size: clamp(26px, 3.4vw, 37px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 18px; color: var(--text-body); }
.accent { background: linear-gradient(135deg, #e5cfff 0%, #9f66e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--purple-accent); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-lead); max-width: 680px; margin-bottom: 36px; }

/* ---- sections ---- */
.section { padding: 92px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { font-size: 16px; }
.divider { border-top: 1px solid rgba(255, 255, 255, .05); }

/* ---- hero ---- */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; background: radial-gradient(60% 55% at 20% 20%, rgba(123, 0, 236, .28), transparent 70%), radial-gradient(40% 40% at 90% 60%, rgba(147, 51, 255, .12), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--text-muted); }
.hero-points li::before { content: "✓ "; color: var(--ok); }

/* Grid children must be allowed to shrink, or a wide <pre> stretches the whole column on phones. */
.hero-grid > *, .grid > *, .footer-grid > * { min-width: 0; }

/* ---- terminal window ---- */
.terminal { background: #0a0410; border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(123, 0, 236, .18); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #05010a; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .4); }
.terminal pre { margin: 0; padding: 22px 22px 26px; font: 400 13px/1.9 var(--mono); color: rgba(255, 255, 255, .86); overflow-x: auto; }
.terminal .ok { color: var(--ok); } .terminal .dim { color: rgba(255, 255, 255, .5); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--purple-accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal .cursor { animation: none; } html { scroll-behavior: auto; } }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; color: #fff; margin-bottom: 6px; }
.stat span { font-size: 12.5px; color: var(--text-muted); }

/* ---- cards ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.card p { margin: 0; font-size: 14px; }
.card .price-line { margin-top: auto; color: var(--purple-accent); font-weight: 500; }
.card h3 small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-accent); font-weight: 500; margin-bottom: 8px; }
.tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-accent); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-body); }
.check-list li::before { content: "✓"; color: var(--ok); margin-right: 10px; }

/* ---- tool strip ---- */
.tools { padding: 56px 0; border-block: 1px solid rgba(255, 255, 255, .05); }
.tools p.tag { text-align: center; margin-bottom: 22px; color: var(--text-muted); }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: rgba(255, 255, 255, .5); font-size: 14px; }

/* ---- price comparison ---- */
.compare { padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.bar-row { display: grid; grid-template-columns: 220px 1fr 110px; gap: 16px; align-items: center; padding: 10px 0; font-size: 13.5px; color: var(--text-body); }
.bar { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: rgba(255, 255, 255, .35); }
.bar-row.us { color: #fff; font-weight: 700; }
.bar-row.us .bar i { background: linear-gradient(90deg, var(--purple), var(--purple-accent)); }
.bar-row b { text-align: right; }

/* ---- comparison table ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.matrix th, .matrix td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text-body); }
.matrix thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.matrix th:last-child, .matrix td:last-child { background: rgba(123, 0, 236, .1); color: #fff; font-weight: 500; }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 0; }
.matrix tbody th { color: #fff; font-weight: 500; }

/* ---- plans ---- */
.plan { position: relative; }
.plan.popular { border-color: var(--purple-bright); box-shadow: 0 0 0 1px var(--purple-bright), 0 20px 50px rgba(123, 0, 236, .25); }
.plan .badge { position: absolute; top: -12px; left: 24px; padding: 4px 10px; font-size: 11px; background: var(--purple); color: #fff; border-radius: var(--radius); }
.plan .amount { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.plan .amount small { font-size: 14px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.plan .for { font-size: 13px; color: var(--text-muted); margin: 0; }
.plan .btn { margin-top: auto; }

/* ---- steps ---- */
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step .n { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--purple-accent); font-weight: 700; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; }

/* ---- CTA ---- */
.cta { padding: 108px 0; text-align: center; background: radial-gradient(50% 70% at 50% 100%, rgba(123, 0, 236, .3), transparent 70%), var(--bg); border-top: 1px solid rgba(255, 255, 255, .05); }
.cta h2 { margin-inline: auto; max-width: 760px; }
.cta p { margin-inline: auto; max-width: 620px; font-size: 16px; }
.cta .hero-actions { justify-content: center; margin-top: 28px; }

/* ---- footer ---- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; margin-bottom: 40px; }
.site-footer h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .4); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---- generic content (index.php) ---- */
.content { padding: 80px 0; max-width: 780px; }
.content article { margin-bottom: 48px; }
.content a { color: var(--purple-accent); }
.entry-meta { font-size: 12px; color: var(--text-muted); margin: 8px 0 18px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  .bar-row { grid-template-columns: 1fr 90px; } .bar-row .bar { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; } .hero { padding: 72px 0 64px; }
  .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .primary-nav { order: 3; width: 100%; } .header-cta .link-login { display: none; }
}
