/* Knighton Tech — styles.css (regenerated, cleaned, optimized) */

/* =========================
   THEME TOKENS
========================= */
:root{
  /* Knighton Tech palette */
  --k-blue-1:#6DAEDB;
  --k-blue-2:#2892D7;
  --k-blue-3:#1D70A2;
  --k-ink:#1A1D1A;
  --k-red:#EF233C;

  /* Theme tokens */
  --bg:#0b1114;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
  --stroke:rgba(255,255,255,.14);

  --primary:var(--k-blue-2);
  --primary-strong:var(--k-blue-3);
  --accent:var(--k-red);

  --shadow:0 18px 60px rgba(0,0,0,.50);

  --radius:18px;
  --radius2:24px;
  --max:1100px;

  /* Spacing helpers */
  --gap:14px;
  --pad:16px;
  --pad2:18px;

  /* Focus ring */
  --ring:0 0 0 4px rgba(40,146,215,.18);
}

/* =========================
   BASE / RESET
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ background:#070b0d; } /* fallback behind the fixed background */

body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:none !important;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* Skip link */
.skip{
  position:absolute;
  left:-999px;
  top:10px;
}
.skip:focus{
  left:12px;
  z-index:999;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:12px;
}

/* =========================
   ANIMATED BACKGROUND (fixed to viewport)
========================= */
body::before{
  content:"";
  position:fixed;
  inset:-20%; /* overscan so scaling never shows edges */
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(40,146,215,.22), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(109,174,219,.16), transparent 62%),
    radial-gradient(900px 520px at 55% 95%, rgba(239,35,60,.08), transparent 65%),
    linear-gradient(180deg, #070b0d, var(--bg) 45%, #070b0d);
  animation: ktech-aurora 22s ease-in-out infinite alternate;
  will-change: transform, filter;
  transform: translate3d(0,0,0);
  filter: saturate(1.05);
}

/* Subtle vignette + texture */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(1200px 800px at 50% 100%, rgba(0,0,0,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.16;
}

/* Lift content above background layers */
.site-header,
main,
footer{
  position:relative;
  z-index:1;
}

@keyframes ktech-aurora{
  0%{
    transform: translate3d(-2%, -1%, 0) scale(1.02);
    filter: saturate(1.00) brightness(1.00);
  }
  50%{
    transform: translate3d(2%, 1%, 0) scale(1.04);
    filter: saturate(1.10) brightness(1.02);
  }
  100%{
    transform: translate3d(-1%, 2%, 0) scale(1.03);
    filter: saturate(1.05) brightness(1.00);
  }
}

/* =========================
   HEADER / NAV
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,17,20,.60);
  border-bottom: 1px solid var(--stroke);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-logo{
  height:34px;
  width:auto;
  display:block;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-name{ font-weight:800; letter-spacing:-0.02em; }
.brand-tag{ font-size:12px; color:var(--muted2); }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--muted);
  font-weight:600;
}
.nav a{
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{ background:rgba(255,255,255,.06); }
.nav a:focus-visible{
  outline:none;
  box-shadow: var(--ring);
}

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background:rgba(255,255,255,.82);
  border-radius:2px;
}

/* =========================
   SECTIONS / TYPOGRAPHY
========================= */
.section{ padding:76px 0; }
.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.hero{ padding:64px 0 40px; }

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}

.pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:600;
  margin:0 0 16px;
}

h1{
  margin:0 0 14px;
  font-size:clamp(32px, 4vw, 52px);
  letter-spacing:-0.04em;
  line-height:1.05;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width:62ch;
}

.section-head h2{
  margin:0 0 8px;
  letter-spacing:-0.03em;
  font-size:30px;
}
.section-head p{
  margin:0 0 22px;
  color:var(--muted);
  max-width:70ch;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-weight:800;
  cursor:pointer;
  transition: transform .10s ease, background .14s ease, opacity .14s ease, box-shadow .14s ease;
}
.btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.08); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:none; box-shadow:var(--ring); }

.btn-primary{
  background: linear-gradient(135deg, rgba(40,146,215,.95), rgba(29,112,162,.85));
  border-color: rgba(255,255,255,.16);
  position:relative;
  overflow:hidden;
}
.btn-secondary{ background:rgba(255,255,255,.08); }
.btn-ghost{ background:transparent; }

/* Button shine */
.btn-primary::after{
  content:"";
  position:absolute;
  inset:-60% -80%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  transform: translateX(-45%) rotate(12deg);
  transition: transform .75s ease;
  pointer-events:none;
}
.btn-primary:hover::after{
  transform: translateX(75%) rotate(12deg);
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* =========================
   CARDS / BADGES
========================= */
.card{
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background:var(--panel);
  box-shadow:var(--shadow);
  padding:var(--pad2);
}

/* Hero badges */
.hero-badges{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:18px;
}
.badge{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
}
.badge-kicker{ display:block; font-size:12px; color:var(--muted2); font-weight:800; }
.badge-value{ display:block; font-weight:900; margin-top:2px; }

/* Hero card glow */
.hero-card{ position:relative; }
.hero-card .glow{
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(520px 320px at 50% 35%, rgba(40,146,215,.22), transparent 70%),
    radial-gradient(430px 280px at 70% 60%, rgba(29,112,162,.18), transparent 70%);
  filter: blur(18px);
  z-index:-1;
}

.card-top h2{ margin:0 0 4px; letter-spacing:-0.02em; }
.card-top p{ margin:0 0 14px; color:var(--muted); }

/* Checklist */
.checklist{
  list-style:none;
  padding:0;
  margin:0 0 16px;
  display:grid;
  gap:10px;
}
.check{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:7px;
  background:rgba(40,146,215,.18);
  border:1px solid rgba(40,146,215,.28);
  margin-right:10px;
}

.card-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* =========================
   REVEAL ANIMATION (scroll)
========================= */
.reveal{
  opacity:0;
  transform: translateY(16px) scale(.99);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0) scale(1);
}

