:root {
  --bg-darker: #05050A;
  --bg-dark: #0A0A14;
  --panel-bg: rgba(20, 20, 35, 0.4);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00F0FF;
  --accent-magenta: #FF0055;
  --accent-gold: #FFB703;
  --text-light: #F9FBFF;
  --text-muted: #9BA3B5;
  --line-dark: rgba(255, 255, 255, 0.1);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

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

body.site-body {
  font-family: var(--font-main);
  background: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Effects */
.texture-layer {
  position: fixed;
  inset: 0;
  background-image: url("/static/texture-noise.svg");
  background-repeat: repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-magenta) 0%, transparent 70%);
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  text-decoration: none;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.brand-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, #b8c1d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--text-light);
  color: var(--bg-darker);
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #fff;
  border: none;
  position: relative;
  z-index: 1;
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: none;
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line-dark);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 18px;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.1);
}

/* Sections */
.section-block {
  padding: 100px 0;
  position: relative;
}

.section-notes-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(255, 0, 85, 0.08) 0%, transparent 50%),
    url("/static/bg-notes.svg") center/420px repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 60px;
  font-weight: 800;
}

/* Hero Section */
.hero {
  padding: 100px 0 120px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-copy .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-tags li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-tags .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-magenta);
  box-shadow: 0 0 10px var(--accent-magenta);
}

.hero-graphic {
  position: relative;
  perspective: 1000px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
  max-height: min(72vh, 640px);
}

.hero-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-promo-shot {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  max-height: min(68vh, 600px);
  height: auto;
  object-fit: contain;
  border-radius: clamp(24px, 4vw, 36px);
  clip-path: inset(0 round clamp(24px, 4vw, 36px));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-animation {
  animation: floatUI 6s ease-in-out infinite;
}

@keyframes floatUI {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -10px;
  right: -10px;
  line-height: 1;
}

.step-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-card p {
  color: var(--text-muted);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrapper {
  margin-bottom: 24px;
}

.feature-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
}

/* Screens Grid */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screen-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-image-wrapper {
  --screen-shot-radius: clamp(24px, 4.2vw, 40px);
  /* Шире, чем было 16px: в PNG белый фон за скруглением экрана — маленький radius оставляет клинья видимыми */
  border-radius: var(--screen-shot-radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--bg-dark);
  isolation: isolate;
}

.screen-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: inherit;
  transition: transform 0.5s ease;
  /* Дублируем обрезку на самом img: при scale на hover Safari иногда «рвёт» маску родителя */
  clip-path: inset(0 round var(--screen-shot-radius));
}

.screen-card:hover .screen-image-wrapper img {
  transform: scale(1.05);
}

.screen-card figcaption {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  padding: 0 8px;
}

.section-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 18px;
}

.section-note-tight {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-promo-highlights {
  position: relative;
}

.section-promo-highlights::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 20% 50%, rgba(255, 0, 85, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.promo-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-highlight-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.promo-highlight-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0;
}

.promo-highlight-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.promo-highlight-card > p:last-child {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* Final CTA */
.final-cta {
  padding: 60px 0 120px;
}

.cta-glass-card {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 30, 50, 0.6) 0%, rgba(10, 10, 20, 0.4) 100%);
  position: relative;
  overflow: hidden;
}

.cta-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-glass-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
  font-weight: 800;
}

.cta-glass-card p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-light);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* Forms (Contact Page) */
.contact-card {
  max-width: 680px;
  margin: 40px auto;
  padding: 48px;
}

.contact-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 20px;
  position: relative;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  font-family: inherit;
  color: var(--text-light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

/* Legal Pages */
.legal-content {
  padding: 60px;
  margin: 40px 0;
}

.legal-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--accent-cyan);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00FF88;
}

.alert-error {
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid rgba(255, 0, 85, 0.3);
  color: #FF0055;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .promo-highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    padding: 16px 0;
  }
  
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 0;
  }
  
  .section-block {
    padding: 60px 0;
  }

  .contact-card,
  .legal-content,
  .cta-glass-card {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
