/* Minimalist Black & White Design - Grok Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --bg-primary: #0d0e12;
  --bg-secondary: rgba(20, 22, 28, 0.85);
  --bg-tertiary: #14161c;
  --bg-card: rgba(20, 22, 28, 0.7);
  --bg-dark: #0d0e12;
  --bg-dark-secondary: rgba(20, 22, 28, 0.85);
  --bg-dark-tertiary: #14161c;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(163, 175, 191, 0.4);
  
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-smooth: 400ms var(--ease-out);
  
  --hover: rgba(255, 255, 255, 0.05);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-primary);
  color: var(--text-primary);
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Aesthetic background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 85% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
                linear-gradient(135deg, rgba(10, 10, 11, 0) 0%, rgba(20, 20, 23, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Floating elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    display: none; /* Removed for minimalist look */
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, -100px) scale(0.9);
    }
    75% {
        transform: translate(50px, -30px) scale(1.05);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.6);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    padding: 0.75rem 0;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 11, 0.85);
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.7;
}

.logo svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav a,
.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav a:hover,
.footer-section a:hover {
  color: var(--text-primary);
}

.nav a::after,
.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transform: scaleX(0.95);
  transition: all var(--transition-fast);
}

.nav a:hover::after,
.footer-section a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.nav-dropdown-item:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.nav-dropdown-item i {
    color: var(--accent-blue-light);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.btn-primary:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  background: transparent;
  color: var(--text-primary);
}

.btn-primary:hover::before {
  opacity: 0.06;
}

.btn-primary.large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 400;
  border-radius: 999px;
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: transparent;
  transform: translateY(-1px);
}

.btn-secondary.large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.btn-outline:hover {
    background: transparent;
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 0;
    background: transparent;
    margin-top: 73px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    margin-inline: auto;
    padding-top: 4rem;
    padding-bottom: 6rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    font-size: 0.8125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    box-shadow: none;
    animation: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    /* Removed old hero-title styles as they are merged with .section-title */
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    opacity: 0.5;
    animation: underline 2s ease-in-out infinite;
}

@keyframes underline {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

.hero-description,
.section-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.section:nth-child(even) {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.section-alt {
    background: var(--bg-secondary);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.01) 50%, transparent 100%);
    pointer-events: none;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 2.5rem auto 0;
  transition: width var(--transition-smooth);
}

.section-header:hover::after {
  width: 72px;
  background: var(--accent-gradient);
}

.hero-title,
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.section-title-light {
    color: transparent;
}

.section-description {
    /* Merged with .hero-description */
}

.section-description-light {
    color: rgba(255, 255, 255, 0.8);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.card,
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: border-color var(--transition-fast);
  position: relative;
}

.card:hover,
.product-card:hover {
  border-color: var(--border-hover);
}

/* Убираем иконки-квадратики — оставляем только текст или микро-линии */
.card-icon,
.product-icon {
  display: none;
}

/* Заголовки карточек — без лишнего веса */
.card h3,
.product-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* Списки признаков — как чек-лист, а не как «стикеры» */
.product-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.product-features li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 0.25rem 0;
}

.product-features li::before {
  content: '·';
  color: var(--accent);
  font-weight: 300;
  margin-right: 0.25rem;
}

.product-features li i {
    display: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: none;
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.mission-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-dark-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.mission-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mission-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--bg-dark-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

.mission-icon i {
    width: 24px;
    height: 24px;
}

.mission-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
}

.mission-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* CTA Section */
.cta {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta::after {
    display: none;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    /* Merged with standard btn-primary */
}

.cta .btn-primary:hover {
    /* Merged with standard btn-primary */
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    color: var(--text-light);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.25rem;
}

.footer-section h4 {
    font-size: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Browser Mockup */
.mockup-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
}

.mockup-header {
    height: 2.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.mockup-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out), 
              transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }

.feature-item:nth-child(1) { transition-delay: 0.1s; }
.feature-item:nth-child(2) { transition-delay: 0.2s; }
.feature-item:nth-child(3) { transition-delay: 0.3s; }
.feature-item:nth-child(4) { transition-delay: 0.4s; }
.feature-item:nth-child(5) { transition-delay: 0.5s; }
.feature-item:nth-child(6) { transition-delay: 0.6s; }

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.pricing-card.pro {
  border-color: var(--border-hover);
  background: linear-gradient(180deg, var(--bg-card), transparent);
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.15;
  pointer-events: none;
}
.card:hover,
.product-card:hover,
.feature-item:hover {
    position: relative;
}

.card:hover::after,
.product-card:hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* Text glow */
.hero-title {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.accent-text {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

/* Landing Ambient Glow Effects */
.landing-ambient-glow {
    position: absolute;
    top: -20vh;
    left: 10vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.landing-ambient-glow.glow-2 {
    top: 30vh;
    left: auto;
    right: 10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
}
