/* ================================================================
   TOKENS
   Every colour on the page comes from one of these variables.
   Dark is the default (the Ghost Dev Labs brand look). The light
   theme just redefines the same names — nothing else in this file
   needs to know which theme is active.
================================================================= */
:root{
  color-scheme: dark;

  /* Dark theme (default) */
  --bg: #0B0B0D;
  --surface: #141418;
  --surface-2: #101013;
  --accent-wash: #0E1A19;
  --text: #F2F2F4;
  --text-soft: #A3A3AD;
  --border: #25252C;
  --accent: #5EEAD4;
  --on-accent: #06231F;
  --track: #26262D;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme, set by the toggle button in script.js and
   remembered in localStorage. */
:root[data-theme="light"]{
  color-scheme: light;
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --surface-2: #EBEFED;
  --accent-wash: #E3F4F0;
  --text: #0E1412;
  --text-soft: #4B5753;
  --border: #DAE1DE;
  --accent: #0A7C70;
  --on-accent: #FFFFFF;
  --track: #DCE3E0;
  --shadow: 0 10px 30px rgba(14, 20, 18, 0.08);
}

/* ================================================================
   RESET
================================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, dl, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dt, dd, blockquote{ margin: 0; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

h1, h2{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Smooth colour change when the theme toggle is used. */
body, .site-header, .btn, .standard-card, .gauge-ring-inner,
.theme-toggle, .proof, .contact, .positioning, .site-nav{
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

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

.section-head{ max-width: 620px; margin: 0 0 56px; }
.section-head h2{ font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 10px; }
.section-head p{ color: var(--text-soft); }

/* ================================================================
   BUTTONS
================================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-primary{ background: var(--accent); color: var(--on-accent); }
.btn-primary:hover{ box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); }

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

.btn-whatsapp{ background: var(--whatsapp); color: #ffffff; }
.btn-whatsapp:hover{ background: var(--whatsapp-dark); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28); }

.btn-small{ padding: 9px 16px; font-size: 0.9rem; }
.btn-large{ padding: 17px 32px; font-size: 1.05rem; }

/* ================================================================
   THEME TOGGLE
   One button, two icons stacked on top of each other. CSS just
   shows/hides them depending on the current data-theme.
================================================================= */
.theme-toggle{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-toggle:hover{ border-color: var(--accent); color: var(--accent); }
.icon-sun{ display: none; }
.icon-moon{ display: block; }
:root[data-theme="light"] .icon-sun{ display: block; }
:root[data-theme="light"] .icon-moon{ display: none; }

/* ================================================================
   HEADER
================================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg); /* fallback for older browsers */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
/* Ghost mark: the outline follows the theme's text colour and the
   terminal-prompt face uses the accent, so it works in both themes. */
.ghost-mark{ flex-shrink: 0; overflow: visible; }
.ghost-mark .g-body{ fill: var(--surface); stroke: var(--text); stroke-linejoin: round; }
.ghost-mark .g-eye{ fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }

.site-nav{ display: flex; gap: 32px; margin: 0 auto; }
.site-nav a{ font-size: 0.98rem; color: var(--text-soft); transition: color 0.15s var(--ease); }
.site-nav a:hover{ color: var(--text); }

.header-actions{ display: flex; align-items: center; gap: 12px; }

.nav-toggle{ display: none; width: 34px; height: 34px; position: relative; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span{ top: 16px; }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-8px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================= */
.hero{ padding: 88px 24px 96px; }
.hero-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1{ font-size: clamp(2.5rem, 4.4vw, 3.8rem); line-height: 1.06; max-width: 12ch; }
.hero-sub{ margin-top: 22px; max-width: 46ch; font-size: 1.15rem; color: var(--text-soft); }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual{ display: flex; justify-content: center; }

/* The ghost peeks over the top of the card, once, when the page loads.
   It sits behind the card, so only its head and face show. */
.standard-wrap{ position: relative; width: 100%; max-width: 300px; margin-top: 56px; }
.hero-ghost{
  position: absolute;
  top: -60px;
  right: 30px;
  z-index: 0;
  animation: ghost-peek 0.9s var(--ease) 0.5s both;
}
@keyframes ghost-peek{
  from{ opacity: 0; transform: translateY(44px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* The "standard" card: a promise, not a claimed result. */
.standard-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 32px 36px 30px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.standard-label{ font-size: 0.85rem; color: var(--text-soft); margin-bottom: 18px; }

/* The ring is a single circle. conic-gradient paints it in two
   colours, split at --gauge-percent (0–100). script.js just raises
   that one number from 0 to the target — that's the whole animation. */
.gauge-ring{
  width: 176px;
  height: 176px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(var(--accent) calc(var(--gauge-percent) * 1%), var(--track) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-ring-inner{
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-percent{ font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.gauge-sub{ font-size: 0.85rem; color: var(--text-soft); }

.standard-list{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.standard-list li{
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}
.standard-list li::before{
  content: "\2713"; /* checkmark */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ================================================================
   POSITIONING
================================================================= */
.positioning{
  padding: 88px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.positioning-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.positioning-col h2{ font-size: 1.5rem; margin-bottom: 14px; }
.positioning-col p{ color: var(--text-soft); max-width: 42ch; }
.positioning-col--accent h2{ color: var(--accent); }

/* ================================================================
   PROCESS ("How I work")
   A plain numbered list — no illustrations to hand-position.
================================================================= */
.process{ padding: 104px 24px; max-width: var(--max-width); margin: 0 auto; }

.process-list{ display: flex; flex-direction: column; }
.process-list li{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.process-list li:last-child{ border-bottom: 1px solid var(--border); }
.process-number{ font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--accent); }
.process-content h3{ font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-content p{ color: var(--text-soft); max-width: 56ch; }

/* ================================================================
   DETAILS ("Follow the build" + "What you can expect")
================================================================= */
.proof{ background: var(--surface-2); padding: 104px 24px; border-bottom: 1px solid var(--border); }
.proof-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.proof h2{ font-size: 1.6rem; margin-bottom: 14px; }
.proof-follow > p{ color: var(--text-soft); max-width: 40ch; margin-bottom: 28px; }

.social-row{ display: flex; gap: 22px; }
.social-row a{
  font-size: 0.92rem;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social-row a:hover{ color: var(--text); border-color: var(--text); }

.expect-list{ display: flex; flex-direction: column; gap: 18px; }
.expect-list li{
  font-size: 1.02rem;
  padding-left: 26px;
  position: relative;
}
.expect-list li::before{
  content: "\2713"; /* checkmark */
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* ================================================================
   CONTACT / FOOTER
================================================================= */
.contact{ padding: 120px 24px 56px; text-align: center; background: var(--accent-wash); }
.contact-inner{ max-width: 640px; margin: 0 auto; }
.availability{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.contact h2{ font-size: clamp(2rem, 4vw, 2.75rem); }
.contact-sub{ color: var(--text-soft); margin-top: 16px; font-size: 1.05rem; }

.contact-actions{ display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.contact-meta{ margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--border); }
.contact-meta .social-row{ justify-content: center; }
.footer-ghost{ margin: 0 auto 22px; }
.footer-fine{ margin-top: 18px; font-size: 0.85rem; color: var(--text-soft); }

/* ================================================================
   WHATSAPP FLOAT
================================================================= */
.whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  z-index: 150;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.whatsapp-float:hover{ background: var(--whatsapp-dark); transform: scale(1.06); }
.whatsapp-ring{ position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); opacity: 0; }
.whatsapp-float.pulse .whatsapp-ring{ animation: ring-pulse 1.6s var(--ease) 1; }

@keyframes ring-pulse{
  0%{ opacity: 0.6; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.9); }
}

/* ================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; gap: 48px; }
  .hero-visual{ order: -1; }
  .positioning-inner{ grid-template-columns: 1fr; gap: 40px; }
  .proof-inner{ grid-template-columns: 1fr; gap: 56px; }
  .process-list li{ grid-template-columns: 1fr; gap: 10px; }
  .process-number{ font-size: 1.4rem; }
}

@media (max-width: 720px){
  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .site-nav a{ padding: 10px 0; width: 100%; }
  .site-nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{ display: block; }
  .header-actions .btn-whatsapp.btn-small span{ display: none; }
  .contact{ padding-top: 96px; }
  .whatsapp-float{ width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (max-width: 480px){
  .header-inner{ padding: 14px 18px; }
  .hero{ padding: 56px 18px 72px; }
  .positioning, .process, .proof{ padding-left: 18px; padding-right: 18px; }
}

/* ================================================================
   REDUCED MOTION
================================================================= */
@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;
  }
}
