/* Import AOS CSS */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

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

.nav-logo .logo {
  height: 2.5rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
}

.bar {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  min-height: 100vh;
}

/* When hero visual is removed, center the content and make it full width */
.hero-content.hero--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 2rem;
  /* Avoid large vertical centering so content sits closer to the navbar */
  align-items: start;
  /* Make room for the fixed navbar and pull content upward (tuned) */
  padding-top: calc(var(--nav-height) + 0.5rem);
  min-height: calc(100vh - var(--nav-height) - 2rem);
}

/* Center hero CTAs when hero content is centered */
.hero-content.hero--centered .hero-cta {
  justify-content: center;
}

.hero-text {
  color: var(--text-white);
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  animation: slideInUp 1s ease-out;
  color: white;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(0.25rem);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out 0.8s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ink-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ink-bottle {
  width: 200px;
  height: 300px;
  position: relative;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 20px 20px 60px 60px;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

.ink-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: 0 0 50px 50px;
  animation: liquidFlow 3s ease-in-out infinite;
}

@keyframes liquidFlow {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-10px) scaleY(1.1); }
}

.ink-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.demo-text {
  color: var(--text-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  text-align: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8); /* reduced from 4rem to 2rem */
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Value Proposition Section */
.value-prop {
  padding: var(--space-12) 0; /* reduced from 6rem to 3rem */
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Responsive grid for feature cards */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .features-grid {
    gap: 1rem;
  }
}

/* Responsive CTA padding */
@media (max-width: 768px) {
  .cta-content { padding: 1.5rem; }
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  min-height: 260px; /* slightly reduced to tighten vertical spacing */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

/* Responsive feature card padding */
@media (max-width: 768px) {
  .feature-card {
    padding: 2rem;
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.5rem;
    min-height: 250px;
  }
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

/* Responsive feature icon */
@media (max-width: 768px) {
  .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (max-width: 480px) {
  .feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Responsive feature title */
@media (max-width: 768px) {
  .feature-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .feature-title {
    font-size: var(--font-size-base);
    margin-bottom: 0.5rem;
  }
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Responsive feature description */
@media (max-width: 768px) {
  .feature-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
  }
}

@media (max-width: 480px) {
  .feature-description {
    font-size: var(--font-size-xs);
  }
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-12) 0; /* reduced from 6rem to 3rem */
  background: var(--white);
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-lg);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.step-visual {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ink-application {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-lg);
  animation: pulse 2s ease-in-out infinite;
}

.light-activation {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #fbbf24, #f59e0b);
  border-radius: var(--radius-full);
  animation: glow 2s ease-in-out infinite;
}

.digital-verification {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--radius-lg);
  position: relative;
}

.digital-verification::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.8); }
}