/* =========================
   GRIDS
========================= */
.grid-4,
.grid-3,
.grid-2{
  display:grid;
  gap:var(--gap);
}
.grid-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.grid-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.grid-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }

/* =========================
   SERVICE / PLAN / QUOTE / STEP CARDS
   + MICRO-INTERACTIONS
========================= */
.service,
.plan,
.quote-card,
.step,
.contact-card,
.card{
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.service:hover,
.plan:hover,
.quote-card:hover,
.step:hover,
.contact-card:hover,
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 46px rgba(0,0,0,.35);
}

/* Service cards */
.service{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  padding:var(--pad);
}
.service h3{ margin:0 0 8px; letter-spacing:-0.02em; }
.service p{ margin:0 0 12px; color:var(--muted); line-height:1.55; }

/* Shared lists */
.mini,
.bullets{
  margin:0;
  padding-left:18px;
  color:var(--muted2);
}
.mini li{ margin:6px 0; }
.bullets li{ margin:8px 0; }

/* Pricing blocks */
.pricing-block{
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  padding:var(--pad2);
}
.pricing-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.muted-line{
  margin:0;
  color:var(--muted);
  max-width:70ch;
}

/* Plans */
.plan{
  padding:var(--pad2);
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
}
.plan-top h4{ margin:0 0 6px; letter-spacing:-0.02em; }
.plan-sub{ margin:0 0 10px; color:var(--muted); }

.price{
  margin:10px 0 14px;
  font-size:28px;
  font-weight:900;
  letter-spacing:-0.03em;
}
.muted{ color:var(--muted2); font-weight:800; font-size:14px; }

.plan-featured{
  background:linear-gradient(180deg, rgba(40,146,215,.16), rgba(255,255,255,.05));
  border-color:rgba(255,255,255,.18);
}

/* Quote cards */
.quote-card{
  border-radius:var(--radius2);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  padding:var(--pad2);
}
.quote-card-accent{
  background:linear-gradient(180deg, rgba(40,146,215,.14), rgba(255,255,255,.05));
  border-color:rgba(255,255,255,.18);
}
.quote-card h4{
  margin:0 0 6px;
  letter-spacing:-0.02em;
}
.quote-card .muted{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.55;
}

/* Notes */
.quote-note{
  margin-top:14px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  padding:14px 16px;
}
.quote-note-title{
  font-weight:900;
  margin-bottom:8px;
}
.quote-note-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px 12px;
  color:var(--muted);
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}
.step{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  padding:var(--pad);
}
.step-num{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  background:rgba(29,112,162,.22);
  border:1px solid rgba(29,112,162,.30);
  margin-bottom:10px;
}
.step h3{ margin:0 0 6px; }
.step p{ margin:0; color:var(--muted); line-height:1.55; }

/* =========================
   FAQ
========================= */
.faq details{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  padding:14px 16px;
  margin-bottom:10px;
}
.faq summary{ cursor:pointer; font-weight:900; }
.faq summary:focus-visible{ outline:none; box-shadow: var(--ring); border-radius:12px; }
.faq p{ color:var(--muted); margin:10px 0 0; line-height:1.6; }

/* =========================
   CONTACT / FORM
========================= */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}

.contact-cards{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.contact-card{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  padding:14px 16px;
}

.kicker{ color:var(--muted2); font-weight:900; font-size:12px; margin-bottom:6px; }
.hint{ color:var(--muted2); font-size:12px; margin-top:6px; }

.form h3{ margin:0 0 12px; }

label{
  display:block;
  font-weight:800;
  color:rgba(255,255,255,.85);
  margin:12px 0;
}

/* Inputs */
input, select, textarea{
  width:100%;
  margin-top:8px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.92);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(40,146,215,.60);
  box-shadow:var(--ring);
}

/* Improved select styling (prevents washed-out dropdown) */
select{
  background-color: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  border: 1px solid var(--stroke);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:42px; /* room for arrow */
}

/* custom dropdown arrow */
label{ position:relative; }
label select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.80) 50%),
    linear-gradient(135deg, rgba(255,255,255,.80) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

/* option list (best-effort; Chromium/Firefox) */
select option{
  background-color:#0b1114;
  color:rgba(255,255,255,.92);
}
select option[value=""]{
  color:rgba(255,255,255,.55);
}
select:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* Checkbox line */
.checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight:700;
  color:rgba(255,255,255,.85);
  margin:10px 0 6px;
}
.checkline input{
  width:18px;
  height:18px;
  margin-top:2px;
}

.form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.fineprint{
  color:var(--muted2);
  font-size:12px;
  line-height:1.55;
  margin-top:14px;
}

/* =========================
   FOOTER
========================= */
.footer{
  padding:28px 0;
  border-top:1px solid var(--stroke);
  color:var(--muted2);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer-links{ display:flex; gap:14px; }
.footer a:focus-visible{
  outline:none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .quote-note-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .hero-badges{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
  body::before,
  body::after{
    animation:none !important;
  }
  .reveal{
    opacity:1 !important;
    transform:none !important;
  }
}
