/* ==========================================================================
   Ghost Website : Ultra-Sleek Minimal Squarish Paper-Craft UI
   Colors: Pitch Black (#07090A) + Fluorescent Green (#32FF4A)
   Surface: Wrinkled Craft Paper Texture + Fine Noise Grain
   Typography: Ultra-Thin Inter Tight (200/300) + IBM Plex Mono (200/300)
   Spacing: Expansive Gallery-Grade Breathing Room
   ========================================================================== */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin-200-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-200-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  --ghost-canvas: #07090a;
  --ghost-surface: rgba(9, 12, 11, 0.68);
  --ghost-elevated: rgba(14, 19, 17, 0.74);
  --ghost-border: rgba(242, 247, 243, 0.1);
  --ghost-border-strong: rgba(50, 255, 74, 0.22);
  --ghost-ink: #eef5f0;
  --ghost-secondary: #8fa396;
  --ghost-muted: #5d7064;
  --ghost-accent: #32ff4a;
  --ghost-accent-ink: #07090a;

  --paper-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.82);
  --paper-shadow-accent: 2px 2px 0px rgba(50, 255, 74, 0.65), 0 26px 52px -20px rgba(0, 0, 0, 0.85);
  --paper-fold-flap: #151d19;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-weight: 200;
  font-size: 11.5px;
  background-color: var(--ghost-canvas);
  color: var(--ghost-ink);
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Visible Wrinkled Craft Paper Texture Background */
.paper-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0b0f0d;
  background-image: url('assets/wrinkled-paper-dark.jpg');
  background-size: 980px auto;
  background-position: top center;
  background-repeat: repeat;
  opacity: 0.94;
}

/* High-Frequency Paper Noise Overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

.mono,
code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  font-weight: 300;
}

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

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

/* Wide Breathable Shell */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==========================================================================
   Entrance & Scroll-Reveal Animations
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 950ms var(--ease-out-expo),
    transform 950ms var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translate3d(-32px, 24px, 0);
}

[data-reveal="right"] {
  transform: translate3d(32px, 24px, 0);
}

[data-reveal="scale"] {
  transform: translate3d(0, 28px, 0) scale(0.96);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.fade-swap {
  transition: opacity 320ms ease, transform 320ms ease;
}
.fade-swap.is-swapping {
  opacity: 0.2;
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Sleek Squarish Paper-Craft Cards & Tags
   ========================================================================== */

.paper-sheet {
  position: relative;
  background-color: var(--ghost-surface);
  border: 1px solid var(--ghost-border);
  border-radius: 2px;
  box-shadow: var(--paper-shadow);
  backdrop-filter: blur(5px);
  transition:
    transform 420ms var(--ease-out-expo),
    border-color 420ms ease,
    box-shadow 420ms ease;
}

.paper-sheet:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 255, 74, 0.42);
}

.paper-sheet--accent {
  border-color: rgba(50, 255, 74, 0.48);
  box-shadow: var(--paper-shadow-accent);
}

/* Subtle Squarish Paper Corner Crease */
.paper-dogear {
  position: relative;
  overflow: hidden;
}
.paper-dogear::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(
    225deg,
    #0b0f0d 48%,
    var(--ghost-accent) 49%,
    var(--ghost-accent) 55%,
    var(--paper-fold-flap) 56%
  );
  pointer-events: none;
}

.paper-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 2px;
  background: var(--ghost-elevated);
  color: var(--ghost-accent);
  border: 1px solid var(--ghost-border-strong);
}

.paper-tag--solid {
  background: var(--ghost-accent);
  color: var(--ghost-accent-ink);
  border-color: var(--ghost-accent);
  font-weight: 400;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--ghost-accent);
}
.paper-tag--solid .pulse-dot {
  background: var(--ghost-accent-ink);
}

/* ==========================================================================
   Sleek Breathable Top Bar
   ========================================================================== */

