/* ==========================================================================
   Spectre AI FZCO — Coming Soon
   1. Fonts
   2. Tokens
   3. Reset / base
   4. Backdrop (mesh + stars)
   5. Hero
   6. Button
   7. Contact panel + form
   8. Footer
   9. Keyframes
   10. Responsive / motion preferences
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --c-bg: #050106;
  --c-ink: #F8F8F8;
  --c-ink-muted: rgba(217, 217, 217, .75);
  --c-ink-soft: rgba(217, 217, 217, .55);
  --c-ink-faint: rgba(217, 217, 217, .45);
  --c-rule: rgba(217, 217, 217, .28);
  --c-glass: linear-gradient(149deg, rgba(255,255,255,.014), rgba(255,255,255,.008));
  --c-glass-edge: inset 0 0 0 .5px rgba(255, 255, 255, .05);

  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* 3. Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;       /* no rubber-band black gap */
  background: var(--c-bg);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 300;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #FFFCEC; color: var(--c-bg); }

a { color: #D9D9D9; text-decoration: none; transition: color 180ms var(--ease-out); }
a:hover { color: var(--c-ink); }

input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: rgba(217, 217, 217, .32); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.page { position: relative; min-height: 100vh; }

/* 4. Backdrop ------------------------------------------------------------- */
.mesh {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.mesh__blob { position: absolute; border-radius: 50%; }
.mesh__blob--a {
  left: 6%; top: -14%; width: 52%; height: 78%;
  background: radial-gradient(circle, rgba(157,188,255,.5), transparent 66%);
  filter: blur(90px);
  animation: meshA 26s ease-in-out infinite;
}
.mesh__blob--b {
  right: -6%; top: 22%; width: 48%; height: 70%;
  background: radial-gradient(circle, rgba(224,224,224,.34), transparent 68%);
  filter: blur(100px);
  animation: meshB 32s ease-in-out infinite;
}
.mesh__blob--c {
  left: 24%; bottom: -18%; width: 56%; height: 72%;
  background: radial-gradient(circle, rgba(224,224,224,.26), transparent 68%);
  filter: blur(110px);
  animation: meshC 38s ease-in-out infinite;
}

.stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}
.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px 0;
}
.hero__title {
  margin: 0;
  font-size: clamp(30px, 9.2vw, 168px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: .14em;
  text-indent: .14em;
  text-align: center;
  max-width: 100%;
}
.hero__spacer { height: 26px; }

/* 6. Button --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 54px;
  padding: 0 34px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(12,12,14,.94), rgba(6,6,8,.96));
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: var(--c-glass-edge);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { color: var(--c-ink); }
.btn--block { width: 100%; }

.btn__ring {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 1px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.btn__ring i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    rgba(255,255,255,0) 0deg,
    rgba(224,224,224,.28) 34deg,
    rgba(255,255,255,.98) 72deg,
    rgba(224,224,224,.28) 110deg,
    rgba(255,255,255,0) 150deg,
    rgba(255,255,255,0) 360deg);
  animation: ringSpin 10s linear infinite;
  will-change: transform;
}
.btn__label, .btn__arrow { position: relative; }
.btn__arrow { font-size: 14px; line-height: 1; letter-spacing: 0; }

/* 7. Contact panel + form ------------------------------------------------- */
.contact {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 12vw, 120px) clamp(20px, 5vw, 40px);
  display: flex;
  justify-content: center;
}
.panel {
  width: 100%;
  max-width: 720px;
  padding: clamp(36px, 7vw, 72px) clamp(24px, 6vw, 64px);
  border-radius: 22px;
  background: var(--c-glass);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: var(--c-glass-edge);
  display: flex;
  flex-direction: column;
  gap: 56px;
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.panel.is-visible { opacity: 1; transform: translateY(0); }

.panel__head { display: flex; flex-direction: column; gap: 16px; }
.panel__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 300;
  max-width: 20ch;
  text-wrap: pretty;
}

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(217, 217, 217, .5);
}
.field__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-ink);
  font-size: 19px;
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  transition: border-color 180ms var(--ease-out);
}
.field__input:focus { border-bottom-color: var(--c-ink); }
.field__input--area { resize: none; }

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.form__status { font-size: 15px; color: var(--c-ink-soft); min-height: 1em; }

/* 8. Footer --------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 56px 40px;
  display: flex;
  justify-content: center;
}
.footer__inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.footer__block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__block a { font-size: 17px; }
.footer__value { font-size: 17px; line-height: 26px; color: var(--c-ink-muted); }

/* 9. Keyframes ------------------------------------------------------------ */
@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes meshA {
  0%, 100% { transform: translate(-8%, -4%) scale(1);      opacity: .34; }
  50%      { transform: translate(10%, 12%) scale(1.28);   opacity: .6; }
}
@keyframes meshB {
  0%, 100% { transform: translate(12%, 8%) scale(1.15);    opacity: .28; }
  50%      { transform: translate(-9%, -10%) scale(.92);   opacity: .52; }
}
@keyframes meshC {
  0%, 100% { transform: translate(4%, 14%) scale(.95);     opacity: .22; }
  50%      { transform: translate(-12%, -6%) scale(1.3);   opacity: .44; }
}

/* 10. Responsive / motion ------------------------------------------------- */
@media (max-width: 600px) {
  .hero { padding: 24px; }
  .footer { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh__blob, .btn__ring i { animation: none; }
  .panel { opacity: 1; transform: none; transition: none; }
}
