/* ============================================
   Ali Hassan — Design Tokens
   Palette: near-black base, emerald accent, warm off-white text
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (utility)
   ============================================ */

:root {
  --bg: #0A0F0D;
  --bg-alt: #0F1613;
  --surface: #131C18;
  --surface-2: #17211C;
  --border: #223029;
  --border-soft: #1B2621;

  --emerald: #24C48C;
  --emerald-dim: #1B9A6C;
  --emerald-glow: rgba(36, 196, 140, 0.18);

  --text: #ECF1EE;
  --text-muted: #9BAAA3;
  --text-faint: #647069;

  --warm: #E8C27A;   /* used sparingly for the "rose/warm" mock accents */
  --rose: #D98E9C;
  --slate: #7C93A8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* subtle grain / gradient wash across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(36,196,140,0.08), transparent 45%),
    radial-gradient(circle at 100% 30%, rgba(36,196,140,0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

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

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.section-tag.center { text-align: center; }

.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
}
.section-sub.center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--emerald);
  color: #06120C;
  box-shadow: 0 0 0 0 var(--emerald-glow);
}
.btn-primary:hover { background: #2FDA9C; box-shadow: 0 6px 24px var(--emerald-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 13, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  font-family: var(--font-mono);
  color: var(--emerald);
  font-size: 15px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.brand-name em { color: var(--emerald); font-style: normal; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .18s;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ HERO ============ */
.hero { padding: 88px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid rgba(36,196,140,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(36,196,140,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(36,196,140,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(36,196,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(36,196,140,0); }
}

.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.accent-underline {
  color: var(--emerald);
  position: relative;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 18px 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--emerald); }
.stat-label { font-size: 13px; color: var(--text-faint); }

/* ---- browser mock (signature element) ---- */
.hero-visual { position: relative; }
.glow-orb {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
  top: -60px; right: -80px;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.browser-mock {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 60px -20px var(--emerald-glow);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.chrome-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #E5605A; }
.dot-yellow { background: #E5B85A; }
.dot-green { background: #5AE5A0; }
.chrome-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  margin-left: 10px;
  flex: 1;
}

.browser-body { padding: 22px; }
.mock-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.mock-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--emerald); }
.mock-line { display: inline-block; height: 8px; border-radius: 4px; background: var(--border); }
.mock-line.short { width: 46px; }
.mock-pill { margin-left: auto; width: 62px; height: 22px; border-radius: 999px; background: var(--emerald-dim); }

.mock-hero { margin-bottom: 26px; }
.mock-hero .title { display: block; height: 14px; width: 72%; background: var(--text-faint); border-radius: 4px; margin-bottom: 10px; opacity: .5;}
.mock-hero .title.short2 { width: 48%; }
.mock-hero .text { display: block; height: 8px; width: 60%; margin: 14px 0 16px; opacity: .3; }
.mock-btn { display: inline-block; width: 96px; height: 26px; border-radius: 999px; background: var(--emerald); }

.mock-grid { display: flex; gap: 12px; }
.mock-card { flex: 1; height: 56px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.mock-grid.three .mock-card { height: 46px; }

.typing-strip {
  border-top: 1px solid var(--border-soft);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.typing-caret { font-size: 8px; opacity: .7; }
.caret-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* small variant used in the work grid */
.browser-mock.small .browser-body { padding: 16px; }
.browser-mock.small .mock-nav { margin-bottom: 16px; }
.browser-mock.small .mock-hero { margin-bottom: 16px; }
.browser-mock.small .mock-card { height: 40px; }

.theme-warm .mock-logo, .theme-warm .mock-pill, .theme-warm .mock-btn { background: var(--warm); }
.theme-rose .mock-logo, .theme-rose .mock-pill, .theme-rose .mock-btn { background: var(--rose); }
.theme-emerald .mock-logo, .theme-emerald .mock-pill, .theme-emerald .mock-btn { background: var(--emerald); }
.theme-slate .mock-logo, .theme-slate .mock-pill, .theme-slate .mock-btn { background: var(--slate); }

/* ============ OFFER STRIP ============ */
.offer-strip {
  background: linear-gradient(90deg, var(--emerald-dim), var(--emerald));
  color: #06120C;
}
.offer-inner { padding: 12px 24px; text-align: center; font-size: 14.5px; }
.offer-inner a { text-decoration: underline; font-weight: 600; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.about-visual { text-align: center; }
.avatar-ring {
  width: 200px; height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.avatar-ring::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(var(--emerald), transparent 40%, var(--emerald));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-mono {
  font-family: var(--font-mono);
  font-size: 36px;
  color: var(--emerald);
}
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }

.lead-text { font-size: 18px; color: var(--text); }
.about-copy p { color: var(--text-muted); }
.about-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.check { color: var(--emerald); font-weight: 700; }

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--emerald-dim); transform: translateY(-3px); }
.service-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.service-card-cta {
  background: linear-gradient(160deg, var(--emerald-glow), transparent);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.service-card-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ============ WORK ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card h3 { margin: 18px 0 6px; font-size: 18px; }
.work-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.work-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  font-family: var(--font-mono);
  margin-top: 40px;
}

/* ============ PRICING ============ */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--emerald-dim);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px -30px var(--emerald-glow);
}
.pricing-head { text-align: center; margin-bottom: 28px; }
.pricing-from { display: block; font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }
.pricing-amount { display: block; font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--emerald); margin: 6px 0; }
.pricing-note { display: block; font-size: 13.5px; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--emerald); font-size: 20px; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 18px; margin: 0; font-size: 15px; }

/* ============ CTA / CONTACT ============ */
.cta-section { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(28px, 4vw, 40px); }
.cta-sub { color: var(--text-muted); font-size: 17px; margin-bottom: 40px; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.social-link { color: var(--emerald); font-size: 14.5px; }
.social-link:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: 56px; background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 13.5px; margin-top: 10px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--emerald); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

#devInfo a { color: var(--emerald); font-weight: 600; }

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 30px -6px var(--emerald-glow);
  z-index: 60;
  transition: transform .2s;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-badge { margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-contact { align-items: center; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; }
}