.topbar {
  padding-top: 44px;
  margin-bottom: 24px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__icon {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  border: 1px solid var(--ghost-accent);
}

.brand__title {
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero Pitch Section (Expansive Breathing Room)
   ========================================================================== */

.hero {
  padding: 96px 0 128px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 88px;
  align-items: center;
}

.hero__title {
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
  font-weight: 200;
  line-height: 1.38;
  letter-spacing: 0.01em;
  margin: 34px 0 28px;
}

.hero__title-highlight {
  display: inline-block;
  background: var(--ghost-accent);
  color: var(--ghost-accent-ink);
  font-weight: 300;
  padding: 1px 10px 3px;
  border-radius: 2px;
}

.hero__lead {
  font-size: 12px;
  font-weight: 200;
  color: var(--ghost-secondary);
  margin-bottom: 48px;
  max-width: 42ch;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.hero__pitch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.pitch-mini {
  background: var(--ghost-elevated);
  border: 1px solid var(--ghost-border);
  border-radius: 2px;
  padding: 28px 26px;
  transition: border-color 320ms ease, transform 320ms var(--ease-out-expo);
}
.pitch-mini:hover {
  border-color: var(--ghost-accent);
  transform: translateY(-3px);
}

.pitch-mini__badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 300;
  color: var(--ghost-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pitch-mini__title {
  font-size: 12.5px;
  font-weight: 300;
  margin-top: 14px;
  letter-spacing: 0.03em;
}

.pitch-mini__sub {
  font-size: 10.5px;
  font-weight: 200;
  color: var(--ghost-secondary);
  margin-top: 8px;
  line-height: 1.75;
}

/* Hero Right Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-stage__pigeon-card {
  width: 100%;
  max-width: 272px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stage__pigeon-art {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--ghost-accent);
  flex-shrink: 0;
}

.paper-phone {
  width: 100%;
  max-width: 248px;
  background: #07090a;
  border: 1px solid var(--ghost-accent);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 32px 64px -18px rgba(0, 0, 0, 0.9);
}

.paper-phone__screen {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #1e2822;
  background: #07090a;
  aspect-ratio: 1 / 2;
}

.paper-phone__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Expansive Breathable Sections
   ========================================================================== */

.section {
  padding: 120px 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
}

.section__title {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* ==========================================================================
   AUTONOMOUS DEVICE CONTROL
   ========================================================================== */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.loop-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.loop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.loop-card__step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--ghost-accent);
  color: var(--ghost-accent-ink);
}

.loop-card__badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost-muted);
}

.loop-card__title {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.loop-card__desc {
  font-size: 11px;
  font-weight: 200;
  color: var(--ghost-secondary);
  line-height: 1.8;
}

.sim-strip {
  margin-top: 40px;
  padding: 28px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sim-strip__status {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sim-pigeon-badge {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid var(--ghost-accent);
  flex-shrink: 0;
}

.sim-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 2px;
  background: var(--ghost-elevated);
  border: 1px solid var(--ghost-border);
  color: var(--ghost-secondary);
  transition: all 280ms var(--ease-out-expo);
}
.sim-pill.is-current {
  background: var(--ghost-accent);
  color: var(--ghost-accent-ink);
  border-color: var(--ghost-accent);
  font-weight: 400;
  transform: translateY(-2px);
}

/* ==========================================================================
   2 Core Use Cases (Sleek Breathable Pitch Cards)
   ========================================================================== */

.usecases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.usecase-card {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.usecase-card__art-wrap {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--ghost-border);
  background: #07090a;
  aspect-ratio: 16 / 9;
}

.usecase-card__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-expo);
}
.usecase-card:hover .usecase-card__art {
  transform: scale(1.03);
}

.usecase-card__body {
  margin-top: 28px;
}

.usecase-card__title {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin-top: 18px;
  letter-spacing: 0.02em;
}

.usecase-card__pitch {
  font-size: 11px;
  font-weight: 200;
  color: var(--ghost-secondary);
  margin-top: 12px;
  line-height: 1.85;
}

.wa-paper-bubble {
  background: rgba(217, 253, 211, 0.94);
  color: #111b21;
  border-radius: 2px;
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.65;
  border: 1px solid #07090a;
}

.wa-paper-bubble__meta {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: #3b4a54;
  margin-top: 10px;
}

/* ==========================================================================
   App Screenshots Section (Sleek Squarish Phone Bezels)
   ========================================================================== */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.screen-card {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.screen-card__bezel {
  width: 100%;
  max-width: 188px;
  background: #07090a;
  border: 1px solid var(--ghost-border-strong);
  border-radius: 6px;
  padding: 6px;
  transition: border-color 320ms ease, transform 320ms var(--ease-out-expo);
}
.screen-card:hover .screen-card__bezel {
  border-color: var(--ghost-accent);
  transform: translateY(-4px);
}

.screen-card__screen {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1 / 2;
  background: #07090a;
}

.screen-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.screen-card__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--ghost-accent);
}

.screen-card__title {
  font-size: 11.5px;
  font-weight: 300;
  margin-top: 7px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Footer : "Put your WhatsApp on autopilot today."
   ========================================================================== */

.autopilot-footer {
  padding: 104px 0 136px;
}

.autopilot-footer__sheet {
  padding: 46px 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.autopilot-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.autopilot-footer__icon {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  border: 1px solid var(--ghost-accent);
  flex-shrink: 0;
}

.autopilot-footer__title {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.autopilot-footer__sub {
  font-size: 10.5px;
  font-weight: 200;
  color: var(--ghost-secondary);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.autopilot-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ghost-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .shell {
    padding: 0 28px;
  }
  .hero {
    padding: 64px 0 84px;
  }
  .section {
    padding: 84px 0;
  }
  .hero__grid,
  .usecases-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .loop-grid,
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .shell {
    padding: 0 20px;
  }
  .hero__pitch-cards,
  .loop-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }
  .usecase-card,
  .autopilot-footer__sheet {
    padding: 30px 24px;
  }
  .autopilot-footer__meta {
    align-items: flex-start;
  }
}
