/* Uptown Website — site styles. Ported from the Lovable design tokens (dark navy / cyan). */

:root {
  --bg:        oklch(0.15 0.04 260);
  --bg-2:      oklch(0.18 0.04 260);
  --card:      oklch(0.20 0.04 260);
  --fg:        oklch(0.97 0 0);
  --muted:     oklch(0.65 0.03 260);
  --primary:   oklch(0.78 0.14 210);
  --primary-fg:oklch(0.12 0.05 230);
  --accent-2:  oklch(0.65 0.20 290);
  --danger:    oklch(0.65 0.24 25);
  --border:    oklch(1 0 0 / 10%);
  --input:     oklch(1 0 0 / 15%);
  --radius:    10px;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --container: 1200px;
  --header-h:  64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.lead  { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-fg); padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(100% - 3rem, var(--container)); } }

.icon { width: 24px; height: 24px; flex: none; }
.icon-lg { width: 32px; height: 32px; }
.icon-sm { width: 20px; height: 20px; }

/* Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--fg); white-space: nowrap; }
.brand span { color: var(--primary); }
.brand:hover { text-decoration: none; }
.brand--sm { font-size: 1.1rem; display: inline-block; margin-bottom: .75rem; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; gap: .25rem; }
.nav a:not(.btn) { display: block; padding: .5rem .75rem; border-radius: 6px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--fg); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); padding: .5rem; cursor: pointer; border-radius: 6px; }
.nav-toggle__close { display: none; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(18rem, 85vw);
    flex-direction: column; align-items: stretch; gap: .5rem;
    background: var(--bg-2); border-left: 1px solid var(--border);
    padding: 1.5rem 1rem;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: .25rem; }
  .nav a:not(.btn) { padding: .75rem; font-size: 1.05rem; }
  .nav__cta { margin-top: 1rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle__open { display: none; }
  body.nav-open .nav-toggle__close { display: block; }
}

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: color-mix(in oklab, var(--primary) 88%, white); }
.btn--outline { background: transparent; color: var(--fg); border-color: var(--input); }
.btn--outline:hover { background: color-mix(in oklab, var(--fg) 6%, transparent); }
.btn--lg { padding: .9rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--glow { box-shadow: 0 0 40px -10px color-mix(in oklab, var(--primary) 40%, transparent); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }

/* Sections ---------------------------------------------------------- */
.section { padding: 5rem 0; }
.section--alt { background: color-mix(in oklab, var(--card) 60%, transparent); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.section__head .lead { margin-inline: auto; }
.text-center { text-align: center; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }

.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 5.5rem 0; border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background: radial-gradient(circle at top right, var(--primary) 0%, transparent 40%);
}
.hero--left::before { background: radial-gradient(circle at top left, var(--primary) 0%, transparent 35%); }
.hero .container { position: relative; max-width: 52rem; }
.hero .lead { margin: 1.5rem auto 0; }
@media (min-width: 768px)  { .hero { padding: 7.5rem 0; } }
@media (min-width: 1024px) { .hero { padding: 9rem 0; } }

