/* ==========================================================================
   Gammaxon section components
   Builds on the tokens defined in site.css.
   ========================================================================== */

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(144, 96, 228, 0.14);
  border: 1px solid rgba(144, 96, 228, 0.2);
  color: var(--violet-bright);
}

.fineprint {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--fg-4);
}

/* Terminal syntax accents */
.c-vio { color: var(--violet-bright); }
.c-cy  { color: var(--cyan); }
.c-sg  { color: var(--sage); }
.c-am  { color: var(--amber); }
.c-dim { color: var(--fg-4); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 { margin-block: 22px 26px; }
.hero-copy .lede b { color: var(--fg); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--fg-4);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(144, 96, 228, 0.42));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 42%, rgba(144, 96, 228, 0.38), transparent 62%),
    radial-gradient(circle at 66% 72%, rgba(79, 233, 224, 0.18), transparent 60%);
  filter: blur(46px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* Falcon leads on narrow screens, but kept small so the headline AND the
     primary CTA still land above the fold on a 390x844 phone. */
  .hero-art { order: -1; min-height: 0; }
  .hero-art img { width: min(38%, 150px); animation-duration: 9s; }
  .hero-glow { inset: 16% 26%; }
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero-copy h1 { margin-block: 16px 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-note { margin-top: 14px; }
}

/* --------------------------------------------------------- stat strip --- */

.stat-strip {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: 24px 22px;
  background: rgba(15, 10, 24, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat b {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--fg-4);
}
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- riptide --- */

.riptide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70vw 50vh at 50% 0%, rgba(79, 233, 224, 0.06), transparent 70%);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 940px) { .persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .persona-grid { grid-template-columns: minmax(0, 1fr); } }

.persona {
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(27, 18, 48, 0.7), rgba(15, 10, 24, 0.6));
  border: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.persona:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 233, 224, 0.32);
  box-shadow: 0 24px 60px -30px rgba(79, 233, 224, 0.55);
}
.persona h3 { margin: 14px 0 9px; font-size: 1.12rem; }
.persona p  { font-size: 0.91rem; color: var(--fg-3); }

/* The MCP agent trap is the differentiator, so give it a warmer frame. */
.persona.accent {
  border-color: rgba(240, 168, 60, 0.3);
  background: linear-gradient(160deg, rgba(56, 34, 22, 0.5), rgba(20, 13, 28, 0.66));
}
.persona.accent:hover {
  border-color: rgba(240, 168, 60, 0.5);
  box-shadow: 0 24px 60px -30px rgba(240, 168, 60, 0.5);
}

/* deployment flow */

.riptide-flow {
  margin-top: 34px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(150deg, rgba(27, 18, 48, 0.6), rgba(10, 7, 16, 0.5));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.riptide-flow > h3 { margin-bottom: 26px; }

.flow {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: flow;
}
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

.flow li { position: relative; padding-top: 20px; }
.flow li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), rgba(79, 233, 224, 0.25));
}
.flow li span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.flow li b { display: block; color: var(--fg); font-size: 1rem; margin-bottom: 6px; }
.flow li p { font-size: 0.88rem; color: var(--fg-3); }

/* --------------------------------------------------------------- split --- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-visual { order: 2; }
}
.split.reverse .split-copy { order: 2; }
@media (max-width: 940px) { .split.reverse .split-copy { order: 1; } }

.split-copy h2 { margin-bottom: 20px; }

.mini .icon { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 13px; }
.mini .icon svg { width: 18px; height: 18px; }
.mini h4 { margin-bottom: 6px; color: var(--fg); }
.mini p { font-size: 0.87rem; color: var(--fg-3); }

/* ------------------------------------------------------------ terminal --- */

.term {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: rgba(8, 5, 14, 0.9);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(144, 96, 228, 0.8);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(27, 18, 48, 0.7);
  border-bottom: 1px solid var(--hairline);
}
.term-bar > span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.term-bar > span:first-child { background: rgba(240, 168, 60, 0.55); }
.term-bar > span:nth-child(2) { background: rgba(144, 96, 228, 0.55); }
.term-bar > span:nth-child(3) { background: rgba(79, 233, 224, 0.55); }
.term-bar b {
  margin-left: 8px;
  color: var(--fg-4);
  font-weight: 500;
  font-size: 0.72rem;
}

