/* ============================================================
   askappu.in — Project sub-page shared styles
   Blueprint Cockpit aesthetic (matches landing page)
   ============================================================ */

:root {
  --navy-900: #06111f;
  --navy-800: #0a1a2e;
  --navy-700: #10253d;
  --navy-600: #17324f;
  --line:     #1e4a75;
  --line-soft:#12324f;
  --cyan:     #7fd7ff;
  --cyan-2:   #52b6e6;
  --amber:    #ffb454;
  --paper:    #e8f4ff;
  --text:     #cfe2f5;
  --muted:    #6d8ca8;
  --white:    #ffffff;
  --ok:       #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-900);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Blueprint grid bg */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 10%, rgba(82,182,230,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(127,215,255,0.06), transparent 55%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  opacity: 0.9;
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 200px 200px;
  opacity: 0.5;
}

main { position: relative; z-index: 1; }

/* ============ TOP HUD ============ */
.hud-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(6,17,31,0.9), rgba(6,17,31,0.5));
  backdrop-filter: blur(6px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-soft);
}
.hud-top .brand { display: flex; align-items: center; gap: 10px; }
.hud-top .brand a {
  display: flex; align-items: center; gap: 10px;
  color: var(--cyan);
  text-decoration: none;
}
.hud-top .brand .logo-mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(127,215,255,0.06);
}
.hud-top .breadcrumbs { color: var(--muted); }
.hud-top .breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.hud-top .breadcrumbs a:hover { color: var(--cyan); }
.hud-top .breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }
.hud-top .breadcrumbs .current { color: var(--cyan); }
.hud-top .status {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
}
.hud-top .status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 700px) {
  .hud-top { padding: 12px 16px; font-size: 10px; }
  .hud-top .breadcrumbs .home-label { display: none; }
}

/* ============ HERO ============ */
.p-hero {
  padding: 110px 6vw 50px;
  max-width: 1280px;
  margin: 0 auto;
}
.p-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .p-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.p-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  background: rgba(23,50,79,0.35);
}
.p-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.p-status.live { color: var(--ok); }
.p-status.live .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.p-status.beta { color: var(--cyan); }
.p-status.beta .dot { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.p-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}
.p-title .accent { color: var(--cyan); }
.p-tagline {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--text);
  max-width: 540px;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.p-hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 32px;
}
.p-hero-meta div span {
  display: block;
  color: var(--cyan);
  font-size: 14px;
  margin-top: 4px;
}
.p-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .1s, border-color .2s;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--white); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(127,215,255,0.05); }

/* Hero image frame */
.p-hero-image {
  position: relative;
  aspect-ratio: 3/2;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--navy-800);
}
.p-hero-image::before, .p-hero-image::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  z-index: 2;
}
.p-hero-image::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.p-hero-image::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.p-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.p-hero-image .caption {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  z-index: 2;
  background: rgba(6,17,31,0.7);
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
}

/* ============ SECTIONS ============ */
.p-section {
  padding: 56px 6vw;
  max-width: 1280px;
  margin: 0 auto;
}
.p-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-2);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.p-section-label::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--cyan-2);
}
.p-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
  max-width: 700px;
}

/* Problem statement */
.p-problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .p-problem { grid-template-columns: 1fr; }
}
.p-problem-body {
  color: var(--text);
  font-size: clamp(16px, 1.15vw, 18px);
  text-wrap: pretty;
}
.p-problem-body p + p { margin-top: 16px; }
.p-problem-callout {
  padding: 24px 26px;
  border: 1px dashed var(--line);
  background: rgba(23,50,79,0.25);
  position: relative;
}
.p-problem-callout .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.p-problem-callout .quote {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* How it works — 3 steps */
.p-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .p-steps { grid-template-columns: 1fr; }
}
.p-step {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,50,79,0.5), rgba(10,26,46,0.5));
  padding: 28px 26px;
  position: relative;
  min-height: 220px;
}
.p-step::before {
  counter-increment: step;
  content: "STEP " counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.p-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  color: var(--cyan);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.p-step h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.p-step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Tech stack */
.p-tech {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.p-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(23,50,79,0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.05em;
}
.p-tech-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* CTA row (bottom) */
.p-cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.p-cta-card {
  border: 1px solid var(--line);
  background: rgba(10,26,46,0.6);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .3s, background .3s, transform .3s;
  display: block;
}
.p-cta-card:hover {
  border-color: var(--cyan);
  background: rgba(23,50,79,0.6);
  transform: translateY(-2px);
}
.p-cta-card .icon {
  width: 32px; height: 32px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.p-cta-card h4 {
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.p-cta-card p {
  color: var(--muted);
  font-size: 13px;
}
.p-cta-card .arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* Back link */
.p-back {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color .2s;
}
.p-back:hover { color: var(--cyan); }

/* ============ FOOTER ============ */
.p-footer {
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

/* ============ MOBILE OVERRIDES ============ */
@media (max-width: 768px) {
  .hud-top { padding: 10px 14px; font-size: 9px; gap: 8px; }
  .hud-top .brand span { display: none; }
  .hud-top .status { display: none; }
  .hud-top .breadcrumbs { font-size: 10px; }
  .hud-top .breadcrumbs .sep { margin: 0 6px; }

  .p-hero { padding: 100px 5vw 30px; }
  .p-hero-meta { gap: 20px; font-size: 10px; }
  .p-hero-meta div span { font-size: 13px; }

  .p-section { padding: 44px 5vw; }
  .p-section-title { font-size: 28px; margin-bottom: 28px; }
  .p-title { font-size: clamp(36px, 10vw, 52px); }
  .p-tagline { font-size: 17px; }

  .p-problem-callout { padding: 20px 22px; }
  .p-problem-callout .quote { font-size: 17px; }

  .p-cta { width: 100%; }
  .p-cta .btn { flex: 1; justify-content: center; text-align: center; }

  .p-cta-row { grid-template-columns: 1fr; }
  .p-footer { padding: 24px 5vw; font-size: 10px; }
}

@media (max-width: 420px) {
  .p-title { font-size: 32px; }
  .p-section-title { font-size: 24px; }
  .p-step h3 { font-size: 18px; }
  .p-hero-image .caption { font-size: 9px; }
}
