/* ==========================================================================
   Sevrix — design tokens
   ========================================================================== */

:root{
  /* color */
  --ink:        #121821;
  --ink-2:      #0E131A;
  --panel:      #1B2431;
  --panel-2:    #202B39;
  --line:       #2B3646;
  --line-soft:  #212B39;
  --text:       #EDF0F4;
  --muted:      #93A0B2;
  --muted-2:    #6C7889;
  --signal:     #3ED9A0;   /* status / "live" indicator — used sparingly, functionally */
  --signal-dim: #2A6B57;
  --flare:      #FF8B4D;   /* warm accent — CTAs, links, emphasis */
  --flare-dim:  #7A4A31;

  /* type */
  --f-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --f-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --fs-h1: clamp(2.4rem, 3.2vw + 1.4rem, 4.1rem);
  --fs-h2: clamp(1.7rem, 1.4vw + 1.3rem, 2.5rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.05rem;
  --fs-small: 0.92rem;
  --fs-label: 0.78rem;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --radius: 3px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }

p{ margin: 0 0 1em; color: var(--text); }
p.lede{ color: var(--muted); font-size: 1.1rem; max-width: 46ch; }

a{ color: var(--flare); text-decoration: none; }
a:hover{ text-decoration: underline; }

::selection{ background: var(--flare); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg{ display: block; max-width: 100%; }

.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono{ font-family: var(--f-mono); }

.eyebrow{
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  background: var(--flare);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary{
  background: var(--flare);
  border-color: var(--flare);
  color: var(--ink-2);
  font-weight: 600;
}
.btn-primary:hover{ background: #ffa06a; border-color: #ffa06a; transform: translateY(-1px); }
.btn-ghost{ color: var(--text); background: transparent; }
.btn-ghost:hover{ border-color: var(--muted-2); background: var(--panel); }
.btn-ghost::after, .btn-primary::after{ content: "→"; transition: transform .18s var(--ease); }
.btn:hover::after{ transform: translateX(3px); }

.btn-row{ display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 24, 33, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.logo{
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.logo:hover{ text-decoration: none; }
.logo .dot{ color: var(--signal); }
.nav-links{
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--f-mono);
  font-size: 0.92rem;
}
.nav-links a{ color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"]{ color: var(--flare); }
.nav-cta{
  border: 1px solid var(--line);
  padding: 0.5em 1em;
  border-radius: var(--radius);
  color: var(--text) !important;
}
.nav-cta:hover{ border-color: var(--flare); }

.nav-toggle{
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); width: 42px; height: 38px;
  font-family: var(--f-mono); font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 780px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s var(--ease);
  }
  .nav-links.open{ max-height: 320px; }
  .nav-links li{ width: 100%; }
  .nav-links a{ display: block; padding: 1rem var(--pad); border-top: 1px solid var(--line-soft); width: 100%; }
  .nav-cta{ border: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: clip;
}
.hero::before{
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(255,139,77,0.10), transparent 70%),
    radial-gradient(50% 50% at 85% 0%, rgba(62,217,160,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1{ max-width: 12ch; }
.hero .lede{ margin-top: 1.1rem; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
}

/* --- signature element: the live directory / status panel --- */

.status-panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.status-panel__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.status-panel__head .pulse{
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--signal);
}
.status-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(62,217,160,0.15);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference){
  .status-dot.live{ animation: blip 2.6s ease-in-out infinite; }
}
@keyframes blip{
  0%, 100%{ box-shadow: 0 0 0 3px rgba(62,217,160,0.15); }
  50%{ box-shadow: 0 0 0 6px rgba(62,217,160,0.06); }
}

.status-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 0.88rem;
}
.status-row:last-child{ border-bottom: none; }
.status-row .site{
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-row .uptime{ color: var(--muted); }
.status-row.next{
  color: var(--muted-2);
  border-top: 1px dashed var(--line);
  border-bottom: none;
}
.status-row.next .status-dot{
  background: transparent;
  border: 1px dashed var(--muted-2);
  box-shadow: none;
}
.status-row.next .site{ font-style: italic; }
.status-panel__foot{
  padding: 0.8rem 1.1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section{ padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head{ max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.divider{ border: none; border-top: 1px solid var(--line-soft); margin: 0; }

/* ==========================================================================
   Numbered process (Design / Build / Launch — a real sequence)
   ========================================================================== */

.process{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.process-step{
  background: var(--ink);
  padding: 2rem clamp(1.25rem, 2vw, 2rem);
}
.process-step .num{
  font-family: var(--f-mono);
  color: var(--flare);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}
.process-step h3{ margin-bottom: 0.5em; }
.process-step p{ color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }

@media (max-width: 780px){
  .process{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Spec list (hosting features — dashboard-style readout)
   ========================================================================== */

.spec-list{
  border-top: 1px solid var(--line-soft);
}
.spec-row{
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-row .key{
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  padding-top: 0.15em;
}
.spec-row .val h3{ font-size: 1.05rem; margin-bottom: 0.3em; }
.spec-row .val p{ color: var(--muted); margin: 0; font-size: 0.98rem; }

@media (max-width: 640px){
  .spec-row{ grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ==========================================================================
   Cards — services / portfolio
   ========================================================================== */

.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px){ .grid-2, .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
}

.site-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.site-card:hover{ border-color: var(--muted-2); transform: translateY(-2px); }
.site-card__status{
  display: flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal);
}
.site-card h3{ margin-bottom: 0.15em; }
.site-card .domain{
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-card p{ color: var(--muted); font-size: 0.96rem; margin-bottom: 0; flex-grow: 1; }
.site-card .visit{ font-family: var(--f-mono); font-size: 0.88rem; }

.site-card.placeholder{
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
}
.site-card.placeholder .site-card__status{ color: var(--muted-2); }
.site-card.placeholder h3{ color: var(--muted); }
.site-card.placeholder p{ color: var(--muted-2); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact{
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.contact .container{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.contact-email{
  font-family: var(--f-mono);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--text);
}
.contact-email:hover{ color: var(--flare); }
.contact h2{ margin-bottom: 0.3em; }
.contact p.lede{ margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
.site-footer .container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--muted-2);
}
.site-footer a{ color: var(--muted); }
.site-footer nav ul{
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-hero{
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero h1{ max-width: 20ch; }
.page-hero .lede{ margin-top: 1rem; }

/* ==========================================================================
   Coverage checker (ISP postcode lookup)
   ========================================================================== */

.coverage-check{
  margin-top: 1.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 560px;
}
.coverage-check label{
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.7em;
}
.coverage-check__row{
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.coverage-check input[type="text"]{
  flex: 1 1 220px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.95rem;
  padding: 0.85em 1em;
}
.coverage-check input[type="text"]::placeholder{ color: var(--muted-2); }
.coverage-check input[type="text"]:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.coverage-check__row .btn{ flex-shrink: 0; }
.coverage-check__note{
  margin: 1rem 0 0;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}
.coverage-check__note.confirmed{ color: var(--signal); }

@media (max-width: 480px){
  .coverage-check__row{ flex-direction: column; }
  .coverage-check__row .btn{ width: 100%; justify-content: center; }
}

/* ==========================================================================
   Plan box (ISP packages)
   ========================================================================== */

.plan-box{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.plan-box__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.plan-box__head span:last-child{ text-transform: none; letter-spacing: normal; }

.plan-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
@media (max-width: 900px){ .plan-grid{ grid-template-columns: 1fr; } }

.plan-card{
  background: var(--panel);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}
.plan-card .eyebrow{ margin-bottom: 0; }
.plan-card__price{
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  margin: 0;
}
.plan-card__price .amount{
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
}
.plan-card__price .period{
  font-family: var(--f-mono);
  color: var(--muted-2);
  font-size: 0.85rem;
}
.plan-card__spec{
  font-family: var(--f-mono);
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.plan-card p:not(.plan-card__spec){ color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.plan-card .btn{ margin-top: auto; justify-content: center; }

.plan-card--featured{ background: var(--panel-2); }
.plan-card--featured::before{
  content: "Most popular";
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  background: var(--flare);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3em 0.65em;
  border-radius: 999px;
}
