:root {
  --bg:            #060807;
  --bg-soft:       #090c0a;
  --panel:         #0c100d;
  --border:        #1b211c;
  --border-strong: #2b342c;
  --text:          #e9ede8;
  --muted:         #8f9a90;
  --accent:        #c8ff4d;
  --accent-dim:    rgba(200, 255, 77, .1);
  --danger:        #ff6b5c;
  --good:          #c8ff4d;
  --radius:        2px;
  --maxw:          1120px;
  --sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fine blueprint grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(233,237,232,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,237,232,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--accent); color: #0a0c08; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4 { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0c08;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(200, 255, 77, .3);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 8, 7, .85);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 0; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand .logo {
  width: 38px; height: 38px; flex: none; display: inline-flex;
  filter: drop-shadow(0 0 12px rgba(200, 255, 77, .18));
}
.brand .logo svg { width: 100%; height: 100%; display: block; }

/* Wordmark: "CodedBy" + accent "Ismail" */
.wordmark { display: inline-flex; align-items: baseline; font-size: 18px; letter-spacing: .2px; }
.wm-prefix { font-weight: 700; color: var(--text); }
.wm-name { font-weight: 700; color: var(--accent); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a.link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.nav-links a.link:hover { color: var(--accent); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 76px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  padding: 8px 16px; border-radius: var(--radius);
  background: rgba(12, 16, 13, .6);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,77,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(200,255,77,0); }
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.02;
  margin: 26px 0 20px;
  letter-spacing: -2px;
  font-weight: 700;
}
.hero h1 .grad {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero h1 .grad { color: var(--accent); }
}
.caret {
  color: var(--accent);
  -webkit-text-stroke: 0;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.stat { border-left: 2px solid var(--accent); padding-left: 16px; }
.stat .num { font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .kicker,
.kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.kicker::before { content: "// "; opacity: .7; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 12px; letter-spacing: -1px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Services grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, border-color .18s ease;
}
.card::before {
  content: "";
  position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.3px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Packages ---------- */
.pricing { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  position: relative;
}
.price-card.featured::after {
  content: "Most popular";
  position: absolute; top: -12px; left: 28px;
  background: var(--accent);
  color: #0a0c08;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.price-card .tier {
  font-family: var(--mono);
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.price-card .desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.price-card li .tick { color: var(--good); font-family: var(--mono); font-weight: 600; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}
.step .n { font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.step h4 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -.2px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Enquiry form ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-info h2 { font-size: clamp(28px, 4vw, 38px); margin: 12px 0; letter-spacing: -1px; }
.contact-info p { color: var(--muted); font-size: 16px; }
.contact-info .feature { display: flex; gap: 14px; margin-top: 24px; align-items: flex-start; }
.contact-info .feature .dot {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--accent);
}
.contact-info .feature h4 { margin: 0 0 2px; font-size: 16px; }
.contact-info .feature p { margin: 0; font-size: 14px; }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #566058; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.form-panel .btn { width: 100%; justify-content: center; margin-top: 6px; }
.fineprint { font-family: var(--mono); font-size: 11px; letter-spacing: .4px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Flash messages ---------- */
.flashes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid;
}
.flash.error { background: rgba(255,107,92,.08); border-color: rgba(255,107,92,.45); color: #ffb4ab; }
.flash.success { background: var(--accent-dim); border-color: rgba(200,255,77,.45); color: var(--accent); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .4px;
}

/* ---------- Thanks / Admin pages ---------- */
.centered { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.centered .badge {
  width: 68px; height: 68px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 30px; color: var(--accent);
  margin: 0 auto 24px;
  box-shadow: 0 0 24px rgba(200, 255, 77, .12);
}
.centered h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -1px; }
.centered p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 28px; }

table.enq { width: 100%; border-collapse: collapse; font-size: 14px; }
table.enq th, table.enq td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.enq th {
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 500;
}
table.enq tr:hover td { background: var(--panel); }

/* ================= Site builder ================= */
.builder { padding-top: 64px; }
.hidden { display: none !important; }

.stepper {
  list-style: none; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 36px;
}
.stepper li {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  background: var(--panel);
}
.stepper li.active { color: var(--accent); border-color: var(--accent); }

/* Template cards */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .tpl-grid { grid-template-columns: 1fr; max-width: 440px; } }
.tpl-card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--sans);
  transition: transform .15s ease, border-color .15s ease;
}
.tpl-card:hover, .tpl-card.selected { border-color: var(--accent); transform: translateY(-3px); }
.tpl-thumb {
  display: block; height: 110px;
  background: #101511;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 14px;
  overflow: hidden;
}
.tpl-thumb i { display: block; background: var(--border-strong); border-radius: 2px; }
.tpl-thumb .t-bar { height: 7px; margin: 7px 0; }
.tpl-thumb .t-bar.w50 { width: 50%; } .tpl-thumb .t-bar.w60 { width: 60%; }
.tpl-thumb .t-bar.w70 { width: 70%; } .tpl-thumb .t-bar.w75 { width: 75%; }
.tpl-thumb .t-bar.w90 { width: 90%; }
.tpl-thumb .center { margin-left: auto; margin-right: auto; }
.tpl-thumb .t-block { height: 34px; margin: 8px 0; background: var(--accent-dim); border: 1px solid rgba(200,255,77,.3); }
.tpl-thumb .t-ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; margin: 2px auto 8px; }
.tpl-thumb .t-pill { width: 40%; height: 12px; border-radius: 999px; background: var(--accent-dim); border: 1px solid rgba(200,255,77,.3); margin-top: 10px; }
.tpl-thumb-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl-thumb-shop .t-sq { height: 100%; min-height: 34px; }
.tpl-name { display: block; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.tpl-desc { display: block; color: var(--muted); font-size: 14px; }

/* Customise form */
.bform {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 720px;
}
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--sans);
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  outline-offset: 2px;
}
.swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.bnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Stripe guided flow */
.stripe-flow {
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 8px;
  background: rgba(200,255,77,.03);
}
.sf-badge {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: #0a0c08; background: var(--accent);
  padding: 3px 10px; border-radius: var(--radius);
}
.sf-head h4 { margin: 12px 0 4px; font-size: 17px; }
.sf-head p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.sf-step { display: flex; gap: 14px; margin-bottom: 18px; }
.sf-step:last-child { margin-bottom: 0; }
.sf-step .n {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent);
}
.sf-step strong { font-size: 15px; }
.sf-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.sf-toggle { display: flex; gap: 8px; margin-top: 10px; }
.sf-opt {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  padding: 9px 16px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.sf-opt.selected { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* Preview chrome */
.pv-chrome {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
}
.pv-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.pv-url {
  font-family: var(--mono);
  font-size: 12px; color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 14px;
  margin-left: 10px;
}
.pv-frame { background: #fff; }

/* Price reveal */
.price-reveal {
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px 30px;
  margin-top: 20px;
  max-width: 860px;
}
.pr-amount { font-size: 46px; font-weight: 700; letter-spacing: -1px; color: var(--accent); }
.pr-note { font-family: var(--mono); font-size: 12px; letter-spacing: .4px; color: var(--muted); max-width: 220px; }
.pr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pr-list li { display: flex; gap: 10px; font-size: 14px; }
.pr-list .tick { color: var(--good); font-family: var(--mono); font-weight: 600; }

.mismatch { color: var(--danger); font-size: 13px; font-family: var(--mono); margin: -8px 0 14px; }

/* Homepage builder promo strip */
.builder-promo { border-top: 1px solid var(--border); }
.promo-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 36px;
}
.promo-inner h2 { margin: 10px 0 8px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.8px; }
.promo-inner p { margin: 0; color: var(--muted); font-size: 15px; max-width: 520px; }
