/* ============================================
   Aimola - shared styles
   ============================================ */

:root {
  --bg: #0a0a0a;
  --elevated: #141414;
  --card: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --dim: #8a8a8a;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-hover: #33dfff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent-border: rgba(0, 212, 255, 0.35);
  --live-green: #3dd68c;
  --live-green-dim: rgba(61, 214, 140, 0.14);
  --amber: #f5b544;
  --amber-dim: rgba(245, 181, 68, 0.14);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --size-hero: clamp(3rem, 7vw, 6rem);
  --size-h1: clamp(2.5rem, 5vw, 4rem);
  --size-h2: clamp(1.75rem, 3vw, 2.5rem);
  --size-h3: 1.375rem;
  --size-body-lg: 1.125rem;
  --size-body: 1rem;
  --size-sm: 0.875rem;
  --size-xs: 0.75rem;

  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(64px, 10vw, 140px) 0;
}

.section--tight {
  padding: clamp(48px, 7vw, 96px) 0;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: var(--size-sm);
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav__mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav__mobile-toggle span,
.nav__mobile-toggle span::before,
.nav__mobile-toggle span::after {
  content: "";
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav__mobile-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav__mobile-toggle span::after {
  position: absolute;
  top: 5px;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__mobile-toggle {
    display: flex;
  }
}

/* ============================================
   MOBILE DRAWER
   ============================================ */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  z-index: 99;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-left: 1px solid var(--border);
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  visibility: hidden;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer a {
  padding: 16px 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-drawer a:hover,
.mobile-drawer a:active {
  color: var(--accent);
  transform: translateX(6px);
}

.mobile-drawer a.btn {
  border-bottom: none;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  padding: 14px 22px;
  color: #001117;
  justify-content: center;
}

.mobile-drawer a.btn:hover {
  transform: none;
  color: #001117;
}

/* Backdrop when drawer is open */
.mobile-drawer::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-drawer.is-open::before {
  opacity: 1;
  pointer-events: auto;
}

/* Animated hamburger → X */
.nav__mobile-toggle {
  z-index: 101;
  position: relative;
  transition: background 0.2s ease;
}

.nav__mobile-toggle span,
.nav__mobile-toggle span::before,
.nav__mobile-toggle span::after {
  transition: transform 0.25s ease, background 0.2s ease, top 0.2s ease;
}

.nav__mobile-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__mobile-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav__mobile-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: #001117;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(0, 212, 255, 0.55);
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn--ghost .arrow {
  transition: transform 0.2s ease;
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   LABELS / TAGS / PILLS
   ============================================ */

.label {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.label--muted {
  color: var(--muted);
}

.label--muted::before {
  background: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  text-transform: lowercase;
}

.tag--accent {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.status--live {
  color: var(--live-green);
  background: var(--live-green-dim);
  border: 1px solid rgba(61, 214, 140, 0.3);
}

.status--building {
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 181, 68, 0.28);
}

.status--planning {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
}

.dot--pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Availability badge */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.availability .dot {
  color: var(--accent);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card--elevated {
  background: var(--elevated);
}

.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px -20px rgba(0, 212, 255, 0.25),
    0 0 0 1px rgba(0, 212, 255, 0.08) inset;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--text);
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.hero-title {
  font-size: var(--size-hero);
}

.h1 {
  font-size: var(--size-h1);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
}

.h1 em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-size: var(--size-h2);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.h2 em {
  font-style: italic;
  color: var(--accent);
}

.h3 {
  font-size: var(--size-h3);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.subhead {
  font-size: var(--size-body-lg);
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
}

/* Tech strip */
.tech-strip {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.tech-strip span {
  position: relative;
}

/* ============================================
   STATS BLOCK (mono)
   ============================================ */

.stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
}

.stat {
  padding: 20px 0 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stat:last-child {
  border-bottom: 0;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   FORM
   ============================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__label .req {
  color: var(--accent);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: var(--size-body);
  transition: border-color 0.18s ease, background 0.18s ease;
  outline: none;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--dim);
}

.field__input:hover,
.field__select:hover,
.field__textarea:hover {
  border-color: var(--border-strong);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--accent-border);
  background: rgba(0, 212, 255, 0.03);
}

.field__input.is-invalid,
.field__textarea.is-invalid,
.field__select.is-invalid {
  border-color: rgba(255, 100, 100, 0.45);
  background: rgba(255, 100, 100, 0.04);
}

.field__error {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: #ff8080;
  display: none;
}

.field.is-invalid .field__error {
  display: block;
}

.field__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field__select option {
  background: var(--elevated);
  color: var(--text);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-size: var(--size-body-lg);
  color: var(--text);
  font-weight: 500;
  transition: color 0.18s ease;
}

.faq-item__q:hover {
  color: var(--accent);
}

.faq-item__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  color: var(--muted);
  transition: color 0.18s ease;
}

.faq-item__q:hover .faq-item__icon {
  color: var(--accent);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-item__icon::after {
  transform: rotate(0);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item__a-inner {
  padding: 0 40px 28px 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.65;
}

.faq-item.is-open .faq-item__a {
  max-height: 400px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
}

.footer__tagline {
  color: var(--muted);
  font-size: var(--size-sm);
  max-width: 36ch;
  margin-bottom: 24px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--size-sm);
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--dim);
  letter-spacing: 0.04em;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom .availability {
  padding: 4px 10px 4px 10px;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   FADE-IN UTILITY
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.fade-in.d1 { animation-delay: 0.08s; }
.fade-in.d2 { animation-delay: 0.16s; }
.fade-in.d3 { animation-delay: 0.24s; }
.fade-in.d4 { animation-delay: 0.32s; }
.fade-in.d5 { animation-delay: 0.4s; }
.fade-in.d6 { animation-delay: 0.48s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .stat__num {
    font-size: 1.9rem;
  }

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