/* NGINXCACHE.COM — product site
   Identity: Navy + Blue + Cyan = trust/hosting/control panel.
             Orange = speed / cache / NGINX performance (accent only). */

:root {
  --navy-900: #061B3A;
  --navy-800: #083A78;
  --blue-600: #147DF5;
  --blue-500: #1D8CFF;
  --cyan-500: #13C7D8;
  --cyan-100: #E9FBFD;
  --orange-500: #FF8500;
  --orange-400: #FFB000;

  --text-main: #07162E;
  --text-muted: #4B5B73;
  --bg-main: #FFFFFF;
  --bg-soft: #EEF7FF;
  --border: #D7E1EE;

  --ink-on-navy: #EAF2FF;
  --muted-on-navy: #93AAC9;

  --shadow: 0 1px 2px rgba(7,22,46,.05), 0 10px 30px rgba(7,22,46,.07);
  --shadow-lg: 0 24px 60px rgba(6,27,58,.28);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --grad-hero: linear-gradient(135deg, #061B3A 0%, #083A78 52%, #147DF5 100%);
  --grad-btn: linear-gradient(135deg, #147DF5 0%, #13C7D8 100%);
  --grad-speed: linear-gradient(135deg, #FF8500 0%, #FFB000 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--text-main); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
code, kbd, pre { font-family: var(--mono); }
img, svg { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.tight { padding: 58px 0; }
.section.soft { background: var(--bg-soft); }
.section.cyan { background: var(--cyan-100); }
.section h2 { font-size: 32px; margin-bottom: 10px; }
.section .lede { color: var(--text-muted); font-size: 17.5px; max-width: 740px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 13px;
}
.section.on-navy .eyebrow { color: var(--cyan-500); }

/* ---- "a product by CyberPanel.net" strip ---- */
.byline { background: #04122a; color: var(--muted-on-navy);
  font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.06); }
.byline .wrap { padding: 7px 22px; text-align: center; }
.byline a { color: var(--cyan-500); font-weight: 700; }
.byline .sep { opacity: .4; margin: 0 6px; }
@media (max-width: 560px){ .byline .sep, .byline { font-size: 12px; } }
.footer .byprod { margin-top: 12px; font-size: 13px; color: var(--muted-on-navy); }
.footer .byprod a { display: inline; color: var(--cyan-500); font-weight: 700; opacity: 1; }

/* ---- top bar (navy) ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,27,58,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; height: 66px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-on-navy); font-size: 14.5px; font-weight: 500; opacity: .82; }
.nav a:hover { color: #fff; opacity: 1; text-decoration: none; }
.nav a.active { color: #fff; opacity: 1; }
.nav a.active::after { content: ""; display: block; height: 2px; border-radius: 2px;
  margin-top: 5px; background: var(--grad-btn); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: transform .07s ease, box-shadow .2s ease, opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 22px rgba(20,125,245,.32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(19,199,216,.42); }
.btn-primary:active { transform: translateY(1px); }
.btn-speed { background: var(--grad-speed); color: #3a1c00; }
.btn-speed:hover { box-shadow: 0 12px 28px rgba(255,133,0,.4); }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-ghost.on-navy { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-navy:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.nav-toggle { display: none; margin-left: auto; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 8px 11px;
  color: #fff; cursor: pointer; font-size: 15px; }

/* ---- hero (navy gradient) ---- */
.hero { background: var(--grad-hero); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 360px at 82% 0%, rgba(19,199,216,.22), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 78px; padding-bottom: 84px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.06; margin-bottom: 18px; color: #fff; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan-500), #7fe3ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 code { font-size: .58em; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); color: #cfe6ff; padding: 3px 9px;
  border-radius: 7px; vertical-align: middle; }
.hero p.sub { font-size: 18.5px; color: var(--ink-on-navy); opacity: .9;
  margin-bottom: 28px; max-width: 540px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: var(--ink-on-navy);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px; border-radius: 999px;
}
.badge .b-dot { color: var(--orange-500); font-weight: 900; }

/* install command box */
.cmd {
  display: flex; align-items: center; gap: 12px;
  background: rgba(2,10,24,.55); color: #d9e9ff;
  border-radius: var(--radius-sm); padding: 14px 14px 14px 18px;
  font-family: var(--mono); font-size: 14px; margin: 0 0 24px;
  border: 1px solid rgba(255,255,255,.14);
}
.cmd .prompt { color: var(--cyan-500); user-select: none; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; }
.cmd button {
  background: rgba(255,255,255,.1); color: #dcebff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; padding: 6px 13px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: var(--sans); flex-shrink: 0;
}
.cmd button:hover { background: rgba(255,255,255,.16); }
.cmd button.copied { background: var(--orange-500); border-color: var(--orange-500); color: #2a1500; }

/* ---- compact page header (Features / Changelog) ---- */
.pagehead { background: var(--grad-hero); position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 320px at 88% 0%, rgba(19,199,216,.2), transparent 60%); }
.pagehead .wrap { position: relative; z-index: 1; padding: 66px 0 58px; }
.pagehead .eyebrow { color: var(--cyan-500); }
.pagehead h1 { color: #fff; font-size: 40px; margin-bottom: 12px; }
.pagehead p { color: var(--ink-on-navy); opacity: .9; max-width: 740px; font-size: 17.5px; }
.pagehead .meta { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.dirlist { columns: 3; column-gap: 24px; font-size: 14.5px; }
.dirlist li { break-inside: avoid; margin: 0 0 8px; list-style: none; color: var(--text-muted); }
.dirlist li code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px;
  color: var(--text-main); font-size: 13px; }
@media (max-width: 860px){ .dirlist { columns: 2; } }
@media (max-width: 560px){ .dirlist { columns: 1; } }

/* ---- panel / cards ---- */
.panel {
  background: var(--bg-main); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px; color: var(--text-main);
}
.panel-head .lights { display: flex; gap: 6px; margin-right: 4px; }
.panel-head .lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.panel-head .lights i:nth-child(1){ background:#ff5f57; }
.panel-head .lights i:nth-child(2){ background:#febc2e; }
.panel-head .lights i:nth-child(3){ background:#28c840; }
.panel-head .tag {
  margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
  color: #fff; background: var(--grad-speed); padding: 4px 11px; border-radius: 999px;
}
.panel-body { padding: 18px; }

/* ---- load-tester widget ---- */
.lt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.lt-stat { background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 14px; }
.lt-stat .k { font-size: 11.5px; color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; }
.lt-stat .v { font-size: 25px; font-weight: 800; color: var(--text-main);
  font-family: var(--mono); margin-top: 3px; }
.lt-stat .v small { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.lt-stat.speed { background: var(--cyan-100); border-color: #bfeef3; }
.lt-stat.speed .v { color: #0a8f9d; }
.lt-chart { height: 172px; position: relative; }
.lt-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted); }
.lt-progress { height: 6px; background: var(--bg-soft); border-radius: 999px;
  overflow: hidden; margin: 12px 0 4px; border: 1px solid var(--border); }
.lt-progress > i { display: block; height: 100%; width: 0;
  background: var(--grad-speed); transition: width .25s linear; }
.lt-caption { font-size: 12px; color: var(--text-muted); margin-top: 9px; line-height: 1.55; }
.lt-caption code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.lt-replay { margin-left: auto; background: var(--bg-soft); color: var(--blue-600);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: var(--sans); }
.lt-replay:hover { border-color: var(--blue-600); }

/* ---- grids ---- */
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--bg-main); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section.soft .feature { background: #fff; }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; margin-bottom: 15px; font-weight: 800; font-size: 15px; }
.feature.speed .ic { background: var(--grad-speed); color: #3a1c00; }
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }
a.feature:hover { border-color: var(--blue-600); text-decoration: none;
  transform: translateY(-2px); transition: .15s; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps .step { background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.steps .step::before { counter-increment: s; content: counter(s);
  font-family: var(--mono); font-weight: 800; font-size: 13px; color: #fff;
  background: var(--grad-btn); width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 13px; }
.steps .step h4 { font-size: 15px; margin-bottom: 5px; }
.steps .step p { color: var(--text-muted); font-size: 13.5px; }

/* ---- tables ---- */
.tablecard { background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th, table.t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
table.t th { background: var(--bg-soft); color: var(--text-main); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .05em; }
table.t tr:last-child td { border-bottom: none; }
table.t td code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px;
  font-size: 13px; color: var(--text-main); }
.price-amt { font-family: var(--mono); font-weight: 800; color: var(--blue-600); }

/* ---- pre code ---- */
pre.code { background: var(--navy-900); color: #d9e9ff; border: 1px solid #12305a;
  border-radius: var(--radius-sm); padding: 17px 19px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.65; }
pre.code .c { color: #6f8cb5; }

/* ---- long-form prose (Guide) ---- */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; padding-top: 18px;
  border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--text-main); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin: 0 0 7px; color: var(--text-main); }
.prose a { font-weight: 600; }
.prose code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px;
  font-size: 13.5px; color: var(--text-main); }
.prose pre { background: var(--navy-900); color: #d9e9ff; border: 1px solid #12305a;
  border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px;
  margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; }
.prose tr:last-child td { border-bottom: 0; }

/* ---- changelog ---- */
.release { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 22px; max-width: 860px; }
.release .rhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px; }
.release .ver { font-family: var(--mono); font-weight: 800; font-size: 20px; color: var(--text-main); }
.release .pill { font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; background: var(--cyan-100); color: #0a8f9d; }
.release .pill.latest { background: var(--grad-speed); color: #3a1c00; }
.release .date { color: var(--text-muted); font-size: 13.5px; }
.release h3 { font-size: 15px; margin: 18px 0 8px; color: var(--blue-600); }
.release ul { margin: 0 0 4px 20px; }
.release li { margin: 0 0 8px; color: var(--text-muted); font-size: 14.5px; }
.release li strong { color: var(--text-main); }

/* ---- pricing plans ---- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative; }
.plan.featured { border-color: var(--blue-600); box-shadow: 0 12px 32px rgba(20,125,245,.18); }
.plan.featured::before { content: "Start here"; position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%); background: var(--grad-speed); color: #3a1c00;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.plan .tier { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); }
.plan .lim { font-family: var(--mono); font-weight: 800; font-size: 38px; color: var(--text-main);
  line-height: 1.1; margin: 12px 0 2px; }
.plan .unit { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13.5px;
  color: var(--text-muted); flex: 1; }
.plan li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--border-2, #e7ecf3); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-500); font-weight: 800; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 22px; }
@media (max-width: 960px){ .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .plans { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq { max-width: 840px; }
.faq details { background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 17px 18px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-600); font-weight: 800; font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 18px 18px; color: var(--text-muted); font-size: 14.5px; }
.faq code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }

/* ---- callout ---- */
.callout { background: var(--cyan-100); border: 1px solid #bfeef3;
  border-radius: var(--radius); padding: 19px 22px; font-size: 14.5px; color: var(--text-main); }
.callout.speed { background: #fff4e6; border-color: #ffd9a8; }
.callout strong { color: var(--text-main); }

/* ---- footer (navy) ---- */
.footer { background: var(--navy-900); padding: 52px 0 40px; color: var(--muted-on-navy); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer img.flogo { height: 30px; margin-bottom: 14px; }
.footer p { color: var(--muted-on-navy); font-size: 14px; max-width: 420px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--cyan-500); margin-bottom: 14px; }
.footer a { display: block; color: var(--ink-on-navy); opacity: .82;
  font-size: 14px; margin-bottom: 9px; }
.footer a:hover { opacity: 1; color: #fff; }
.footer .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  color: var(--muted-on-navy); font-size: 13px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 58px 0; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar .wrap { gap: 12px; }
  .hero h1 { font-size: 31px; }
  .grid.c3, .grid.c2, .lt-grid, .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .cmd code { font-size: 12px; }
}

.mnav { display: none; }
.mnav.open { display: block; border-bottom: 1px solid rgba(255,255,255,.1); background: var(--navy-800); }
.mnav a { display: block; padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--ink-on-navy); font-weight: 500; }
.mnav a:hover { color: #fff; }

/* light, tasteful dark-mode: deepen the white sections, keep the navy identity */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #0b1a30; --bg-soft: #0f2240; --border: #1d3658;
    --text-main: #eaf2ff; --text-muted: #93AAC9;
  }
  body { background: var(--bg-main); }
  .feature, .section.soft .feature, .steps .step, .tablecard, .faq details, .panel { background: #0f2240; }
  .panel-head, table.t th { background: #112748; }
  .btn-ghost { color: #eaf2ff; }
  .callout { background: #0c2b3a; border-color: #14506a; }
  .callout.speed { background: #2e1e08; border-color: #5a3c12; }
}