/* Use Cases Section */
.use-cases {
  padding: var(--space-12) 0; /* reduced from 6rem to 3rem */
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Responsive grid for use case cards */
@media (max-width: 1200px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .use-cases-grid {
    gap: 1rem;
  }
}

.use-case-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  min-height: 300px; /* reduced from 350px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.use-case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Responsive use case card padding */
@media (max-width: 768px) {
  .use-case-card {
    padding: 2rem;
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .use-case-card {
    padding: 1.5rem;
    min-height: 280px;
  }
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.use-case-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.use-case-icon.luxury {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.use-case-icon.wine {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.use-case-icon.art {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.use-case-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  opacity: 0.8;
}

/* Responsive use case icon */
@media (max-width: 768px) {
  .use-case-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
  }
  
  .use-case-icon::after {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 480px) {
  .use-case-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.75rem;
  }
  
  .use-case-icon::after {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.use-case-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Responsive use case title */
@media (max-width: 768px) {
  .use-case-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .use-case-title {
    font-size: var(--font-size-base);
    margin-bottom: 0.5rem;
  }
}

.use-case-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.5rem;
}

/* Responsive use case description */
@media (max-width: 768px) {
  .use-case-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .use-case-description {
    font-size: var(--font-size-xs);
    margin-bottom: 0.75rem;
  }
}

.use-case-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

/* Responsive stat value */
@media (max-width: 768px) {
  .stat-value {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: var(--font-size-lg);
  }
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive stat label */
@media (max-width: 480px) {
  .stat-label {
    font-size: var(--font-size-xs);
  }
}

/* CTA Section */
.cta-section {
  padding: var(--space-12) 0; /* reduced from 6rem to 3rem */
  background: var(--bg-hero);
  color: var(--text-white);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: var(--font-size-lg);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

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

/* Contact Section */
.contact {
  padding: var(--space-12) 0; /* reduced from 6rem to 3rem */
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-color);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--text-white);
  padding: 3rem 0 1rem;
}

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

.footer-logo .logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .step-visual {
    order: -1;
    margin: 0 auto;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .cta-title {
    font-size: var(--font-size-3xl);
  }

  .contact-title {
    font-size: var(--font-size-3xl);
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }
}

/* Enhancements: visual polish and Bootstrap compatibility */
.highlight {
  background: linear-gradient(135deg, #fde047, #facc15, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hover-elevate {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border-radius: var(--radius-2xl);
}

.hover-elevate:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

/* Gradient-enhanced hero background */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-12) 0;
  background: radial-gradient(1000px 600px at 20% 10%, rgba(0, 153, 255, 0.20), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(155, 81, 224, 0.20), transparent 60%),
              var(--bg-hero);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 1.25rem;
}

.hero-title .highlight {
  text-shadow: 0 8px 28px rgba(255, 200, 0, 0.85), 0 0 24px rgba(255, 196, 0, 0.45);
}

/* Subtle nav underline enhancement */
.nav-link::after {
  height: 2px;
  background: linear-gradient(90deg, #61dafb, #9b51e0);
}

/* Card surfaces subtle glass look */
.feature-card,
.use-case-card {
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon svg {
  filter: drop-shadow(0 6px 16px rgba(0, 153, 255, 0.35));
}

.use-case-stats .stat-value {
  background: linear-gradient(90deg, #61dafb, #9b51e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: var(--font-weight-bold);
}

.cta-content {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
  padding: 2rem;
  border-radius: var(--radius-2xl);
}

/* Footer: revert to base theme colors */
/* Using definitions from layout.css: background and link colors */

/* Make Bootstrap row/col work if applied to grid wrappers */
.features-grid.row {
  display: flex;
  flex-wrap: wrap;
}

.features-grid.row > [class*='col-'] {
  display: block;
}

.use-cases-grid.row {
  display: flex;
  flex-wrap: wrap;
}

.use-cases-grid.row > [class*='col-'] {
  display: block;
}

.problem .features-grid.problem-row,
.value-prop .features-grid.problem-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.problem .features-grid.problem-row .feature-card,
.value-prop .features-grid.problem-row .feature-card {
  /* Try to fit 4 cards across when space allows */
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 220px;
  max-width: 340px;
}

@media (max-width: 1200px) {
  .problem .features-grid.problem-row .feature-card,
  .value-prop .features-grid.problem-row .feature-card {
    /* Slightly larger fixed width on medium screens to avoid cramped text */
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .problem .features-grid.problem-row .feature-card,
  .value-prop .features-grid.problem-row .feature-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 480px) {
  .problem .features-grid.problem-row,
  .value-prop .features-grid.problem-row {
    gap: 0.75rem;
  }

  .problem .features-grid.problem-row .feature-card,
  .value-prop .features-grid.problem-row .feature-card {
    flex: 0 0 220px;
  }
}

/* Small/mobile tweaks to improve navbar and hero spacing on narrow screens */
:root {
  --nav-height: 56px;
}

.navbar {
  height: var(--nav-height);
}

.nav-container {
  padding-left: 1rem;
  padding-right: 1rem;
  height: var(--nav-height);
}

/* When nav-menu becomes the mobile panel, anchor it below the navbar instead of off-screen */
@media (max-width: 768px) {
  .nav-menu {
    top: var(--nav-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: calc(var(--z-fixed) + 10);
  }

  /* Make hero account for the fixed navbar to avoid vertical overflow */
  .hero {
    min-height: calc(100vh - var(--nav-height));
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1.5rem;
  }

  /* Slightly tighter spacing on the feature/use-case grids for small screens */
  .features-grid,
  .use-cases-grid {
    gap: 0.75rem;
  }

  /* Ensure contact form fills available width cleanly */
  .contact-form {
    padding: 1.5rem;
  }
}

