@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Midnight Pro palette */
  --primary: #0077ff;
  --primary-hover: #1a88ff;
  --primary-soft: rgba(0, 119, 255, 0.15);
  --primary-glow: rgba(0, 119, 255, 0.4);
  
  --bg-page: #09090b;
  --bg-secondary: #121214;
  --bg-card: #1c1c1e;
  
  --text-main: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-on-primary: #ffffff;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 119, 255, 0.3);
  
  --line-accent: linear-gradient(90deg, #0077ff 0%, #00c2ff 100%);
  
  /* Spacing & Radii */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  --container-width: 1200px;
  --header-height: 72px;
  
  /* Shadows with Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
  --glow-accent: 0 0 20px var(--primary-glow);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  margin: 0;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Compontnets */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.is-scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav-link.is-active {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 119, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: var(--primary-soft);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.hero-interior {
  padding-bottom: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.hero-interior .hero-content {
  margin: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-visual {
  position: relative;
  margin-top: 40px;
}

.hero-image {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: perspective(1000px) rotateX(0deg);
}

/* Features - Bento Grid */
.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.features-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-accent);
  transform: translateY(-4px);
}

.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  z-index: 1;
}

.bento-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  z-index: 1;
}

.bento-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

.bento-item-tall {
  grid-row: span 2;
}

.bento-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: auto;
  border-radius: var(--radius-md) 0 0 0;
  transform: translateY(20px) translateX(20px);
  transition: transform 0.4s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.bento-item:hover .bento-img {
  transform: translateY(10px) translateX(10px) scale(1.05);
}

.bento-item-tall .bento-img {
  width: 90%;
}

.bento-item-large .bento-img {
  width: 60%;
}

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

/* Benefits Section */
.benefits {
  background-color: var(--bg-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Downloads Section */
.downloads {
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.download-card {
  padding: 40px 32px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-accent);
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
}

.platform-icon img {
  width: 32px;
  height: 32px;
}

.download-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-page);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.contact-method {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-method h4 {
  margin-bottom: 4px;
}

.contact-method p {
  color: var(--text-secondary);
}
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 24px 0;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer & CTA */
.cta {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
  box-shadow: var(--glow-accent);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-visual {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Layout Components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.5);
  border-bottom: 1px solid var(--border-light);
}

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

/* Hero Section */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-actions {
    flex-direction: column;
    padding: 0 20px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-image {
    transform: none !important;
    perspective: none !important;
    border-radius: var(--radius-lg);
  }
}

/* Features - Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .bento-item-large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item-large, .bento-item-tall {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento-item {
    padding: 24px;
    height: auto;
    min-height: 280px;
  }
  .bento-img {
    width: 60%;
    position: relative;
    transform: none !important;
    margin-top: 20px;
    margin-left: auto;
  }
}

/* Benefits & Downloads */
@media (max-width: 1024px) {
  .benefits-grid, .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .benefits-grid, .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Table Responsiveness */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

table {
  min-width: 600px;
}

/* CTA */
@media (max-width: 768px) {
  .cta h2 {
    font-size: 2.1rem;
  }
  .cta {
    padding: 60px 20px;
  }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for children if needed */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content p { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
/* ==========================================================================
   Responsiveness Final Overrides (Ensuring priority)
   ========================================================================== */

@media (max-width: 768px) {
  .hero-image {
    transform: none !important;
    perspective: none !important;
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 450px;
    margin: 0 auto;
    gap: 24px;
  }
  
  .download-card {
    transform: none !important;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  border-color: var(--primary); 
  box-shadow: var(--shadow-lg); 
  transform: scale(1.05); 
  position: relative; 
  z-index: 2;
}

@media (max-width: 1024px) {
  .pricing-popular {
    transform: none !important;
    z-index: 1;
  }
}

/* Table Wrapper for mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
