/* GoPro Inc — GPRO */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-soft: #111111;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --white: #ffffff;
  --black: #000000;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #00d4ff;
  --blue: #007aff;
  --magenta: #ff2d95;
  --lime: #b8ff3c;
  --orange: #ff6b00;
  --yellow: #ffe600;
  --rainbow: linear-gradient(
    90deg,
    var(--magenta),
    var(--orange),
    var(--yellow),
    var(--lime),
    var(--cyan),
    var(--blue),
    var(--magenta)
  );
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --radius: 14px;
  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* Motion streaks */
.streaks {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.35;
}

.streak {
  position: absolute;
  height: 2px;
  width: 42vw;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 200% 100%;
  filter: blur(0.5px);
  opacity: 0.55;
  animation: streak-move 9s linear infinite, rainbow-shift 4s linear infinite;
}

.streak--1 {
  top: 18%;
  left: -20%;
  animation-duration: 11s, 4s;
  animation-delay: 0s, 0s;
}

.streak--2 {
  top: 42%;
  left: -30%;
  width: 55vw;
  height: 1.5px;
  opacity: 0.35;
  animation-duration: 14s, 5s;
  animation-delay: -3s, -1s;
}

.streak--3 {
  top: 68%;
  left: -15%;
  width: 35vw;
  animation-duration: 10s, 3.5s;
  animation-delay: -6s, -2s;
}

.streak--4 {
  top: 88%;
  left: -25%;
  width: 48vw;
  height: 1px;
  opacity: 0.25;
  animation-duration: 16s, 6s;
  animation-delay: -2s, -0.5s;
}

@keyframes streak-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(140vw);
  }
}

@keyframes rainbow-shift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  animation: logo-float 5s var(--ease) infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-ticker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 600;
}

.nav {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.35rem;
  background: rgba(8, 8, 8, 0.97);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.72rem;
}

.btn--lg {
  padding: 0.95rem 1.55rem;
  font-size: 0.85rem;
}

.btn--primary {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  color: var(--black);
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(0, 212, 255, 0.25),
    0 0 40px rgba(255, 45, 149, 0.15);
}

.btn--outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.btn--outline:hover {
  color: var(--white);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.btn--ghost {
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--copy {
  padding: 0.7rem 1.15rem;
  font-size: 0.78rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.btn--copy:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.btn--copy.is-copied {
  background: var(--lime);
}

/* Bars motif from logo */
.bars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.bars i {
  display: block;
  width: 14px;
  height: 5px;
  border-radius: 1px;
}

.bars i:nth-child(1) {
  background: #4fc3f7;
}

.bars i:nth-child(2) {
  background: #29b6f6;
}

.bars i:nth-child(3) {
  background: #1565c0;
}

.bars i:nth-child(4) {
  background: #cfd8dc;
}

.bars--lg i {
  width: 28px;
  height: 8px;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  z-index: 1;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(0, 122, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 45, 149, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(184, 255, 60, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-title {
  display: block;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
}

.hero-ticker {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.hero-tagline {
  margin-top: 1.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--white);
  max-width: 22ch;
}

.hero-support {
  margin-top: 0.85rem;
  color: var(--text-muted);
  max-width: 34ch;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.hero-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-logo-wrap {
  position: relative;
  width: min(100%, 380px);
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--magenta),
    var(--orange),
    var(--yellow),
    var(--lime),
    var(--cyan),
    var(--blue),
    var(--magenta)
  );
  filter: blur(28px);
  opacity: 0.35;
  animation: glow-spin 12s linear infinite;
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 28px;
  animation: logo-float 6s var(--ease) infinite;
  will-change: transform;
}

.hero-banner-wrap {
  position: relative;
  width: min(100% - 2.5rem, var(--container));
  margin: 2.75rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

@keyframes glow-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
}

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

.about .lead {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  max-width: 38ch;
}

.about p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.origin-embed {
  margin-top: 3.5rem;
}

.origin-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1.25rem;
}

.tweet-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 550px;
  margin-inline: auto;
}

.tweet-embed .twitter-tweet {
  margin: 0 !important;
}

.tweet-embed iframe {
  max-width: 100% !important;
}

/* Mentality */
.mentality {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
}

.mentality-grid {
  display: grid;
  gap: 1rem;
}

.mentality-card {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mentality-card:hover {
  border-top-color: var(--cyan);
  transform: translateX(4px);
}

.mentality-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.mentality-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
}

.mentality-card:nth-child(1) h3 {
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mentality-card:nth-child(2) h3 {
  background: linear-gradient(90deg, var(--magenta), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mentality-card:nth-child(3) h3 {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mentality-card p {
  color: var(--text-muted);
  max-width: 32ch;
}

/* How to buy */
.buy-steps {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.buy-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--bg-soft);
}

.buy-steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.buy-steps p {
  color: var(--text-muted);
}

.buy-steps a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Contract */
.contract {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.ca-box {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black);
}

#contract-address {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  word-break: break-all;
  flex: 1 1 auto;
}

.ca-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Visuals */
.visuals-grid {
  display: grid;
  gap: 1.25rem;
}

.visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.visual:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
}

.visual img {
  width: 100%;
  object-fit: cover;
}

.visual--logo img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 2rem;
  background: #fff;
}

.visual--banner img {
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.visual figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-block: 6rem;
}

.final-cta .bars {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.final-cta h2 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.final-cta p {
  margin: 1rem auto 0;
  color: var(--text-muted);
  max-width: 28ch;
}

.final-cta .hero-ctas {
  justify-content: center;
}

.final-x {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.final-x:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mentality-card[data-reveal].is-visible:nth-child(2) {
  transition-delay: 0.08s;
}

.mentality-card[data-reveal].is-visible:nth-child(3) {
  transition-delay: 0.16s;
}

.buy-steps li[data-reveal].is-visible:nth-child(2) {
  transition-delay: 0.06s;
}

.buy-steps li[data-reveal].is-visible:nth-child(3) {
  transition-delay: 0.12s;
}

.buy-steps li[data-reveal].is-visible:nth-child(4) {
  transition-delay: 0.18s;
}

/* Responsive */
@media (min-width: 720px) {
  .mentality-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .mentality-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
  }

  .mentality-card:hover {
    transform: translateY(-4px);
  }

  .visuals-grid {
    grid-template-columns: 0.85fr 1.4fr;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    min-height: min(68vh, 640px);
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 480px) {
  .container,
  .narrow,
  .hero-banner-wrap {
    width: min(100% - 1.5rem, var(--container));
  }

  .brand-text {
    display: none;
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .hero-ctas .btn,
  .buy-cta .btn {
    width: 100%;
  }

  .ca-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--copy {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .streak,
  .hero-logo,
  .brand-logo,
  .hero-logo-wrap::before {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .mentality-card,
  .visual {
    transition: none;
  }
}
