/* ==========================================================================
   Fuzail Digital Services — stylesheet
   Design language: "the receipt" — ecommerce marketing agency, so the
   visual system borrows from POS receipts, price tags and checkout UI.
   ========================================================================== */

:root {
  /* Color */
  --ink:        #0F1226;   /* page background */
  --panel:      #171B3A;   /* card surface */
  --panel-2:    #1F2447;   /* raised surface / hover */
  --line:       #2B3062;   /* hairline borders on dark */
  --coral:      #C6FF3D;   /* primary accent, CTAs */
  --coral-dim:  #94c02e;
  --lime:       #C6FF3D;   /* secondary accent, sparing */
  --paper:      #F5F3EC;   /* receipt paper */
  --ink-on-paper: #201D18;
  --text:       #F2F1F7;
  --text-muted: #9296C0;
  --text-faint: #5D6191;
  --border: #b9b4a3;

  /* Type */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --max-w: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--coral);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-4);
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.section {
  padding: var(--space-6) 0;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: #1A0A05;
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(255, 90, 60, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-small { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---------------------------------- Nav ---------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
  
}
.nav.is-scrolled {
  background: rgba(15, 18, 38, 0.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  border-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo img {
  width: 60px; height: 60px;
  border-radius: 9px;
  object-fit: cover;
}

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--coral), var(--coral-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #1A0A05;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.3em 0;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--coral);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta .btn { display: none; }
@media (min-width: 860px) {
  .nav-cta .btn { display: inline-flex; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  width: 16px; height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--ink);
  z-index: 90;
  padding: var(--space-4) var(--space-3);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
body.menu-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; }
@media (min-width: 860px) { .mobile-menu { display: none; } }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: calc(var(--space-6) + 3rem) 0 var(--space-6);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(255, 90, 60, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  margin-bottom: var(--space-3);
}
.hero h1 .accent { color: var(--coral); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 0.9em;
}

/* -- Receipt widget -- */
.receipt-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.receipt {
  background: var(--paper);
  color: var(--ink-on-paper);
  width: min(100%, 320px);
  padding: var(--space-3) var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  position: relative;
  clip-path: polygon(
    0% 1%, 4% 0%, 8% 1.4%, 12% 0%, 16% 1.4%, 20% 0%, 24% 1.4%, 28% 0%,
    32% 1.4%, 36% 0%, 40% 1.4%, 44% 0%, 48% 1.4%, 52% 0%, 56% 1.4%, 60% 0%,
    64% 1.4%, 68% 0%, 72% 1.4%, 76% 0%, 80% 1.4%, 84% 0%, 88% 1.4%, 92% 0%,
    96% 1.4%, 100% 0%, 100% 100%, 0% 100%
  );
}
.receipt-head {
  text-align: center;
  border-bottom: 1px dashed var(--border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}
.receipt-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.receipt-head span { color: #6d6a60; font-size: 0.72rem; }

.receipt-items { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.receipt-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.4em 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.receipt-items li.is-in { opacity: 1; transform: translateY(0); }
.receipt-items li .qty { color: #8a8577; flex-shrink: 0; }
.receipt-items li .name { flex: 1; }
.receipt-items li .check { color: var(--coral-dim); font-weight: 700; }

.receipt-total {
  border-top: 1px dashed var(--border);
  padding-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.receipt-foot {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 0.72rem;
  color: #6d6a60;
  letter-spacing: 0.05em;
}
.receipt-barcode {
  height: 34px;
  margin-top: var(--space-2);
  background: repeating-linear-gradient(90deg, #201d18 0, #201d18 2px, transparent 2px, transparent 5px, #201d18 5px, #201d18 6px, transparent 6px, transparent 10px);
  opacity: 0.85;
}

/* ------------------------------ Ticker strip ------------------------------ */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.ticker-track span b { color: var(--lime); font-weight: 600; }
.ticker-track span::after { content: "•"; color: var(--text-faint); margin-left: var(--space-3); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------- Services -------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--coral-dim);
  background: var(--panel-2);
}
.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--line);
  z-index: 0;
  line-height: 1;
  transition: color 0.4s;
}
.service-card:hover::before { color: var(--panel-2); }

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--coral);
  background: rgba(255, 90, 60, 0.1);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 999px;
  padding: 0.3em 0.8em;
  display: inline-block;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.service-card h3 {
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2);
}
.service-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5em;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.service-list li::before {
  content: "→";
  color: var(--coral);
  font-family: var(--font-mono);
}
.service-card .btn { position: relative; z-index: 1; }

/* -------------------------------- Process -------------------------------- */

.process-list {
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--line); }
.process-num {
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 1.1rem;
  padding-top: 0.15em;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.process-step p { color: var(--text-muted); margin: 0; max-width: 60ch; }

/* --------------------------------- Stats ---------------------------------- */

.stats-band {
  background: var(--panel);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 780px) {
  .stats-band { grid-template-columns: repeat(4, 1fr); }
}
.stat b {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--lime);
  display: block;
  align-items: center;
}
.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --------------------------------- Work ----------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
.work-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-5px); }
.work-browser {
  background: #0B0D1E;
  padding: 0.6em 0.8em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  border-bottom: 1px solid var(--line);
}
.work-browser i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  display: inline-block;
}
.work-canvas {
  height: 190px;
  position: relative;
}
.work-canvas.fashion { background: linear-gradient(135deg, #3b2b5e, #a34a6f); }
.work-canvas.beauty { background: linear-gradient(135deg, #6e3b2b, #d9a441); }
.work-canvas.home { background: linear-gradient(135deg, #1e4d4a, #57b399); }
.work-canvas.tech { background: linear-gradient(135deg, #202659, #4f5fd6); }
.work-info { padding: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.work-info h4 { margin: 0; font-size: 1rem; }
.work-info span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  flex-shrink: 0;
}

/* -------------------------------- Contact --------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 0.85fr; }
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.field { display: grid; gap: 0.4em; }
.field label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--coral);
  outline: none;
}
.field-row { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-status {
  font-size: 0.9rem;
  border-radius: var(--radius-s);
  padding: 0.8em 1em;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(198, 255, 61, 0.1); color: var(--lime); border: 1px solid rgba(198,255,61,0.35); }
.form-status.err { background: rgba(255, 90, 60, 0.1); color: var(--coral); border: 1px solid rgba(255,90,60,0.35); }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* -- cart / plan summary -- */
.cart {
  background: var(--paper);
  color: var(--ink-on-paper);
  border-radius: var(--radius-l);
  padding: var(--space-3);
  position: sticky;
  top: 90px;
}
.cart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); }
.cart-head h3 { font-size: 1rem; margin: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-head span { font-family: var(--font-mono); font-size: 0.75rem; color: #6d6a60; }

.cart-options { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: 0.5em; }
.cart-options li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em 0.7em;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cart-options li:hover { background: #ece8da; }
.cart-options li.checked { border-color: var(--coral-dim); background: #efe4dd; }
.cart-options input { accent-color: var(--coral-dim); }
.cart-options label { font-size: 0.88rem; cursor: pointer; flex: 1; }

.cart-summary {
  border-top: 1px dashed var(--border);
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.cart-summary-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; min-height: 1.6em; }
.cart-summary-list li { display: flex; justify-content: space-between; padding: 0.2em 0; }
.cart-summary-empty { color: #8a8577; font-style: italic; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px dashed var(--border); padding-top: 0.5em; }

/* --------------------------------- Footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-top {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand p { color: var(--text-muted); max-width: 40ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.footer-col a { color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 0.7em; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, transform 0.25s;
}
.social-row a:hover { border-color: var(--coral); transform: translateY(-2px); }
.social-row svg { width: 15px; height: 15px; }

/* ------------------------------ Scroll reveal ------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
