/* ============================================================
   FAERONIS — Design tokens
   Palette derived directly from the brand mark (crystal/wing logo)
   ============================================================ */
:root {
  --void:        #0A0812;   /* base background */
  --panel:       #150D24;   /* raised section background */
  --panel-2:     #1C1230;   /* card background */
  --crystal:     #9B4DFF;   /* primary violet accent */
  --crystal-dim: #6B2FB8;   /* pressed / border violet */
  --arc:         #C9BBFF;   /* silver-lavender highlight */
  --ion:         #F4F1FC;   /* primary text (off-white) */
  --mist:        #948DAE;   /* secondary / muted text */
  --line:        #2A2040;   /* hairline borders */

  --display: 'Rajdhani', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max: 1120px;
  --edge-cut: 18px; /* facet corner cut size */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ion);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crystal);
  margin-bottom: 14px;
}

/* ============================================================
   Faceted shape utility — clips corners into angular cuts,
   echoing the crystal facets in the logo
   ============================================================ */
.facet {
  clip-path: polygon(
    var(--edge-cut) 0, 100% 0, 100% calc(100% - var(--edge-cut)),
    calc(100% - var(--edge-cut)) 100%, 0 100%, 0 var(--edge-cut)
  );
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.nav__logo { height: 28px; width: auto; }
.nav__cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid var(--crystal-dim);
  color: var(--arc);
  transition: border-color .2s ease, color .2s ease;
}
.nav__cta:hover { border-color: var(--crystal); color: var(--ion); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(155,77,255,0.28) 0%, rgba(155,77,255,0.08) 40%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155,77,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,77,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero__logo {
  width: 220px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 30px rgba(155,77,255,0.45));
}
.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--ion);
  margin-bottom: 22px;
}
.hero__sub {
  font-size: 1.08rem;
  color: var(--mist);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--crystal), var(--crystal-dim));
  color: var(--ion);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn--primary:hover {
  box-shadow: 0 0 28px rgba(155,77,255,0.5);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--arc);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn--ghost:hover { border-color: var(--crystal); color: var(--ion); }
.btn--wide { width: 100%; padding: 15px 28px; }

/* ============================================================
   FACET DIVIDER (signature element — animated traffic pulse)
   ============================================================ */
.facet-divider {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}
.facet-divider svg { width: 100%; height: 60px; display: block; }
.facet-divider__path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.facet-divider__pulse {
  fill: none;
  stroke: var(--crystal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 80 1400;
  filter: drop-shadow(0 0 6px var(--crystal));
  animation: pulse-flow 5s linear infinite;
}
@keyframes pulse-flow {
  0%   { stroke-dashoffset: 1480; }
  100% { stroke-dashoffset: 0; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { position: relative; padding: 110px 24px; }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__inner--narrow { max-width: 640px; text-align: center; }
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 20px;
  color: var(--ion);
}

/* ============================================================
   EDGE — trust cards
   ============================================================ */
.edge { background: var(--panel); }
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.facet-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 32px 28px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.facet-card:hover {
  border-color: var(--crystal-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.facet-card__mark {
  display: inline-block;
  color: var(--crystal);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.facet-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ion);
}
.facet-card p { color: var(--mist); font-size: 0.96rem; }

/* ============================================================
   COVERAGE
   ============================================================ */
.coverage { background: var(--void); }
.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.coverage__text,
.coverage__marquee { min-width: 0; }
.coverage__desc { color: var(--mist); margin-top: 18px; font-size: 1.02rem; max-width: 480px; }

.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--arc);
  white-space: nowrap;
  padding: 8px 18px;
  border: 1px solid var(--line);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--panel); }
.process__steps {
  margin-top: 48px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.process__step { flex: 1; min-width: 0; }
.process__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--crystal);
  border: 1px solid var(--crystal-dim);
  padding: 4px 10px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  margin-bottom: 16px;
}
.process__step h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ion); }
.process__step p { color: var(--mist); font-size: 0.95rem; }
.process__connector {
  flex: 0 0 60px;
  height: 1px;
  margin-top: 16px;
  background: repeating-linear-gradient(90deg, var(--crystal-dim) 0 6px, transparent 6px 12px);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--void);
  text-align: center;
  overflow: hidden;
}
.manifesto__wing {
  position: absolute;
  top: 50%; left: 50%;
  width: 1000px; height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(155,77,255,0.10), transparent 60%);
  pointer-events: none;
}
.manifesto__quote {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--ion);
  max-width: 780px;
  margin: 0 auto 28px;
}
.manifesto__line {
  position: relative;
  font-family: var(--mono);
  color: var(--crystal);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--panel); }
.contact__sub { color: var(--mist); margin-bottom: 40px; }
.form { text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { margin-bottom: 20px; }
.form__field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
}
.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ion);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 13px 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color .2s ease;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--crystal);
}
.form__field textarea { resize: vertical; }

.socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 40px 0 20px;
}
.socials__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--mist);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color .2s ease, color .2s ease;
}
.socials__icon svg { width: 18px; height: 18px; }
.socials__icon:hover { border-color: var(--crystal); color: var(--arc); }

.contact__footnote {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mist);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--mist);
  font-size: 0.85rem;
}
.footer__logo { height: 24px; width: auto; opacity: 0.6; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .facet-divider__pulse, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .section__inner--split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .process__steps { flex-direction: column; gap: 32px; }
  .process__connector { display: none; }
  .form__row { grid-template-columns: 1fr; }
}
