@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --panel: #111118;
  --purple: #b06cf5;
  --cyan: #4ecdc4;
  --amber: #f5a623;
  --text: #c8c8d4;
  --dim: #777785;
  --stroke: #2a2a3a;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(176, 108, 245, 0.13), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(78, 205, 196, 0.09), transparent 28rem),
    radial-gradient(circle at 50% 60%, rgba(176, 108, 245, 0.04), transparent 40rem),
    var(--bg);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: screen;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #d9fffb;
  text-shadow: 0 0 12px rgba(78, 205, 196, 0.55);
}

/* ── Layout ─────────────────────────────────────────── */

.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px max(16px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(176, 108, 245, 0.18);
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(176, 108, 245, 0.08),
    0 4px 40px rgba(0, 0, 0, 0.7);
}

.brand {
  color: var(--purple);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.glow-purple {
  text-shadow:
    0 0 12px rgba(176, 108, 245, 0.6),
    0 0 32px rgba(176, 108, 245, 0.25);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

nav a {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a[aria-current="page"] {
  color: #d9fffb;
  text-shadow: 0 0 12px rgba(78, 205, 196, 0.5);
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  max-width: 900px;
  padding: clamp(48px, 7vh, 80px) 0 56px;
}


.hero-content {
  max-width: 900px;
}

/* ── App Icon (mock card only) ───────────────────────── */

/* ── Typography ──────────────────────────────────────── */

.kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

.section-label {
  margin: 0 0 28px;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.section-label {
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  color: var(--purple);
  font-size: clamp(2.45rem, 8vw, 6.4rem);
  font-weight: 800;
  line-height: 0.98;
  text-shadow:
    0 0 24px rgba(176, 108, 245, 0.5),
    0 0 64px rgba(176, 108, 245, 0.2);
}

.hero-content h1::after {
  content: "█";
  margin-left: 8px;
  font-size: 1.4rem;
  vertical-align: baseline;
  animation: blink-cursor 1.1s step-start infinite;
  color: var(--cyan);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

/* ── CTA ─────────────────────────────────────────────── */

.terminal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid var(--purple);
  border-radius: 4px;
  background: transparent;
  color: var(--purple);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 16px rgba(176, 108, 245, 0.12);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, text-shadow 0.2s;
}

.terminal-button:hover {
  color: #efdfff;
  border-color: #d0a5ff;
  box-shadow: 0 0 28px rgba(176, 108, 245, 0.45);
  text-shadow: 0 0 12px rgba(176, 108, 245, 0.55);
}

.coming-soon-badge {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 3px;
  background: rgba(245, 166, 35, 0.06);
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.microcopy {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}

/* ── Sections ────────────────────────────────────────── */

.section-block {
  padding: 40px 0 72px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--stroke) 20%, var(--stroke) 80%, transparent) 1;
}

/* ── Feature Grid ────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 108, 245, 0.4);
  box-shadow:
    0 0 28px rgba(176, 108, 245, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  display: block;
  margin-bottom: 16px;
  font-size: 1.65rem;
  transition: filter 0.22s ease;
}

.feature-card:hover .feature-icon {
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.6));
}

.feature-card h2 {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(176, 108, 245, 0.26);
}

.document-page h2 {
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}


.feature-card p,
.document-page p,
.terminal-list {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ── Origin Story ────────────────────────────────────── */

.origin-section {
  padding-bottom: 48px;
}

.origin-quote {
  margin: 0 0 20px;
  padding: 32px 36px;
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.04), rgba(17, 17, 24, 0.9));
  box-shadow: 0 0 40px rgba(78, 205, 196, 0.05);
}

.origin-quote p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.75;
}

.origin-byline {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Screenshots ─────────────────────────────────────── */

.screenshots-section {
  padding: 40px 0 16px;
  overflow: hidden;
}

/* Desktop: CSS grid 4 columns */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}

.screenshot-label {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--stroke);
  border-radius: 4px;
}

/* Mobile: hide screenshots, page reads cleanly without them */
@media (max-width: 768px) {
  .screenshots-section {
    display: none;
  }
}

/* ── About / Operator Log ────────────────────────────── */

.mock-entry-card {
  max-width: 640px;
  margin-bottom: 40px;
  border: 1px solid rgba(176, 108, 245, 0.3);
  border-radius: 4px;
  background: #0d0d1a;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(176, 108, 245, 0.08),
    0 0 48px rgba(176, 108, 245, 0.1);
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: var(--purple);
}

.mock-card-brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0a0a0f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mock-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.mock-card-date {
  color: rgba(10, 10, 15, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mock-card-content {
  padding: 18px 20px 22px;
}

.mock-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}

.mock-meta-time {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 700;
}

.mock-prompt {
  color: var(--cyan);
  margin-right: 4px;
}

.mock-meta-weather {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  padding-left: 16px;
}

.mock-meta-location {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding-left: 16px;
}

.mock-card-status {
  margin-bottom: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(176, 108, 245, 0.25);
  border-radius: 3px;
  background: rgba(176, 108, 245, 0.07);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-card-body p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.85;
}

.mock-card-body p:last-child {
  margin-bottom: 0;
}

.model-block {
  max-width: 640px;
}

.model-block .section-label {
  margin-bottom: 20px;
}

.model-block .terminal-list li {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 34px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--stroke) 20%, var(--stroke) 80%, transparent) 1;
  color: var(--dim);
  font-size: 0.76rem;
}

.site-footer nav a {
  color: var(--dim);
  font-size: 0.76rem;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: var(--cyan);
}

/* ── Document Pages ──────────────────────────────────── */

.document-page {
  max-width: 820px;
  padding: 66px 0 86px;
}

.page-title {
  margin-bottom: 42px;
}

.page-title h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.page-title p {
  color: var(--dim);
}

.document-page section {
  padding: 28px 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--stroke) 20%, var(--stroke) 80%, transparent) 1;
}

.document-page h3 {
  margin: 24px 0 8px;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.2);
}

.document-page p:last-child {
  margin-bottom: 0;
}

.terminal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terminal-list li {
  position: relative;
  padding-left: 24px;
}

.terminal-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(78, 205, 196, 0.36);
}

.support-link {
  display: inline-block;
  max-width: 100%;
  color: var(--cyan);
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(78, 205, 196, 0.28);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer,
  main {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero-copy {
    font-size: 0.97rem;
  }

  .origin-quote {
    padding: 24px 22px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 16px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 0.84rem;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-copy {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .coming-soon-badge {
    font-size: 0.8rem;
    padding: 8px 13px;
  }

  .microcopy {
    font-size: 0.75rem;
  }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2.25rem, 14vw, 3.4rem);
  }

  .coming-soon-badge {
    width: 100%;
    justify-content: center;
  }
}
