/* =========================================
   ROOT & RESET
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #0e0c09;
  --bg-mid:        #131008;
  --bg-elevated:   #181309;
  --surface:       rgba(242, 232, 213, 0.04);
  --surface-hover: rgba(242, 232, 213, 0.07);
  --olive:         #8cb83c;
  --olive-light:   #aacc50;
  --olive-dim:     rgba(140, 184, 60, 0.14);
  --olive-glow:    rgba(140, 184, 60, 0.4);
  --olive-dark:    #6a8c28;
  --cream:         #f2e8d5;
  --text:          #ede3d0;
  --text-muted:    #7a6e5e;
  --text-subtle:   #423b30;
  --border:        rgba(242, 232, 213, 0.08);
  --border-accent: rgba(140, 184, 60, 0.3);
  --radius:        14px;
  --font-display:  'Urbanist', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(196,114,58,0.3); border-radius: 2px; }

/* =========================================
   NAVIGATION
========================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}

nav.scrolled {
  background: rgba(14, 12, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo-text .accent { color: var(--olive); }

.nav-pip {
  width: 5px; height: 5px;
  background: var(--olive);
  border-radius: 50%;
  display: inline-block;
  margin-left: 3px;
  margin-bottom: 1px;
  animation: pip 3s ease-in-out infinite;
}

@keyframes pip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--olive) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 100px;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--olive-glow);
  color: var(--bg) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================
   HERO
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
  text-align: center;
}

/* Warm grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,114,58,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,114,58,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Ambient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--olive);
  top: -10%; left: -10%;
  animation: drift1 14s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--olive-dark);
  bottom: -5%; right: -5%;
  animation: drift2 18s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

.hero-content { position: relative; z-index: 1; }

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s ease both;
}

.hero-stamp::before,
.hero-stamp::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.2vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  white-space: nowrap;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero-title .line-ghost {
  display: inline;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 232, 213, 0.15);
}

.hero-title .line-solid {
  display: inline;
  color: var(--text);
}

.hero-title .line-copper {
  display: inline;
  color: var(--olive);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.75rem;
  font-weight: 300;
  line-height: 1.85;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.3s both;
}

.btn-primary {
  background: var(--olive);
  color: var(--bg);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(196, 114, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(196, 114, 58, 0.5);
}

.btn-secondary {
  border: 1px solid var(--border-accent);
  color: var(--olive);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--olive-dim);
  transform: translateY(-2px);
}

/* Ornamental rule */
.hero-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.45s both;
}

.rule-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.rule-stats {
  display: flex;
  gap: 2rem;
}

.r-stat {
  text-align: center;
}

.r-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.r-stat-num .c { color: var(--olive); }

.r-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  animation: fadeUp 1s ease 0.7s both;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.scroll-track {
  width: 1px; height: 50px;
  position: relative;
  background: var(--border);
  overflow: hidden;
}

.scroll-track::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(to bottom, var(--olive), transparent);
  animation: trackDrop 2.2s ease-in-out infinite;
}

@keyframes trackDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* =========================================
   SECTION COMMON
========================================= */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.section-eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--olive);
  flex-shrink: 0;
}

.section-eyebrow.center { justify-content: center; }
.section-eyebrow.center::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

/* Double-rule divider */
.divider {
  width: 100%;
  height: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0;
}

/* =========================================
   ABOUT
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: center;
}

/* Vintage poster card */
.about-poster {
  position: relative;
}

.poster-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Corner marks */
.poster-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196, 114, 58, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.poster-est {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.poster-headline {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--olive);
  margin-bottom: 0.25rem;
}

.poster-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.poster-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.p-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.p-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.p-stat-val .c { color: var(--olive); }

.p-stat-key {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}

.tag {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: default;
}

.tag:hover { border-color: var(--border-accent); color: var(--olive); }

/* =========================================
   APPS
========================================= */
.apps-band { background: var(--bg-elevated); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

/* Cards are <a> tags — whole card is clickable */
.app-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Top copper line */
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--olive), var(--olive-light), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.app-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,114,58,0.12);
}

