/* ZetaShift — shared site styles.
   Design system: "Phase" — dark ink base, violet→cyan shift gradient,
   Space Grotesk display over Inter text, motion driven by CSS only.
   Mobile-first. No JS required. Honors prefers-reduced-motion. */

:root {
  --ink:        #080a14;
  --ink-2:      #0c1020;
  --panel:      rgba(255, 255, 255, 0.035);
  --panel-2:    rgba(255, 255, 255, 0.06);
  --line:       rgba(255, 255, 255, 0.11);
  --line-2:     rgba(255, 255, 255, 0.2);
  --fg:         #eef1fb;
  --muted:      #a8b1cf;
  --muted-2:    #7f89ab;
  --violet:     #8b6bff;
  --blue:       #4d8dff;
  --mint:       #2ee6c5;
  --accent:     #8fb6ff;
  --shift: linear-gradient(100deg, var(--violet), var(--blue) 55%, var(--mint));

  --max-width: 1100px;
  --reading-width: 46rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;

  --font-display: "Space Grotesk", "Segoe UI Semibold", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ambient backdrop: aurora + grid, pure CSS ---------- */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(52rem 34rem at 12% -8%, rgba(139, 107, 255, 0.26), transparent 62%),
    radial-gradient(44rem 30rem at 96% 6%, rgba(46, 230, 197, 0.16), transparent 60%),
    radial-gradient(60rem 40rem at 50% 108%, rgba(77, 141, 255, 0.16), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 12%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 55% at 50% 12%, #000 0%, transparent 78%);
  opacity: 0.9;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ---------- structure ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--fg);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

header.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
  display: inline-block;
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
  border-color: var(--line-2);
  background: var(--panel);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin: 0 0 1.6rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.6);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 230, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 15vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}

.hero h1 .shift {
  background: var(--shift);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 9s ease-in-out infinite alternate;
}

@keyframes sweep {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero .rule {
  height: 2px;
  border: 0;
  margin: 1.8rem 0;
  background: var(--shift);
  background-size: 200% 100%;
  opacity: 0.8;
  animation: sweep 9s ease-in-out infinite alternate;
}

.hero-lines {
  display: grid;
  gap: 1.4rem;
  max-width: 44rem;
}

.hero-lines p {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--fg);
}

.hero-lines .sub {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- bilingual blocks ---------- */

.lang-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-bottom: 0.55rem;
}

.lang-block { margin-bottom: 1.1rem; }
.lang-block:last-child { margin-bottom: 0; }

.bilingual {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .bilingual .lang-block { margin-bottom: 0; }
}

/* ---------- sections ---------- */

section {
  position: relative;
  margin: clamp(3.5rem, 10vw, 6rem) 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}

.section-head .alt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}

.section-head .count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

/* ---------- product cards ---------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--panel-2), rgba(255, 255, 255, 0.015));
  padding: clamp(1.3rem, 4vw, 2.2rem);
  margin-bottom: 1.2rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--shift);
  background-size: 100% 260%;
  opacity: 0.85;
  animation: slide 7s ease-in-out infinite alternate;
}

@keyframes slide {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 100%; }
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 22px 60px -30px rgba(77, 141, 255, 0.55);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

.card .kind {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.card.soon {
  background: none;
  border-style: dashed;
}

.card.soon::before { opacity: 0.35; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-top: 1.2rem;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

/* ---------- links and buttons ---------- */

a { color: var(--accent); }

a:focus-visible,
.card:focus-within { outline: none; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

a.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--panel);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, color 0.25s ease;
}

a.button:hover,
a.button:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  background-image: var(--shift);
  color: #06080f;
}

a.button .arrow { transition: transform 0.25s ease; }
a.button:hover .arrow { transform: translateX(3px); }

/* ---------- studio / contact ---------- */

.studio-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 860px) {
  .studio-grid { grid-template-columns: 1.25fr 1fr; }
}

.mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  background-image: var(--shift);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.3s ease;
  word-break: break-word;
}

.mail:hover,
.mail:focus-visible {
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.3rem 1.4rem;
}

.meta dl {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.meta dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.meta dd {
  margin: 0.2rem 0 0;
  color: var(--fg);
}

.meta dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.meta dd a:hover { border-color: var(--mint); }

/* ---------- footer ---------- */

footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 2rem var(--gutter) 3rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
}

footer.site-footer p { margin: 0; }

footer.site-footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer.site-footer nav a:hover,
footer.site-footer nav a:focus-visible {
  color: var(--fg);
  border-color: var(--line-2);
}

/* ---------- legal pages (shared shell, long-form reading) ---------- */

.legal {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding-top: 2rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.35rem;
}

.legal .updated {
  color: var(--muted-2);
  font-size: 0.88rem;
  margin: 0 0 2rem;
}

.legal h2,
.legal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.6rem;
  color: var(--fg);
}

.legal p,
.legal li {
  color: #dee4f5;
}

.legal strong { color: var(--fg); }

.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

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

.legal-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--fg);
  border-color: var(--line-2);
  background: var(--panel);
}

hr.lang-divider {
  border: none;
  height: 1px;
  margin: 3.5rem 0;
  background: var(--shift);
  opacity: 0.5;
}

/* ---------- entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .reveal:nth-of-type(2) { animation-delay: 0.08s; }
  .reveal:nth-of-type(3) { animation-delay: 0.16s; }

  .hero .eyebrow,
  .hero h1,
  .hero .rule,
  .hero-lines {
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero h1        { animation-delay: 0.08s; }
  .hero .rule     { animation-delay: 0.18s; }
  .hero-lines     { animation-delay: 0.26s; }

  /* Scroll-driven where supported: sections fade in as they enter the view. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-delay: 0s;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .legal p, .legal li, .legal h1, .legal h2, .legal h3 { color: #000; }
  .site-nav, .legal-nav { display: none; }
}
