/* Landing.css - Ultra Premium Minimalist (Linear / Vercel style) */

.landing-root {
  min-height: 100vh;
  background-color: #000;
  color: #ededed;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background effects */
.landing-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.landing-glow {
  position: absolute;
  top: -20%;
  left: 30%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.45) 0%, rgba(0,0,0,0) 60%);
  filter: blur(80px);
  animation: float1 8s infinite alternate ease-in-out;
}

.landing-glow-2 {
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0,0,0,0) 60%);
  filter: blur(90px);
  animation: float2 11s infinite alternate ease-in-out;
}

.landing-glow-3 {
  position: absolute;
  top: 40%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0,0,0,0) 60%);
  filter: blur(80px);
  animation: float3 9s infinite alternate ease-in-out;
}

@keyframes float1 {
  0% { transform: translate(-10%, -10%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(15%, 15%) scale(1.3); opacity: 1; }
}
@keyframes float2 {
  0% { transform: translate(10%, 10%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-15%, -15%) scale(1.2); opacity: 1; }
}
@keyframes float3 {
  0% { transform: translate(0, 5%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(20%, -15%) scale(1.4); opacity: 1; }
}

.landing-grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  animation: slideGrid 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-grid::after {
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vw;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(157, 78, 221, 0.6) 45deg, transparent 90deg, transparent 180deg, rgba(16, 185, 129, 0.4) 225deg, transparent 270deg);
  animation: sweepRadar 6s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes slideGrid {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

@keyframes sweepRadar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.landing-content {
  position: relative;
  z-index: 10;
}

/* Navbar */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #fff;
  display: flex;
  align-items: center;
}

.landing-nav .logo .dot {
  width: 15px;
  height: 15px;
  background-image: url('/favicon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.landing-nav .logo .dot::after {
  content: none;
}

.landing-nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-ghost {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: #fff;
}

.btn-glow {
  background: #fff;
  color: #000;
  border-radius: 99px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Hero */
.landing-hero {
  padding: 8rem 5% 6rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 2rem;
}

.hero-badge span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-display {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.text-gradient {
  background: linear-gradient(to right, #fff, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

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

.btn-primary-large {
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.btn-primary-large:hover { opacity: 0.9; }

/* Bento Grid */
.bento-section {
  padding: 4rem 5% 8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 1.5rem;
}

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

.bento-grid-1col {
  grid-template-columns: 1fr;
}

.bento-card {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover::before { opacity: 1; }

.bento-card-large { grid-column: span 2; }
.bento-card-tall  { grid-row: span 2; }

@media (max-width: 900px) {
  .bento-grid, .bento-grid-2col, .bento-grid-1col {
    grid-template-columns: 1fr !important;
  }
  .bento-card-large, .bento-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.bento-icon {
  margin-bottom: 1.5rem;
  color: #fff;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: -0.02em;
  word-break: break-word;
  hyphens: auto;
}

.bento-desc {
  color: #a1a1aa;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Abstract CSS Art within Bento inside background */
.bento-art {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.art-chart {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0.2;
}

.art-bar {
  width: 40px;
  background: linear-gradient(180deg, #fff, transparent);
  border-radius: 4px 4px 0 0;
}
.art-bar:nth-child(1) { height: 60px; }
.art-bar:nth-child(2) { height: 120px; }
.art-bar:nth-child(3) { height: 80px; }
.art-bar:nth-child(4) { height: 160px; }

.art-sphere {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0.3;
}

/* Footer */
.landing-footer-minimal {
  padding: 2rem 5%;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: #52525b;
  font-size: 0.85rem;
}

/* DYNAMIC SCROLL EXTENSIONS */
/* 1. Marquee (Infinite Scroller) */
.marquee-wrapper {
  overflow: hidden;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,10,0.5);
  display: flex;
  white-space: nowrap;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #000, transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #000, transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: scrollMarquee 30s linear infinite;
  padding-left: 4rem;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #52525b;
  transition: color 0.3s;
}
.integration-pill:hover { color: #fff; }

/* 2. Pain Points Section (Interactive Story) */
.painpoints-section {
  padding: 8rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  color: #ff3366;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.painpoints-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 4rem;
}

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

.pain-side h3 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.pain-side p {
  margin-top: 1rem;
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.6;
}

.solution-side {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.solution-side::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.1), transparent 50%);
  pointer-events: none;
}

.solution-title {
  color: #10b981;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.solution-text {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pain-card { grid-template-columns: 1fr; gap: 2rem; }
}

/* 3. Massive CTA */
.cta-section {
  margin: 8rem 5% 4rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(157, 78, 221, 0.1));
  border: 1px solid rgba(255,255,255,0.05);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  animation: scanGrid 30s linear infinite;
  opacity: 0.5;
}

@keyframes scanGrid {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #a1a1aa;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* 4. Product Showcase (3D Scroll Reveal) */
.showcase-section {
  position: relative;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  z-index: 10;
}

.showcase-title-area {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  position: relative;
  z-index: 20;
}

.showcase-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1rem;
}

.showcase-perspective {
  perspective: 2000px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-mockup {
  position: relative;
  width: 90%;
  max-width: 1000px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  padding: 8px; /* simulates browser/app frame */
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 40px rgba(0,0,0,0.4), 
    0 0 80px rgba(157, 78, 221, 0.2);
  z-index: 2;
  will-change: transform;
}

.showcase-mockup img, .showcase-mockup video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* New specific sections CSS for mass-market style inside dark theme */
.pricing-section {
  padding: 4rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-table-dark {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.pricing-table-dark th, .pricing-table-dark td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #a1a1aa;
}

.pricing-table-dark th {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
}

.pricing-table-dark th:nth-child(3), .pricing-table-dark td:nth-child(3) {
  background: rgba(157, 78, 221, 0.05);
  color: #fff;
}

.pro-highlight {
  display: inline-block;
  background: #9d4edd;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.faq-section {
  padding: 4rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-dark {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.faq-btn-dark {
  padding: 1.5rem;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer-dark {
  padding: 0 1.5rem 1.5rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* ========================================================= */
/* MOBILE RESPONSIVE OVERRIDES */
/* ========================================================= */

@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem 5%;
    gap: 0.75rem;
  }
  .landing-nav .logo {
    font-size: 1.25rem;
  }
  .landing-nav-actions {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .landing-nav-actions .btn-ghost,
  .landing-nav-actions .btn-glow {
    font-size: 0.85rem;
  }

  /* Hero & CTA Layouts */
  .landing-hero {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }
  .hero-display {
    font-size: clamp(2.5rem, 12vw, 3.5rem) !important;
    line-height: 0.95;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-cta-buttons {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .hero-cta-buttons > * {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
  .btn-primary-large {
    padding: 0.95rem 1.2rem;
  }
  #stats {
    gap: 0.5rem !important;
    padding: 1.25rem 5% !important;
  }
  #stats > div {
    width: 100%;
    padding: 0.75rem 0 !important;
  }
  #stats > div > div:first-child {
    font-size: 2rem !important;
  }
  
  /* Feature Grid and Titles */
  .showcase-title {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1;
  }
  .bento-card {
    padding: 1.5rem !important;
  }
  
  /* Pain points (How it works) */
  .painpoints-section, .cta-section, .pricing-section, .faq-section {
    padding: 4rem 5% !important;
  }
  #how-it-works {
    padding-top: 1rem !important;
  }
  .cta-section {
    margin: 4rem 5% !important;
    border-radius: 20px;
    padding: 4rem 1.5rem !important;
  }
  .pain-side h3 {
    font-size: 2rem !important;
  }
  .solution-side {
    padding: 1.5rem !important;
  }
  .pain-card {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .pain-side ul {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  #features .bento-grid {
    grid-template-columns: 1fr !important;
  }
  #features .bento-card {
    min-height: auto;
  }
  #features .bento-title {
    font-size: 1.7rem !important;
  }
  #features .bento-card[style*="padding: 0"] {
    overflow: visible;
  }
  
  /* Pricing Table converted to cards for Mobile */
  .pricing-table-dark, .pricing-table-dark tbody, .pricing-table-dark tr, .pricing-table-dark td {
    display: block;
    width: 100%;
  }
  .pricing-table-dark thead {
    display: none; /* Hide top headers */
  }
  .pricing-table-dark tr {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
  }
  .pricing-table-dark td {
    border: none !important;
    padding: 0.75rem 0 !important;
    text-align: right;
    position: relative;
    padding-left: 50% !important; 
  }
  .pricing-table-dark td:nth-child(1) {
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding-left: 0 !important;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 0.5rem;
  }
  .pricing-table-dark td:nth-child(2)::before {
    content: "Бесплатно:";
    position: absolute; left: 0;
    color: #a1a1aa; font-weight: 500;
  }
  .pricing-table-dark td:nth-child(3)::before {
    content: "Pro тариф:";
    position: absolute; left: 0;
    color: #a1a1aa; font-weight: 500;
  }

  .faq-btn-dark {
    padding: 1rem;
    font-size: 1rem;
    gap: 1rem;
  }
  .faq-answer-dark {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
  }

  .cta-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
  .cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .landing-footer-minimal > div[style*="display: flex; gap: 1.5rem"] {
    flex-direction: column;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }
  .landing-footer-minimal > div[style*="display: flex; gap: 0.75rem"] {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .landing-nav-actions .btn-glow {
    padding: 0.55rem 0.9rem;
  }
  .hero-display {
    font-size: clamp(2.1rem, 11vw, 2.6rem) !important;
  }
  .showcase-title {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem) !important;
  }
  .pricing-table-dark td {
    padding-left: 45% !important;
    font-size: 0.92rem;
  }
  .pricing-table-dark td:nth-child(1) {
    font-size: 1.05rem;
  }
}
