/*
Copyright © Devin B. Royal. All Rights Reserved.
File: site.css
Purpose: Futuristic API Factory website styling for JAVA1KIND.xyz.
*/
:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(12, 18, 33, 0.78);
  --panel-strong: rgba(16, 24, 44, 0.95);
  --line: rgba(136, 162, 205, 0.22);
  --text: #edf4ff;
  --muted: #9aacbd;
  --cyan: #42e8ff;
  --green: #3cffb0;
  --amber: #ffb347;
  --red: #ff5d73;
  --violet: #9b7cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(66, 232, 255, 0.12), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(155, 124, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #060914 0%, #05070d 48%, #02030a 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(66, 232, 255, 0.45));
}
.brand strong { display: block; letter-spacing: 0.08em; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.site-nav a:hover { color: var(--cyan); }
.menu-toggle { display: none; }
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.section-grid,
.split-section,
.market-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.035em;
}
.hero-lede,
.split-section p,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 12px;
}
.hero-actions,
.ecosystem-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 850;
  color: var(--text);
  cursor: pointer;
}
.button.primary {
  color: #021016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
  box-shadow: 0 0 34px rgba(66, 232, 255, 0.28);
}
.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}
.button.compact {
  min-height: 42px;
  font-size: 14px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.command-core,
.demo-card,
.proof-output,
.contact-card,
.pain-grid div,
.offer-stack article,
.project-card {
  background: linear-gradient(180deg, rgba(16, 24, 44, 0.92), rgba(7, 11, 22, 0.86));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.command-core {
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg) rotateY(-4deg);
}
.command-hero-image {
  width: 100%;
  height: clamp(210px, 28vw, 360px);
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}
.terminal-top span:nth-child(2) { background: var(--amber); }
.terminal-top span:nth-child(3) { background: var(--green); margin-right: 8px; }
.terminal-body {
  min-height: 280px;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #dcecff;
}
.terminal-body p { margin: 0 0 12px; }
.terminal-body b { color: var(--cyan); }
.terminal-body .ok { color: var(--green); }
.terminal-body .warn { color: var(--amber); }
.metric-ring {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.metric-ring div {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.metric-ring div:last-child { border-right: 0; }
.metric-ring strong {
  display: block;
  font-size: 30px;
  color: var(--cyan);
}
.metric-ring span {
  color: var(--muted);
  font-size: 12px;
}
.panel-section,
.proof-section,
.ecosystem-section,
.daily-section,
.suite-section {
  padding: clamp(52px, 7vw, 86px) 0;
  border-top: 1px solid var(--line);
}
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.suite-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 24, 44, 0.92), rgba(7, 11, 22, 0.86));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suite-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #030712;
}
.suite-card.featured img {
  object-fit: contain;
  background: #02040a;
}
.suite-card.featured {
  background:
    linear-gradient(135deg, rgba(66, 232, 255, 0.18), rgba(60, 255, 176, 0.1)),
    var(--panel-strong);
}
.suite-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.suite-card h3 {
  margin: 0;
  font-size: 26px;
}
.suite-card p {
  color: var(--muted);
  line-height: 1.6;
}
.suite-card a {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 900;
}
.daily-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 5vw, 52px);
  align-items: center;
}
.daily-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.daily-card {
  min-height: 240px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(66, 232, 255, 0.14), rgba(60, 255, 176, 0.08)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}
.daily-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.daily-card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 40px);
}
.daily-card p { color: var(--muted); }
.daily-card code {
  display: block;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #030712;
  border: 1px solid var(--line);
  color: var(--green);
  white-space: pre-wrap;
}
.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}
h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.factory-demo {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}
.demo-controls {
  display: grid;
  gap: 10px;
}
.step {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  font-weight: 850;
}
.step.active {
  color: #021016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}
.demo-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
}
.demo-kicker {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.demo-card h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 44px);
}
.demo-card p { color: var(--muted); font-size: 18px; }
.demo-card code {
  display: block;
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: #030712;
  border: 1px solid var(--line);
  color: var(--green);
  white-space: pre-wrap;
}
.pain-grid,
.offer-stack,
.proof-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pain-grid div,
.offer-stack article,
.proof-card,
.project-card {
  padding: 22px;
}
.pain-grid strong,
.offer-stack strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 22px;
}
.pain-grid span,
.offer-stack p,
.project-card p {
  color: var(--muted);
}
.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof-card {
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.proof-card span {
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.proof-card strong {
  display: block;
  margin: 10px 0;
  font-size: 23px;
}
.proof-card small {
  color: var(--muted);
  line-height: 1.55;
}
.proof-output {
  margin: 18px 0 0;
  padding: 20px;
  overflow-x: auto;
  color: var(--green);
}
.offer-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ecosystem-toolbar {
  align-items: center;
  margin-bottom: 18px;
}
.ecosystem-toolbar input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 16px;
  outline: none;
}
.ecosystem-toolbar input { flex: 1 1 420px; }
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #030712;
}
.project-card h3 { margin: 0; font-size: 18px; }
.project-card a { color: var(--cyan); font-weight: 850; margin-top: auto; }
.contact-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}
.contact-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(5, 7, 13, 0.96);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .menu-toggle {
    display: inline-flex;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
  }
  .section-grid,
  .split-section,
  .market-section,
  .contact-section,
  .factory-demo,
  .daily-section {
    grid-template-columns: 1fr;
  }
  .proof-grid,
  .offer-stack,
  .project-grid,
  .pain-grid,
  .suite-grid {
    grid-template-columns: 1fr;
  }
  .command-core { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #signalCanvas { display: none; }
}
