:root {
  --bg: #090B10;
  --surface: rgba(20, 24, 36, 0.65);
  --surface-strong: #151923;
  --line: rgba(255, 255, 255, 0.08);
  --text: #F0F4F8;
  --muted: #94A3B8;
  --gold: #FBE285;
  --gold-deep: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
  --radius-xl: 34px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1360px;
  --accent-green: #34D399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(148, 176, 255, 0.05), transparent 40%);
  min-height: 100vh;
}

/* Background Orbs for dynamic feel */
.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
  animation: float 10s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-30px) scale(1.05); }
}

.background-orb--left {
  left: -10%;
  top: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
}

.background-orb--right {
  right: -5%;
  bottom: 10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(100, 140, 255, 0.08), transparent 70%);
  animation-delay: -5s;
}

/* General Layout */
.site {
  position: relative;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 64px;
  z-index: 1;
}

/* Sections */
.hero-section,
.card-section,
.showcase-section,
.cta-section,
.footer {
  margin-top: 18px;
}

.hero-section,
.card-section,
.showcase-card,
.cta-panel,
.footer {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.hero-section {
  position: relative;
  padding: 32px 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 16, 0.76) 0%, rgba(9, 11, 16, 0.46) 42%, rgba(9, 11, 16, 0.32) 100%),
    radial-gradient(circle at 72% 42%, rgba(212, 175, 55, 0.08), transparent 24%);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: blur(9px) saturate(1.02);
  transform: scale(1.08);
}

.card-section {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
}

.header,
.hero,
.showcase-card,
.footer,
.price-grid,
.feature-grid,
.catalog-grid,
.faq-grid {
  display: grid;
}

/* Header */
.header {
  position: relative;
  z-index: 2;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 8px 8px 32px;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand span,
.footer__brand strong {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF, #A0AABF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav a,
.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-deep);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav a:hover::after {
  width: 100%;
}

/* Buttons */
.download-button,
.button,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.download-button,
.button--primary {
  color: #090B10;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 24px var(--gold-glow);
}

.download-button:hover,
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--gold-glow);
  filter: brightness(1.1);
}

