/* =====================================================
   ELYTICS - Static Site Styles
   ===================================================== */

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #6941C6;
  --color-primary-dark: #53389E;
  --color-primary-light: #7F56D9;
  --color-secondary: #F9F5FF;
  --color-text: #344054;
  --color-text-light: #667085;
  --color-text-dark: #101828;
  --color-white: #ffffff;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F2F4F7;
  --color-gray-200: #EAECF0;
  --color-gray-300: #D0D5DD;
  --color-gray-900: #101828;
  
  /* Typography */
  --font-display: 'Ovo', serif;
  --font-body: 'Sora', sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;
  --section-padding-mobile: 48px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
}

/* Section Label */
.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo .logo-text {
  height: 20px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-dark);
  background: var(--color-gray-50);
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.nav-dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 24px;
  min-width: 520px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Invisible bridge to maintain hover when cursor travels to dropdown */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-small {
  min-width: 280px;
  grid-template-columns: 1fr;
}

.nav-dropdown:hover .dropdown-content {
  display: grid;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-section h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.dropdown-section a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin: -8px -12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-section a:hover {
  background: var(--color-gray-50);
}

.dropdown-section a + a {
  margin-top: 4px;
}

.dropdown-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.dropdown-icon svg {
  width: 20px;
  height: 20px;
}

.dropdown-text {
  flex: 1;
  min-width: 0;
}

.dropdown-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.dropdown-text span {
  font-size: 13px;
  color: var(--color-text-light);
}

.dropdown-section strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.dropdown-section span {
  font-size: 13px;
  color: var(--color-text-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("../images/bg-gradient.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

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

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   PROBLEM SECTION
   ===================================================== */
.problem-section {
  padding: var(--section-padding) 0;
}

.problem-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab {
  padding: 24px;
  border-left: 3px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab.active {
  border-left-color: var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tab h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}

.tab p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.tab p:last-child {
  margin-bottom: 0;
}

.tab-image {
  position: sticky;
  top: 100px;
}

.tab-image img {
  border-radius: var(--radius-lg);
}

/* =====================================================
   SOLUTION HEADER
   ===================================================== */
.solution-header {
  position: relative;
  padding: var(--section-padding) 0;
  background-image: url("../images/bg-gradient.png");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.solution-header h2 {
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto 24px;
}

.solution-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
  padding: var(--section-padding) 0;
}

.features-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.workflow-visual {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
}

.creator-avatar {
  text-align: center;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  margin: 0 auto 8px;
}

.creator-avatar span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workflow-arrow {
  width: 48px;
  height: 2px;
  background: var(--color-gray-300);
  margin-top: 32px;
}

.workflow-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 180px;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-preview {
  margin-top: 12px;
}

.preview-line {
  height: 8px;
  background: var(--color-gray-100);
  border-radius: 4px;
  margin-bottom: 8px;
}

.preview-line.short {
  width: 60%;
  margin-bottom: 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.feature-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 14px;
  color: var(--color-text-light);
}

.feature-cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* =====================================================
   INSIGHTS SECTION
   ===================================================== */
.insights-section {
  padding: var(--section-padding) 0;
  background: var(--color-gray-50);
}

.insights-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.insights-content h2 {
  max-width: 400px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-light);
}

.insights-cta {
  display: flex;
  gap: 12px;
}

/* =====================================================
   ROI SECTION
   ===================================================== */
.roi-section {
  padding: var(--section-padding) 0;
}

.roi-section .container {
  max-width: 900px;
}

.roi-section h2 {
  margin-bottom: 16px;
}

.roi-intro {
  font-size: 18px;
  margin-bottom: 48px;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.roi-card {
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.roi-icon {
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.roi-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}

.roi-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
  padding: var(--section-padding) 0;
  background: var(--color-gray-50);
}

.faq-section .container {
  max-width: 768px;
  text-align: center;
}

.faq-section h2 {
  margin-bottom: 12px;
}

.faq-intro {
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.faq-list {
  text-align: left;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--color-gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-icon .horizontal,
.faq-icon .vertical {
  position: absolute;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.faq-icon .horizontal {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon .vertical {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon .vertical {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  position: relative;
  padding: var(--section-padding) 0;
  background-image: url("../images/bg-gradient.png");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 48px 0 24px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-200);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
}

.footer-logo .logo-text {
  height: 18px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

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

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1024px) {
  .hero-section .container,
  .problem-section .container,
  .features-section .container,
  .insights-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-image {
    order: -1;
  }
  
  .tab-image {
    position: relative;
    top: 0;
    order: -1;
  }
  
  .roi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu.active {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 99;
    padding: 24px;
  }
  
  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-link {
    display: block;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-gray-200);
  }
  
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  
  .mobile-actions .btn {
    width: 100%;
  }
  
  .hero-cta,
  .cta-buttons,
  .feature-cta,
  .insights-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn,
  .cta-buttons .btn,
  .feature-cta .btn,
  .insights-cta .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .workflow-visual {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .workflow-arrow {
    width: 2px;
    height: 32px;
    margin: 0;
  }
  
  .workflow-cards {
    width: 100%;
  }
  
  .workflow-card {
    min-width: unset;
  }
}