.highlight {
  background-image: linear-gradient(135deg, var(--primary), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Grids & cards ----------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--split { gap: 3rem; }
@media (min-width: 1024px) { .grid--split { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; position: relative;
}
.card--link:hover { border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.card .icon, .card .icon-lg { color: var(--primary); margin-bottom: 1rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.card__more { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.card__num {
  position: absolute; right: 1rem; top: .75rem; font: 700 2.25rem/1 var(--font-head);
  color: color-mix(in oklab, var(--primary) 15%, transparent);
}

.feature { display: flex; gap: 1rem; }
.feature__icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary);
}
.feature__icon--round { border-radius: 50%; width: 36px; height: 36px; }
.feature h3 { font-size: 1rem; margin-bottom: .25rem; font-family: var(--font-body); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-list { display: grid; gap: 1.5rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--fg); }

/* Comparison table -------------------------------------------------- */
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 34rem; }
.compare th, .compare td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { text-align: left; font-weight: 600; font-size: .9rem; color: var(--muted); }
.compare th:nth-child(3) { color: var(--primary); }
.compare td:first-child { font-weight: 500; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 36%; }
.compare .cell { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .875rem; }
.compare .cell--no { color: var(--muted); } .compare .cell--no .icon-sm { color: var(--danger); }
.compare .cell--yes .icon-sm { color: var(--primary); }

/* Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--fg); font: inherit;
  border: 1px solid var(--input); border-radius: 8px; padding: .65rem .85rem;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a8c0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center / 1rem; padding-right: 2.5rem; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { padding: .9rem 1rem; border-radius: 8px; font-size: .95rem; margin: 0; }
.form-status.is-ok { background: color-mix(in oklab, var(--primary) 12%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); }
.form-status.is-error { background: color-mix(in oklab, var(--danger) 12%, transparent); border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent); color: var(--danger); }

.contact-info h2 { font-size: 1.75rem; }
.contact-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--primary); }

/* Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.site-footer h3 { font: 600 .9rem/1.4 var(--font-body); margin-bottom: 1rem; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a:not(.brand) { color: var(--muted); }
.site-footer a:not(.brand):hover { color: var(--fg); }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer address p, .site-footer .muted { margin: 0 0 .5rem; }
.site-footer__legal { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .875rem; }

/* 404 ---------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 5rem; margin-bottom: .25rem; }

/* ---- SEO pass additions ------------------------------------------------ */
:root { --muted: oklch(0.72 0.03 260); }              /* ~7.9:1 on bg, ~7.3:1 on card */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container--narrow { max-width: 52rem; }
.lead--center { margin-inline: auto; }
.h-md { font-size: 1.5rem; }
.h-sm { font-size: 1.25rem; }
.form--spaced { margin-top: 1.5rem; }
.feature-list--spaced { margin-top: 1.5rem; }
.eyebrow { font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0 0 1.25rem; }

/* placeholder contrast (browser default fails on dark) */
.field ::placeholder { color: var(--muted); opacity: 1; }

/* step number: was 15% opacity decorative text — now a readable badge */
.card__num {
  position: absolute; right: 1.25rem; top: 1.25rem;
  font: 700 .8rem/1 var(--font-head); letter-spacing: .05em;
  color: var(--primary); opacity: 1;
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  border-radius: 999px; padding: .35rem .6rem;
}

/* breadcrumb */
.breadcrumb { border-bottom: 1px solid var(--border); font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin: 0 .5rem 0 .25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb [aria-current] { color: var(--fg); }

/* FAQ (details/summary) */
.faq { display: grid; gap: .75rem; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.5rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem/1 var(--font-head); color: var(--primary);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item[open] summary { border-bottom: 1px solid var(--border); }
.faq__body { padding: 1rem 1.5rem 1.25rem; }
.faq__body p { margin: 0; color: var(--muted); }

/* NAP blocks */
.nap p { margin: 0 0 .75rem; }
.nap a { color: var(--fg); }
.nap a:hover { color: var(--primary); }
.nap-card h3 { margin-bottom: 1rem; }
.contact-list.nap { display: grid; gap: 1.5rem; margin-top: 2rem; font-style: normal; }
.contact-list.nap .feature p { margin: 0; color: var(--muted); }
.contact-list.nap .feature a { color: var(--muted); }
.contact-list.nap .feature a:hover { color: var(--primary); }
.site-footer__title { font: 600 .9rem/1.4 var(--font-body); margin: 0 0 1rem; }
.site-footer .nap p { font-size: .9rem; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--fg); font-size: 1rem; width: auto; }

/* ---- Imagery (draft placements) ---------------------------------------- */
/* Backgrounds: image-set() picks .avif when present, .jpg otherwise.
   Drop an .avif with the same basename next to the .jpg and nothing else changes. */

.hero--bg::before {
  opacity: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Home: fibre strands, darkened so the H1 stays readable */
.hero--home::before {
  background-image: linear-gradient(180deg, oklch(0.15 0.04 260 / .72), oklch(0.15 0.04 260 / .94)), var(--img-home);
}
/* Hosting: blue cubes, blurred a touch so a small source doesn't look soft */
.hero--hosting::before {
  inset: -20px;
  filter: blur(3px);
  background-image: linear-gradient(90deg, oklch(0.15 0.04 260 / .92), oklch(0.15 0.04 260 / .70)), var(--img-hosting);
}

/* Split hero: text left, media right */
.hero--split { text-align: left; }
.hero--split .container { max-width: var(--container); display: grid; gap: 3rem; align-items: center; }
.hero--split .lead { margin-left: 0; }
.hero--split .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .hero--split .container { grid-template-columns: 1.1fr 1fr; } }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: auto; border-radius: 24px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--primary) 45%, transparent);
  transform: rotate(-2deg);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 24px; transform: rotate(3deg) translate(10px, 10px);
  border: 1px dashed color-mix(in oklab, var(--primary) 35%, transparent);
}
/* SEO illustration is on white: frame it with padding so it reads as a card, not a paste */
.hero__media--framed img { background: #fff; padding: 1rem; }

/* Inline media beside prose: soft radial mask blends the edges into the page */
.media-fade { position: relative; }
.media-fade img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 45%, transparent 100%);
}
/* Steps section on websites page: code image behind, very dim */
.section--code { position: relative; overflow: hidden; }
.section--code::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .10;
  background: var(--img-code) center / cover no-repeat;
}
.section--code .container { position: relative; }

/* VPS stack section: server-room collage behind translucent cards */
.section--racks {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, oklch(0.15 0.04 260 / .55), oklch(0.15 0.04 260 / .80)),
    var(--img-vps) center / cover no-repeat;
}
.section--racks .card {
  background: color-mix(in oklab, var(--card) 78%, transparent);
  backdrop-filter: blur(6px);
  border-color: oklch(1 0 0 / 14%);
}
.section--racks .section__head .lead { color: oklch(0.85 0.02 260); }

/* Links in running text: distinguishable without relying on colour alone (a11y) */
.prose a, .faq__body a, .lead a, .card p a {
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--primary) 55%, transparent);
}
.prose a:hover, .faq__body a:hover, .lead a:hover, .card p a:hover { text-decoration-color: var(--primary); }

.price-note { border-left: 3px solid var(--primary); padding: .75rem 1rem; background: color-mix(in oklab, var(--primary) 8%, transparent); border-radius: 0 8px 8px 0; color: var(--fg); }
.price-note strong { color: var(--primary); }
