/* ==========================================================================
   romanonta.com — dark, neutral, 5px corners, transparent header (no glass)
   ========================================================================== */

:root {
  --base: #08080a;
  --surface: #0f0f12;
  --surface-2: #131317;
  --line: #1e1e23;
  --line-strong: #2c2c33;
  --ink: #f2f2f4;
  --ink-dim: #a6a6b0;
  --ink-mute: #6e6e78;

  --spotify: #1db954;
  --youtube: #ff0033;
  --telegram: #29a9eb;
  --soundcloud: #ff5500;
  --instagram: #e1306c;
  --kick: #53fc18;

  --r: 5px;
  --maxw: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background: three very low-opacity neutral pools that drift slowly.
   Fixed behind everything, so it reads as light in the room rather than a
   panel — no blur, nothing glassy. */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      55% 45% at 50% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 70%
    ),
    radial-gradient(
      40% 35% at 88% 22%,
      rgba(148, 158, 185, 0.05),
      transparent 72%
    ),
    radial-gradient(
      45% 40% at 8% 78%,
      rgba(255, 255, 255, 0.035),
      transparent 72%
    );
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -2.5%, 0) scale(1.07);
  }
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--ink);
  color: var(--base);
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section[id] {
  scroll-margin-top: 88px;
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.section-title {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  max-width: 20ch;
}

/* ---------- header ---------- */

/* Hidden while the hero is on screen; slides in only once it's scrolled past.
   Background is the flat page colour — no backdrop-filter, so never glass. */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--base);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s var(--ease);
}

.header.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  flex: none;
}

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

.nav a {
  font-size: 0.875rem;
  color: var(--ink-dim);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--base);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.8125rem;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px 0 56px;
  overflow: hidden;
}

/* soft neutral bloom — a light source, not a glass panel */
.hero::before {
  content: '';
  position: absolute;
  top: -24%;
  left: 50%;
  width: min(1000px, 128vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
}

/* hero entrance — staggered, runs on load rather than on scroll */
.hero-copy > *,
.hero-figure {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy h1 { animation-delay: 0.05s; }
.hero-copy .hero-role { animation-delay: 0.14s; }
.hero-copy .hero-lead { animation-delay: 0.22s; }
.hero-copy .hero-cta { animation-delay: 0.3s; }
.hero-figure { animation-delay: 0.16s; }

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

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(3rem, 8.6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 16px 0 0;
}

.hero-role {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 1.0313rem;
  color: var(--ink-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* photo shown whole — no cropping, natural aspect ratio */
.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  line-height: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
}

/* ---------- inner pages ---------- */

.page {
  padding: 128px 0 clamp(64px, 9vw, 116px);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin-bottom: 22px;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
}

.page-lead {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.0313rem;
  color: var(--ink-dim);
}

.page .card {
  margin-top: clamp(28px, 4vw, 44px);
}

.page-back {
  margin-top: 28px;
}

/* ---------- faq ---------- */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.faq-item:last-of-type {
  padding-bottom: 0;
}

.faq-item h2 {
  font-size: 1.0625rem;
  margin-bottom: 9px;
}

.faq-item p {
  color: var(--ink-dim);
  font-size: 0.9688rem;
}

.faq-item a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

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

.cards {
  display: grid;
  gap: 18px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.3s var(--ease);
}

a.card:hover {
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

/* app-tile icons: solid brand square, 5px corners, white glyph */
.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.card-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.card:hover .card-icon {
  transform: translateY(-1px);
}

.card-icon[data-brand='spotify'] { background: var(--spotify); }
.card-icon[data-brand='youtube'] { background: var(--youtube); }
.card-icon[data-brand='telegram'] { background: var(--telegram); }
.card-icon[data-brand='soundcloud'] { background: var(--soundcloud); }
.card-icon[data-brand='instagram'] {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}

.card-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.card-meta {
  margin-top: 5px;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.card-body {
  color: var(--ink-dim);
  font-size: 0.9688rem;
}

.card-body strong {
  color: var(--ink);
  font-weight: 500;
}

.card-foot {
  margin-top: auto;
  padding-top: 24px;
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.card:hover .arrow svg,
.arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- faq ---------- */

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

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.social {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  color: #fff;
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.social svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social:hover {
  transform: translateY(-2px);
}

.social[data-brand='telegram'] { background: var(--telegram); }
.social[data-brand='x'] { background: #000; box-shadow: inset 0 0 0 1px var(--line-strong); }
.social[data-brand='tiktok'] { background: #000; box-shadow: inset 0 0 0 1px var(--line-strong); }
.social[data-brand='kick'] { background: var(--kick); color: #000; }
.social[data-brand='spotify'] { background: var(--spotify); }
.social[data-brand='youtube'] { background: var(--youtube); }
.social[data-brand='soundcloud'] { background: var(--soundcloud); }
.social[data-brand='instagram'] {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 26px;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.footer-nav a[aria-current='page'] {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

/* tablet — hero stacks, photo capped so it doesn't dominate */
@media (max-width: 940px) {
  .hero {
    min-height: auto;
    padding: 72px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-figure {
    max-width: 400px;
  }
}

/* phone */
@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero-lead {
    max-width: none;
  }

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

  .hero-figure {
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-title {
    max-width: none;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .cards {
    gap: 14px;
  }

  .card {
    padding: 22px 20px;
  }

  .card-foot {
    padding-top: 20px;
  }

  .footer {
    padding: 40px 0 32px;
  }
}

/* narrow phones */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* hero must still be visible with animation disabled */
  .hero-copy > *,
  .hero-figure {
    opacity: 1;
    transform: none;
    animation: none;
  }

  body::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
