/* Grok Build Remote — dark nerdy terminal theme */
:root {
  --bg: #050805;
  --bg-elevated: #0a100c;
  --bg-panel: #0d1510;
  --border: #1a2e22;
  --border-bright: #2a4a35;
  --green: #39ff14;
  --green-dim: #1f9a3a;
  --green-soft: rgba(57, 255, 20, 0.12);
  --green-glow: rgba(57, 255, 20, 0.35);
  --text: #d4e8d8;
  --text-muted: #7a9a82;
  --text-dim: #4a6654;
  --danger: #ff6b6b;
  --amber: #f0c878;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "Consolas", "SF Mono", monospace;
  --max: 1080px;
  --radius: 10px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* subtle grid + scanline */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 0%, transparent 70%);
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 5, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo:hover {
  text-decoration: none;
  color: var(--green);
}
.logo-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--green);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  background: var(--green-soft);
}
.logo-text {
  font-size: 0.95rem;
}
.logo-text span {
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--green);
}
.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  color: var(--green) !important;
  background: var(--green-soft);
}
.nav-cta:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--green);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .nav.open {
    display: flex;
  }
}

/* ——— Hero ——— */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid var(--border-bright);
  background: var(--green-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #041006;
  border-color: var(--green);
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--green-glow);
  color: #020804;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--green-dim);
  color: var(--green);
}

.terminal-window {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.06), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #0a120e;
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-bar .dot.r { background: #ff5f56; }
.terminal-bar .dot.y { background: #ffbd2e; }
.terminal-bar .dot.g { background: #27c93f; }
.terminal-bar .title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.terminal-body {
  padding: 1.1rem 1.15rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.terminal-body .prompt {
  color: var(--green);
}
.terminal-body .cmd {
  color: var(--text);
}
.terminal-body .out {
  color: var(--text-dim);
}
.terminal-body .ok {
  color: var(--green-dim);
}
.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ——— Sections ——— */
section {
  padding: 3.5rem 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

/* How it works */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
}
@media (max-width: 800px) {
  .flow {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .flow {
    grid-template-columns: 1fr;
  }
}
.flow-step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: relative;
}
.flow-step:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.06);
}
.flow-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.flow-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.flow-step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.flow-arrow {
  font-family: var(--font-mono);
  color: var(--green-dim);
  font-size: 0.75rem;
  text-align: center;
  margin: 1rem 0 0;
}

/* Install */
.install-block {
  display: grid;
  gap: 1rem;
}
.install-cmd {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #060a07;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
}
.install-cmd code {
  flex: 1;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  overflow-x: auto;
  white-space: nowrap;
}
.install-cmd button {
  border: none;
  border-left: 1px solid var(--border);
  background: var(--green-soft);
  color: var(--green);
  padding: 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.install-cmd button:hover {
  background: rgba(57, 255, 20, 0.2);
}
.install-cmd button.copied {
  color: #041006;
  background: var(--green);
}
.install-notes {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.install-notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.install-notes li {
  margin-bottom: 0.35rem;
}
.install-notes code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--green-dim);
  background: var(--green-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.callout {
  border-left: 3px solid var(--green-dim);
  background: var(--green-soft);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.callout strong {
  color: var(--green);
}

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
@media (max-width: 800px) {
  .platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .platforms {
    grid-template-columns: 1fr 1fr;
  }
}
.platform-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.platform-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  filter: grayscale(0.2);
}
.platform-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.platform-card p {
  margin: 0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.platform-card .tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--green);
  border: 1px solid var(--border-bright);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.price-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.price-card.featured {
  border-color: var(--green-dim);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.08);
}
.price-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--green-soft);
}
.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
  color: var(--text);
}
.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.price-card li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
}
.price-card li::before {
  content: "› ";
  color: var(--green);
  font-family: var(--font-mono);
}

/* App Store / Google Play badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: #0a0a0a;
  color: #f5f5f5;
  min-width: 9.5rem;
  text-decoration: none;
}
.store-badge:hover {
  border-color: var(--green-dim);
  text-decoration: none;
}
.store-logo {
  flex-shrink: 0;
  display: block;
}
.store-badge-apple {
  color: #fff;
}
.store-badge-apple .store-logo {
  color: #fff;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge-small {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b0b0b0;
  font-family: var(--font-sans);
}
.store-badge-big {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

/* Legal pages */
.legal {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
}
.legal h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.legal .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
  color: var(--green);
}
.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.footer-brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-brand span {
  color: var(--green);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 28rem;
}
.footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.logo-img{width:40px;height:40px;border-radius:8px;object-fit:cover;border:1px solid #1a3d1a}

/* FAQ + AEO */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0.75rem 0 0; color: var(--text-muted); }
.research-band { border-top: 1px solid var(--border); }
.research-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}
.research-list li { margin-bottom: 0.65rem; }
.research-list strong { color: var(--text); }
.logo-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid #1a3d1a; }