/* ==========================================================================
   Noriva — Digital Superagency
   Base styles, design tokens, layout, components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #07070b;
  --bg-alt: #0e0e16;
  --fg: #f4f4f7;
  --fg-muted: #9797a6;
  --fg-dim: #5c5c6b;
  --cyan: #35e6ff;
  --purple: #a855f7;
  --line: rgba(244, 244, 247, 0.1);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --nav-h: 84px;
}

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

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.text-gradient {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(53, 230, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(7, 7, 11, 0.85), transparent);
  backdrop-filter: blur(6px);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 6px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: inherit;
  padding: 4px 10px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
}

.lang-switch button.active {
  background: var(--fg);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--fg);
}

/* ---------- Hero scroll-scrub ---------- */

.hero-scroll {
  position: relative;
  height: 400vh;
  background: var(--bg);
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(7, 7, 11, 0.55) 100%),
    linear-gradient(to bottom, rgba(7,7,11,0.75) 0%, transparent 18%, transparent 78%, rgba(7,7,11,0.9) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-pin.is-ready #hero-canvas,
.hero-pin.is-ready .hero-vignette {
  opacity: 1;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.hero-kicker {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
}

.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 74px);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  max-width: 900px;
  margin: 0 auto;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-scroll-hint .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--fg-muted);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

.hero-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.loader-pct {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  font-family: var(--font-display);
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section-pad {
  padding: 140px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 16px;
}

.section-head p {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Statement */

.statement {
  padding: 160px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 980px;
}

.statement p .dim {
  color: var(--fg-dim);
}

/* Stats row */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 90px 0;
}

.stat h3 {
  font-size: clamp(36px, 5vw, 56px);
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Cards grid */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.card {
  background: var(--bg);
  padding: 44px 36px;
  transition: background 0.4s;
}

.card:hover {
  background: var(--bg-alt);
}

.card .card-index {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

.card h3 {
  margin-top: 22px;
  font-size: 22px;
}

.card p {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* CTA band */

.cta-band {
  padding: 150px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(32px, 6vw, 72px);
  max-width: 900px;
  margin: 0 auto;
}

.cta-band .btn {
  margin-top: 40px;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-cols {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-dim);
  opacity: 0.7;
}

/* ---------- Inner page hero (About / Contact) ---------- */

.page-hero {
  padding: calc(var(--nav-h) + 90px) 0 90px;
  border-bottom: 1px solid var(--line);
}

.page-hero-video {
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, var(--bg) 78%),
    linear-gradient(to bottom, rgba(7,7,11,0.4) 0%, var(--bg) 100%);
}

.page-hero-video .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 7vw, 84px);
  max-width: 900px;
}

.page-hero p {
  margin-top: 24px;
  max-width: 560px;
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.7;
}

/* About page */

.about-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about-story .sticky-label {
  position: sticky;
  top: 140px;
}

.about-story .prose p {
  font-size: 19px;
  line-height: 1.85;
  color: var(--fg-muted);
  margin-bottom: 26px;
}

.about-story .prose strong {
  color: var(--fg);
  font-weight: 500;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.pillar h3 {
  margin-top: 20px;
  font-size: 24px;
}

.pillar p {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row .t-year {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fg-dim);
}

.timeline-row h4 {
  font-size: 19px;
  font-weight: 500;
}

.timeline-row p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.contact-info h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.contact-info .info-block {
  margin-bottom: 40px;
}

.contact-info a.email {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}

.contact-info a.email:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s;
}

.field select option {
  background: var(--bg-alt);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-muted);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #ff7676;
}

.form-status.is-success {
  color: var(--cyan);
}

/* ---------- Reveal utility ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards-grid,
  .stats,
  .pillars {
    grid-template-columns: 1fr;
  }

  .about-story,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-story .sticky-label {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-cols {
    gap: 50px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
    padding: 20px 24px 30px;
  }

  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-right .btn {
    display: none;
  }

  .container {
    padding: 0 20px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
