:root {
  --primary: #1fbf75;
  --primary-dark: #0f7a4a;
  --primary-light: #5ee6a2;
  --secondary: #22d3ee;
  --accent: #f5b84b;
  --dark: #111827;
  --dark-soft: #1f2937;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f8fafc;
  --white: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --gradient-1: linear-gradient(135deg, #0f7a4a 0%, #1fbf75 55%, #22d3ee 100%);
  --gradient-2: linear-gradient(135deg, #1fbf75 0%, #f5b84b 100%);
  --gradient-soft: linear-gradient(180deg, #f8fafc 0%, #e8fff3 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 30px rgba(17, 24, 39, 0.08);
}

.nav-container,
.container,
.footer-content {
  max-width: 1180px;
  margin: 0 auto;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.hero {
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
}

.hero::before {
  content: '';
  position: absolute;
  top: -48%;
  right: -20%;
  width: 78%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(31, 191, 117, 0.16) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -12%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 930px;
  padding: 7rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.65rem, 6vw, 4.7rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.22rem;
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-1);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(31, 191, 117, 0.25);
}

.btn-secondary {
  color: var(--primary-dark);
  background: var(--white);
  border: 1px solid rgba(15, 122, 74, 0.15);
}

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

.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.section h2,
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-header p,
.split-text p,
.outcome-card p {
  color: var(--gray);
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.card-icon.signal {
  background: var(--gradient-1);
}

.card-icon.score {
  background: var(--gradient-2);
}

.card-icon.route {
  background: linear-gradient(135deg, var(--dark-soft), var(--primary-dark));
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--gray);
}

.flow-section {
  background: var(--light);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  color: var(--dark-soft);
  font-weight: 600;
}

.check-list li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
}

.channel-strip {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.channel-strip > span {
  display: grid;
  place-items: center;
  align-items: center;
  width: 64px;
  height: 64px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.integration-logo {
  display: block;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.web-logo,
.telegram-logo,
.slack-logo {
  width: 34px;
  height: 34px;
}

.whatsapp-logo {
  width: 34px;
  height: 34px;
}

.flow-panel {
  position: relative;
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.flow-panel::before {
  content: '';
  position: absolute;
  inset: -30% auto auto 35%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
}

.flow-panel::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 191, 117, 0.18), transparent 70%);
}

.flow-result {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.95rem;
  gap: 0.8rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  text-align: left;
}

.flow-visual {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 191, 117, 0.12);
}

.flow-visual span {
  display: block;
  font-size: 1.45rem;
}

.flow-result strong {
  display: block;
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.flow-result span {
  display: block;
  color: var(--gray);
}

.flow-result.highlight {
  color: var(--white);
  background: var(--gradient-1);
  box-shadow: 0 16px 38px rgba(31, 191, 117, 0.25);
}

.flow-result.highlight strong,
.flow-result.highlight span {
  color: var(--white);
}

.flow-result.highlight .flow-visual {
  background: rgba(255, 255, 255, 0.88);
}

.flow-connector {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(31, 191, 117, 0.75), rgba(34, 211, 238, 0.55));
}

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.platform-section {
  background: var(--light);
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.platform-media {
  grid-column: 1;
  align-self: center;
}

.platform-layout .split-text {
  grid-column: 2;
}

.console-card {
  align-self: center;
  background: #0b1220;
  color: #d8fff0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.18);
}

.console-top {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  background: #111827;
}

.console-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.console-top span:nth-child(2) {
  background: var(--accent);
}

.console-top span:nth-child(3) {
  background: var(--secondary);
}

pre {
  padding: 2rem;
  overflow-x: auto;
  font-size: 1rem;
  line-height: 1.7;
}

.control-panel {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(31, 191, 117, 0.08), rgba(34, 211, 238, 0.09));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
}

.control-orbit {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0 28%, transparent 29%),
    radial-gradient(circle at center, transparent 0 48%, rgba(31, 191, 117, 0.18) 49% 50%, transparent 51%),
    radial-gradient(circle at center, transparent 0 70%, rgba(34, 211, 238, 0.16) 71% 72%, transparent 73%);
}

.orbit-core,
.orbit-item {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}

.orbit-core {
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--white);
  background: var(--gradient-1);
}

.orbit-item {
  min-width: 122px;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--dark-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.item-one {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.item-two {
  left: 3%;
  bottom: 23%;
}

.item-three {
  right: 3%;
  bottom: 23%;
}

.control-panel p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--gray);
  font-weight: 700;
  text-align: center;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fact {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.fact strong {
  display: block;
  margin-bottom: 0.5rem;
}

.fact span {
  color: var(--gray);
}

.outcomes-section {
  background: linear-gradient(135deg, rgba(31, 191, 117, 0.08), rgba(34, 211, 238, 0.08));
}

.outcome-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 16px 50px rgba(17, 24, 39, 0.08);
}

.outcome-chain {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.outcome-chain span {
  padding: 0.65rem 1rem;
  border-radius: 50px;
  color: var(--primary-dark);
  background: rgba(31, 191, 117, 0.1);
  font-weight: 800;
}

.signup-section {
  padding: 5rem 2rem;
  background: var(--gradient-1);
}

.signup-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.signup-content .section-label,
.signup-content h2,
.signup-content p {
  color: var(--white);
}

.signup-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.signup-content > p {
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 540px;
  margin: 0 auto 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.newsletter-form input[type="submit"] {
  padding: 1rem 2rem;
  color: var(--primary-dark);
  background: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
}

.newsletter-form.loading input[type="submit"] {
  cursor: wait;
  opacity: 0.78;
}

.newsletter-form label {
  display: none;
}

.newsletter-message {
  margin-top: 0.25rem;
  font-weight: 800;
}

.newsletter-message.success {
  color: var(--white);
}

.newsletter-message.error {
  color: #ffe3e3;
}

footer {
  padding: 3rem 2rem;
  background: var(--dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

footer p {
  color: var(--gray-light);
}

.cookie-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  padding: 1rem;
  border: 1px solid rgba(31, 191, 117, 0.22);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.cookie-btn {
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-btn.accept {
  color: var(--primary-dark);
  background: var(--primary);
}

.cookie-btn.reject {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  nav {
    padding: 0.9rem 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .cards-grid,
  .split,
  .deployment-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 4rem 1.25rem;
  }

  .hero-content {
    padding: 6rem 1.25rem 3rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .platform-layout {
    grid-template-columns: 1fr;
  }

  .platform-layout .console-card,
  .platform-media,
  .platform-layout .split-text,
  .channel-strip {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .outcome-card {
    padding: 2rem 1.25rem;
  }

  .cookie-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}
