/* Retentio — site.retent.io
   Boutique DevOps-as-a-service / cloud management studio.
   Hand-crafted dark theme (no framework). Shared across all pages. */

:root {
  --bg: #0a0c11;
  --bg-2: #0e1118;
  --panel: #12161f;
  --panel-2: #161b26;
  --ink: #eef1f6;
  --muted: #9aa3b2;
  --faint: #6b7482;
  --line: #212838;
  --accent: #ff7a1a;
  --accent-2: #35d0c0;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255, 122, 26, .10), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(53, 208, 192, .08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 19px; }
p { color: var(--muted); }
.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; cursor: pointer; text-decoration: none;
  border-radius: 10px; padding: 11px 20px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s, color .15s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #10121a; font-weight: 650; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Header + primary nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 17, .72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, .16); }
.nav .primary { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav .spacer { margin-left: auto; }
.navlink {
  position: relative; text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; font-size: 15px;
  transition: color .15s, background .15s;
}
.navlink:hover, .navlink.active { color: var(--ink); background: rgba(255, 255, 255, .04); }
.navlink.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Dropdown (secondary nav in header) */
.has-dd { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; }
.dd-toggle .caret { transition: transform .15s; font-size: 11px; opacity: .8; }
.has-dd.open .dd-toggle .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  display: none; grid-template-columns: 1fr; gap: 2px;
}
.has-dd.open .dropdown { display: grid; }
.dditem { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.dditem:hover { background: rgba(255, 255, 255, .05); }
.dditem strong { display: block; font-size: 14px; }
.dditem span { display: block; font-size: 12.5px; color: var(--faint); }

/* Mobile nav */
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }
.mobile-only { display: none; }

@media (max-width: 860px) {
  .hamburger { display: block; }
  .header-cta { display: none; }
  .mobile-only { display: block; }
  .nav .primary {
    position: fixed; inset: 66px 0 auto 0; margin: 0; padding: 12px 16px 20px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .22s ease; box-shadow: var(--shadow);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav.open .primary { transform: translateY(0); }
  .navlink { padding: 12px; font-size: 16px; }
  .dropdown { position: static; display: grid; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 10px; }
  .has-dd .dd-toggle { padding: 12px; width: 100%; justify-content: space-between; }
}

/* Sections */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.hero { padding: 96px 0 64px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kicker-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--faint); font-size: 13px; }
.kicker-row b { color: var(--muted); font-weight: 600; }

.section-head { max-width: 62ch; margin-bottom: 34px; }

/* Grid + cards */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: rgba(255, 122, 26, .5); transform: translateY(-3px); }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 122, 26, .12); color: var(--accent); font-size: 18px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }
a.card { text-decoration: none; color: inherit; }
.card .more { color: var(--accent); font-size: 13px; margin-top: 12px; display: inline-block; }

/* Secondary nav (services page) */
.subnav {
  position: sticky; top: 66px; z-index: 20;
  background: rgba(10, 12, 17, .82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav .row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav .row::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--line); }
.svc-block { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 132px; }
.svc-block:last-child { border-bottom: 0; }
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; gap: 20px; } }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding: 6px 0 6px 26px; color: var(--muted); font-size: 14.5px; }
.checks li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 122, 26, .35), var(--shadow); }
.plan .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan .price { font-size: 30px; font-weight: 750; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--faint); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); }
.plan .btn { margin-top: auto; justify-content: center; }

/* Showcase / work */
.demo { overflow: hidden; }
.demo .frame {
  aspect-ratio: 16 / 9; border-radius: 10px; margin-bottom: 16px;
  background:
    linear-gradient(120deg, rgba(255, 122, 26, .16), rgba(53, 208, 192, .12)),
    var(--panel-2);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--faint); font-size: 13px; letter-spacing: .06em;
  position: relative;
}
.demo .frame .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; }
.badge { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* CTA band */
.cta-band { background: linear-gradient(180deg, rgba(255,122,26,.08), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 44px 0; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Contact modal (injected by site.js) */
.overlay { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.72); padding: 16px; }
.overlay.open { display: flex; }
.modal { width: 100%; max-width: 470px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.field { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; background: #0a0c11; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--ink); font: inherit; font-size: 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 104px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.msg { margin-top: 14px; font-size: 14px; }
.msg.error { color: var(--danger); }