.button--secondary,
.store-badge {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.button--secondary:hover,
.store-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding-top: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h1,
.section-title h2,
.showcase-card__copy h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFFFFF, #B4C0D3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p,
.feature-card p,
.faq-card p,
.showcase-card__copy p {
  color: var(--muted);
  line-height: 1.8;
}

.hero p {
  max-width: 50ch;
  margin: 24px 0 0;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.store-link img {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Phone Stage */
.phone-stage {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.phone-stage:hover::before {
  opacity: 0.8;
}

.phone-stage img {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-stage__main {
  right: 80px;
  top: 0;
  width: 340px;
  z-index: 2;
  transform: translateY(0);
}

.phone-stage:hover .phone-stage__main {
  transform: translateY(-10px);
}

/* Hero Floats */
.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(20, 24, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: float-element 6s ease-in-out infinite alternate;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-float:hover {
  transform: scale(1.05) translateY(-5px) !important;
  border-color: rgba(212, 175, 55, 0.4);
}

@keyframes float-element {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

.hero-float span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-float strong {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFF;
}

.hero-float small {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-float--portfolio {
  left: 0px;
  top: 140px;
  animation-delay: 0s;
}

.hero-float--price {
  right: 0px;
  bottom: 160px;
  animation-delay: -2s;
}

.hero-float--goal {
  left: 72px;
  bottom: 100px;
  animation-delay: -4s;
}

.hero-float--goal small {
  color: var(--gold);
}

/* Typography refinements */
.section-title {
  text-align: center;
}

.section-title--left {
  text-align: left;
}

.section-title h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

.section-title p {
  max-width: 60ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-title--left p {
  margin-left: 0;
  margin-right: 0;
}

/* Grids */
.price-grid,
.feature-grid,
.faq-grid,
.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Cards */
.price-card,
.feature-card,
.faq-card,
.catalog-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  min-height: 170px;
  padding: 18px;
  border-radius: 10px;
  position: relative;
}

.price-card::before,
.feature-card::before,
.catalog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.price-card:hover::before,
.feature-card:hover::before,
.catalog-card:hover::before {
  opacity: 1;
}

.price-card:hover,
.feature-card:hover,
.faq-card:hover,
.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.15);
  background: #1C212E;
}

.price-card__icon,
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}

.price-card:hover .price-card__icon,
.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.price-card__title,
.feature-card h3,
.faq-card h3,
.catalog-card h3 {
  margin-top: 24px;
  font-size: 1.3rem;
  line-height: 1.3;
  color: #FFF;
}

.price-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
}

.price-card__title {
  margin-top: 18px;
  font-size: 1.02rem;
  color: #fff;
  padding-right: 52px;
}

.price-card strong {
  display: block;
  margin-top: 16px;
  font-size: 1.42rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price-card span {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* Catalog */
.card-section--catalog {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 40%),
              var(--surface);
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.catalog-card {
  aspect-ratio: auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  border-radius: 6px;
  background: var(--surface-strong);
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.catalog-card--emphasis {
  grid-column: span 2;
  min-height: 220px;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 50%),
              linear-gradient(180deg, #1A1F2C, #151923);
  border-color: rgba(212, 175, 55, 0.2);
}

.catalog-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.catalog-card h3 {
  margin-top: 18px;
  font-size: 1.22rem;
  line-height: 1.16;
}

.catalog-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* Showcase */
.showcase-card {
  grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.showcase-card__visual {
  position: relative;
}

.showcase-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.showcase-card__visual img {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  transform: perspective(1000px) rotateY(10deg);
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-card__visual img {
  transform: perspective(1000px) rotateY(0deg);
}

.showcase-card__copy h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.showcase-card__copy p {
  max-width: 48ch;
  margin-top: 24px;
  font-size: 1.15rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* CTA */
.cta-panel {
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.8), rgba(15, 18, 26, 0.9)),
              url('./assets/app-icon.png') no-repeat center/cover;
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
}

.cta-panel h2 {
  max-width: 16ch;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-panel .hero__actions {
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}

.footer__brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer__brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.legal-site {
  padding-top: 20px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 36px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.legal-card h1 {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--gold);
  text-decoration: none;
}

/* Media Queries */
@media (max-width: 1160px) {
  .hero,
  .showcase-card,
  .price-grid,
  .feature-grid,
  .catalog-grid,
  .faq-grid,
  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-card--emphasis {
    grid-column: span 2;
  }

  .hero,
  .showcase-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .site {
    width: min(100% - 24px, var(--max-width));
    padding-top: 6px;
  }

  .hero-section,
  .card-section,
  .showcase-card,
  .cta-panel,
  .footer {
    border-radius: 24px;
    padding: 24px;
  }

  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 12px;
    row-gap: 14px;
  }

  .brand {
    justify-self: start;
    gap: 10px;
  }

  .brand span {
    font-size: 1rem;
  }

  .download-button {
    justify-self: end;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
    box-shadow: none;
  }

  .nav {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
  }

  .hero,
  .price-grid,
  .feature-grid,
  .catalog-grid,
  .faq-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 22px;
    padding-top: 10px;
  }

  .hero h1 {
    max-width: 7.4ch;
    font-size: clamp(2.7rem, 11vw, 4rem);
    line-height: 0.94;
  }

  .hero p {
    max-width: none;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
  }

  .store-link img {
    height: 46px;
  }

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

  .catalog-card--emphasis {
    grid-column: auto;
  }

  .catalog-card,
  .catalog-card--emphasis {
    min-height: auto;
  }

  .phone-stage {
    min-height: 500px;
  }

  .phone-stage::before {
    width: 280px;
    height: 280px;
  }

  .phone-stage__main {
    right: 50%;
    transform: translateX(50%);
    top: 20px;
    width: 260px;
  }

  .phone-stage:hover .phone-stage__main {
    transform: translateX(50%) translateY(-10px);
  }

  .hero-float {
    min-width: 148px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .hero-float strong {
    font-size: 1rem;
  }

  .hero-float span,
  .hero-float small {
    font-size: 0.78rem;
  }

  .hero-float--portfolio {
    left: 0;
    top: 92px;
  }

  .hero-float--price {
    right: 0;
    bottom: 118px;
  }

  .hero-float--goal {
    left: 14px;
    bottom: 42px;
  }

  .showcase-card__visual img {
    width: min(100%, 300px);
  }

  .legal-card {
    padding: 24px;
    border-radius: 18px;
  }
}
