/* ==========================================================
   Ascion — landing page
   ========================================================== */

:root {
  --ink: #04031a;
  --night: #07062a;
  --indigo: #1a1f8f;
  --royal: #3346c4;
  --sky: #4f8dff;
  --cyan: #19d3e6;
  --white: #ffffff;
  --text: #e9ecff;
  --muted: #a3a9d6;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 18px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

h1, h2, h3 { color: var(--white); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ---------- Logo / wordmark ---------- */
.i { position: relative; display: inline-block; }
.i__mark {
  position: absolute;
  left: 50%;
  bottom: 70%;
  width: 0.34em;
  height: 0.34em;
  transform: translateX(-30%);
  fill: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--white);
  color: var(--night);
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(79, 141, 255, .6);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--small { padding: 9px 18px; font-size: .9rem; }
.btn--full { width: 100%; padding: 16px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 3, 26, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 32px;
  border-color: var(--line);
}
.nav__logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav__logo--sm { font-size: 1.25rem; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 24px 40px;
}

/* Silk: diagonal bands, blurred, with a cyan glow bottom-right */
.hero__silk {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse 38% 30% at 80% 76%, var(--cyan) 0%, rgba(79,141,255,.8) 40%, transparent 72%),
    repeating-linear-gradient(
      -14deg,
      #050322 0px,
      #0e0b52 70px,
      #2b3db8 150px,
      #3a52cf 185px,
      #1b1f86 230px,
      #050322 300px
    );
  filter: blur(38px) saturate(1.15);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-3%, 2%, 0) rotate(1.5deg); }
}

/* Film grain */
.hero__grain,
.section--contact::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.hero__content {
  flex: 1;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero__facts {
  width: 100%;
  max-width: var(--maxw);
  margin-top: 56px;
  text-align: left;
  border-top-color: rgba(255, 255, 255, .16);
}
.hero__facts .fact__k { color: rgba(233, 236, 255, .65); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  font-size: .85rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 36px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(25, 211, 230, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(25, 211, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 211, 230, 0); }
}

.wordmark {
  font-size: clamp(4.5rem, 16vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 32px;
  text-shadow: 0 10px 60px rgba(4, 3, 26, .4);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(233, 236, 255, .85);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section--tint {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(51, 70, 196, .18), transparent 70%),
    var(--night);
}
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.label {
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__k {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.fact__v { font-size: 1.15rem; color: var(--white); font-weight: 400; }

/* ---------- Contact ---------- */
.section--contact { overflow: hidden; isolation: isolate; }
.section--contact::after { content: ""; opacity: .15; }
.contact__glow {
  position: absolute;
  z-index: -2;
  inset: 20% -20% -40% -20%;
  background:
    radial-gradient(ellipse 40% 45% at 85% 85%, rgba(25, 211, 230, .45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(51, 70, 196, .45), transparent 70%);
  filter: blur(40px);
}

.form {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: rgba(7, 6, 42, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 400; }
.opt { opacity: .6; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a9d6' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: var(--night); color: var(--white); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(163, 169, 214, .55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 4px rgba(79, 141, 255, .18);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #ff7a8a; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__status { margin-top: 16px; text-align: center; font-size: .95rem; min-height: 1.5em; }
.form__status.is-ok { color: var(--cyan); }
.form__status.is-err { color: #ff9aa6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { padding-bottom: 24px; }
}

@media (max-width: 720px) {
  .nav, .nav.is-scrolled { padding: 16px 20px; }
  .hero__facts .fact__v { font-size: 1rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Style example ---------- */
.style { overflow: hidden; }
.style::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  right: -10%;
  top: 10%;
  background: radial-gradient(circle, rgba(51, 70, 196, .35), transparent 65%);
  filter: blur(40px);
}
.style__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.style__ref {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(25, 211, 230, .06);
  color: var(--text);
  font-size: 1rem;
}
.style__ref span {
  display: block;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cyan);
}
.style__ref em { font-style: italic; color: var(--white); font-weight: 400; }
.style__traits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 36px;
}
.style__traits li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  font-size: .9rem;
  color: var(--white);
}
.style__figure { margin: 0; }
.style__frame {
  position: relative;
  padding: clamp(10px, 1.6vw, 18px);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .2),
    0 40px 80px -30px rgba(0, 0, 0, .7),
    0 0 90px -20px rgba(79, 141, 255, .45);
  transform: rotate(1.2deg);
  transition: transform .5s var(--ease);
}
.style__frame:hover { transform: rotate(0deg) scale(1.01); }
.style__frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.style__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: .85rem;
  color: var(--muted);
}
.style__tag {
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cyan);
}
@media (max-width: 900px) {
  .style__grid { grid-template-columns: 1fr; }
  .style__frame { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
