/* Website UI kit — local layout tokens only.
   All design tokens come from ../../colors_and_type.css */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--void-1); }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(30, 107, 255, 0.18); color: var(--fg-0); }

/* Page shell ------------------------------------------------ */
.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34,211,238,0.08), transparent 55%),
    var(--void-1);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Section base ---------------------------------------------- */
.section {
  position: relative;
  padding: 96px 0;
}
.section--lg { padding: 128px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head__left { display: flex; flex-direction: column; gap: 18px; }
.section-head__right { color: var(--fg-2); max-width: 560px; }

/* Layout grid utilities ------------------------------------- */
.row { display: flex; gap: 24px; }
.col { display: flex; flex-direction: column; gap: 24px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Eyebrow with bracket counter ------------------------------ */
.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-row__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--tera-cyan);
  box-shadow: 0 0 12px var(--tera-cyan);
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-cine),
              background var(--dur-base) var(--ease-cine),
              border-color var(--dur-base) var(--ease-cine),
              box-shadow var(--dur-base) var(--ease-cine);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.985); }

.btn--primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)) , var(--tera-electric);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 1px rgba(34,211,238,0) , 0 10px 30px rgba(30,107,255,0.30);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(34,211,238,0.4), 0 12px 40px rgba(34,211,238,0.30);
}

.btn--glass {
  background: var(--glass-2);
  border-color: var(--line-2);
  color: var(--fg-0);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.btn--glass:hover {
  background: var(--glass-3);
  border-color: var(--line-3);
  box-shadow: var(--glow-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg-0);
}
.btn--ghost:hover {
  border-color: var(--line-3);
  background: var(--glass-1);
}

.btn .arrow { transition: transform var(--dur-base) var(--ease-cine); }
.btn:hover .arrow { transform: translateX(3px); }

/* Card primitive -------------------------------------------- */
.card {
  position: relative;
  background: var(--glass-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-cine),
              border-color var(--dur-base) var(--ease-cine),
              background var(--dur-base) var(--ease-cine);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 32%);
  pointer-events: none;
  opacity: 0.9;
}
.card:hover {
  background: var(--glass-3);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

/* Tag / pill ------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tag--accent {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
  color: var(--tera-cyan);
}

/* Hairline divider with center label ------------------------ */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fg-4);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-1);
}

/* Idle floating motion -------------------------------------- */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes orbit-rotate { to { transform: rotate(360deg); } }
@keyframes orbit-rotate-rev { to { transform: rotate(-360deg); } }
@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rise {
  from { transform: translateY(8px); }
  to   { transform: translateY(0); }
}
.rise { opacity: 1; animation: rise 500ms var(--ease-cine) forwards; }

/* Responsive ------------------------------------------------ */
@media (max-width: 1100px) {
  .shell { padding: 0 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