.app-card:hover::before { transform: scaleX(1); }

.app-card-dim {
  opacity: 0.45;
  pointer-events: none;
}

.app-card-dim:hover { opacity: 0.45; transform: none; }

.app-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.app-icon.budgethog {
  background: linear-gradient(135deg, #163824, #267048);
  box-shadow: 0 8px 24px rgba(38, 112, 72, 0.4);
}

.app-icon.parkflow {
  background: linear-gradient(135deg, #0f2340, #1c4080);
  box-shadow: 0 8px 24px rgba(28, 64, 128, 0.45);
}

.app-icon.placeholder {
  background: linear-gradient(135deg, #241a0e, #4a3318);
  box-shadow: 0 8px 24px rgba(74, 51, 24, 0.45);
}

.app-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.app-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.app-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  color: var(--text-subtle);
}

.app-arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: all 0.2s;
}

.app-card:hover .app-arrow {
  border-color: var(--border-accent);
  color: var(--olive);
  background: var(--olive-dim);
}

.soon-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(196, 114, 58, 0.1);
  border: 1px solid rgba(196, 114, 58, 0.25);
  color: var(--olive);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

/* =========================================
   FEATURED APP (with phone mockup)
========================================= */
.app-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.app-featured:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(140,184,60,0.1);
}

.app-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--olive), var(--olive-light), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
  border-radius: 4px 4px 0 0;
}

.app-featured:hover::before { transform: scaleX(1); }

.app-featured-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-featured-visual {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind phone */
.app-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 60%, rgba(38,112,72,0.18), transparent 70%);
  pointer-events: none;
  border-radius: 0 4px 4px 0;
  z-index: 0;
}

.app-featured-visual .phone-mockup,
.app-featured-visual .slideshow-dots {
  position: relative;
  z-index: 1;
}

/* ---- iPhone Mockup ---- */
.phone-mockup {
  width: 190px;
  background: #1a1a1a;
  border-radius: 36px;
  border: 6px solid #242424;
  box-shadow:
    inset 0 0 0 1px #333,
    0 0 0 1px #111,
    0 24px 60px rgba(0,0,0,0.7),
    0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  padding: 12px 9px;
  flex-shrink: 0;
}


/* Side buttons */
.phone-mockup::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 70px;
  width: 3px;
  height: 52px;
  background: #1a1a1a;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 34px 0 #1a1a1a;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 52px;
  width: 3px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 38px 0 #1a1a1a, 0 70px 0 #1a1a1a;
}

.phone-screen {
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/19.5;
}

/* Dynamic island */
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 16px;
  z-index: 10;
}

/* ---- Regular card expand on hover ---- */
.app-card {
  /* bump transition to include height */
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.app-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.app-card:hover .app-reveal {
  max-height: 80px;
  opacity: 1;
}

.app-reveal-inner {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-reveal-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
}

.app-reveal-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  flex-shrink: 0;
}

/* Slideshow inside phone */
.phone-screen.slideshow {
  position: relative;
}

.phone-screen.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.phone-screen.slideshow .slide.active {
  opacity: 1;
}

/* Dot indicators below phone */
.slideshow-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 1.25rem;
}

.sdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
  cursor: default;
}

.sdot.active {
  background: var(--olive);
  transform: scale(1.3);
}

/* Placeholder when no screenshot yet */
.phone-screen-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #163824 0%, #267048 50%, #1a4d2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
}

/* =========================================
   SCREENSHOT GALLERY
========================================= */
.screenshot-gallery {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.gallery-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gallery-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gallery-eyebrow::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--text-subtle);
}

.gallery-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Horizontal scroll track */
.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  cursor: grab;
}

.gallery-scroll:active { cursor: grabbing; }