.term-body {
  margin: 0;
  padding: 20px 18px 22px;
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--fg-2);
  overflow-x: auto;
  white-space: pre;
}

/* --------------------------------------------------------- ai solutions --- */

.ai-solutions-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(64vw 46vh at 22% 12%, rgba(144, 96, 228, 0.1), transparent 68%);
}

.cta-band {
  margin-top: 34px;
  padding: clamp(24px, 3.6vw, 38px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(144, 96, 228, 0.26);
  background: linear-gradient(120deg, rgba(45, 28, 78, 0.6), rgba(14, 24, 34, 0.5));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { margin-bottom: 7px; }
.cta-band p { font-size: 0.93rem; color: var(--fg-3); max-width: 56ch; }

/* ------------------------------------------------------------- on-prem --- */

.onprem-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(155deg, rgba(27, 18, 48, 0.7), rgba(10, 7, 16, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -44px rgba(79, 233, 224, 0.6);
}
.op-row {
  display: grid;
  grid-template-columns: 108px 1fr 62px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.op-head { padding-bottom: 14px; }
.op-head b { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--fg-4); font-weight: 500; }
.op-label { font-size: 0.86rem; color: var(--fg-2); }
.op-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.op-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.op-val { font-size: 0.7rem; color: var(--fg-4); text-align: right; }

.op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.op-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.76rem;
  color: var(--fg-3);
}
.op-list b { margin-left: auto; color: var(--fg); font-weight: 500; }

@media (max-width: 460px) {
  .op-row { grid-template-columns: 88px 1fr; }
  .op-val { display: none; }
}

/* ----------------------------------------------------------------- faq --- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq-item {
  border-radius: var(--r);
  border: 1px solid var(--hairline);
  background: rgba(21, 14, 36, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item.open { border-color: rgba(144, 96, 228, 0.35); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--violet-bright); }
.faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fg-4);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--violet-bright); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  font-size: 0.92rem;
  color: var(--fg-3);
  padding-inline: 22px;
  transition: padding 0.35s var(--ease);
}
.faq-item.open .faq-a > p { padding-bottom: 20px; }

/* ------------------------------------------------------------- contact --- */

.contact-card {
  position: relative;
  padding: clamp(38px, 6vw, 68px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(144, 96, 228, 0.28);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(144, 96, 228, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(27, 18, 48, 0.78), rgba(10, 7, 16, 0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  box-shadow: 0 40px 100px -50px rgba(144, 96, 228, 0.9);
}
.contact-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(144, 96, 228, 0.6));
}

/* -------------------------------------------------------- contact form --- */

.contact-lede { margin-inline: auto; text-align: center; }

.contact-form {
  width: 100%;
  max-width: 560px;
  margin-top: 12px;
  text-align: left;
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 7px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

.contact-form label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--fg-2);
}
.contact-form .req { color: var(--violet-bright); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline-2);
  background: rgba(10, 7, 16, 0.6);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 96px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-4); }

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: rgba(255, 255, 255, 0.22); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(144, 96, 228, 0.65);
  background: rgba(10, 7, 16, 0.85);
  box-shadow: 0 0 0 3px rgba(144, 96, 228, 0.18);
}

/* Native select arrow, redrawn to match the dark theme. */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A80A0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.contact-form select option { background: #150E24; color: var(--fg); }

/* Honeypot: moved off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  text-align: center;
  color: var(--fg-3);
}
.form-status.ok    { color: var(--cyan); }
.form-status.error { color: #FFA97A; }

.form-note { text-align: center; margin: 0; }

/* Success state: the form is replaced by this confirmation. */
.form-done {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 30px 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(79, 233, 224, 0.3);
  background: rgba(79, 233, 224, 0.06);
  text-align: center;
}
.form-done svg { width: 32px; height: 32px; color: var(--cyan); }
.form-done b { color: var(--fg); font-size: 1.05rem; }
.form-done p { font-size: 0.92rem; color: var(--fg-3); margin: 0; max-width: 42ch; }

/* -------------------------------------------------------------- footer --- */

.footer {
  padding-block: clamp(48px, 6vw, 72px) 40px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(20, 13, 34, 0.7));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 4px;
}
.foot-col a {
  font-size: 0.9rem;
  color: var(--fg-3);
  transition: color 0.2s;
  width: fit-content;
}
.foot-col a:hover { color: var(--violet-bright); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--fg-4);
}