/* Hide scrollbar but keep scrollable */
.gallery-scroll::-webkit-scrollbar { height: 3px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--olive-dim); border-radius: 2px; }

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Small phone frame for gallery */
.gallery-phone {
  width: 148px;
  background: #1a1a1a;
  border-radius: 30px;
  border: 5px solid #222;
  box-shadow:
    inset 0 0 0 1px #2e2e2e,
    0 0 0 1px #111,
    0 12px 40px rgba(0,0,0,0.6);
  position: relative;
  padding: 10px 8px;
}

.gallery-phone::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 55px;
  width: 3px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 28px 0 #1a1a1a;
}

.gallery-phone::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 42px;
  width: 3px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 30px 0 #1a1a1a, 0 56px 0 #1a1a1a;
}

.gallery-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}

.gallery-screen {
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.gallery-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.gallery-caption {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
}

/* ---- Widget row ---- */
.widget-row {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.widget-row-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.widget-row-label::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--text-subtle);
}

.widget-scroll {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.widget-scroll::-webkit-scrollbar { height: 3px; }
.widget-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.widget-scroll::-webkit-scrollbar-thumb { background: var(--olive-dim); border-radius: 2px; }

.widget-thumb {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 140px;
  width: auto;
  transition: border-color 0.2s, transform 0.2s;
}

.widget-thumb:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.widget-thumb img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* =========================================
   NEWSLETTER
========================================= */
.newsletter-band {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  text-align: center;
}

.newsletter-inner .section-eyebrow { justify-content: center; }
.newsletter-inner .section-eyebrow::before { display: none; }

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.newsletter-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.875rem 1.125rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.newsletter-input::placeholder { color: var(--text-subtle); }

.newsletter-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-dim);
}

.newsletter-btn {
  background: var(--olive);
  color: var(--bg);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(140,184,60,0.4);
}

.newsletter-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-top: 1rem;
  text-transform: uppercase;
}

/* =========================================
   SERVICES
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.service-card:hover { border-color: rgba(196,114,58,0.2); }

.service-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(242, 232, 213, 0.025);
  position: absolute;
  bottom: -1rem; right: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.service-card:hover .service-num { color: rgba(196,114,58,0.07); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--olive-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.375rem;
  color: var(--olive);
  transition: background 0.3s;
}

.service-card:hover .service-icon { background: rgba(196,114,58,0.2); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* =========================================
   PROCESS
========================================= */
.process-band { background: var(--bg-elevated); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(12.5% + 26px);
  right: calc(12.5% + 26px);
  height: 1px;
  background: var(--border);
}

.process-step { text-align: center; padding: 0 1rem; }

.step-node {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--olive);
  transition: all 0.3s;
}

.step-node:hover {
  background: var(--olive-dim);
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(196,114,58,0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* =========================================
   CONTACT
========================================= */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-top: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.875rem 1.125rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-dim);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-elevated); }

.form-submit {
  align-self: center;
  background: var(--olive);
  color: var(--bg);
  border: none;
  padding: 1rem 3.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 0 28px rgba(196,114,58,0.25);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(196,114,58,0.5);
}

.form-submit.sent {
  background: #267048;
  box-shadow: 0 0 28px rgba(38,112,72,0.3);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-socials {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-btn {
  width: 42px; height: 42px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--border-accent);
  color: var(--olive);
  background: var(--olive-dim);
}

.social-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* =========================================
   FOOTER
========================================= */
.footer-band { border-top: 1px solid var(--border); }

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.footer-logo img {
  height: 24px; width: 24px;
  object-fit: contain;
  border-radius: 5px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-logo-text .accent { color: var(--olive); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--olive); }

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .app-featured { grid-template-columns: 1fr; }
  .app-featured-visual { padding: 2.5rem; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,12,9,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 150;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { padding: 0.75rem 2rem !important; }
  .nav-hamburger { display: flex; }

  .hero-title { font-size: clamp(1.5rem, 8vw, 3.5rem); white-space: normal; }

  .section-inner { padding: 4.5rem 1.5rem; }

  .process-steps { grid-template-columns: 1fr; gap: 2rem; }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr; }
  .hero-rule .rule-line { display: none; }
  .rule-stats { gap: 1.5rem; }
}
