/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  border-bottom: 1px solid var(--text-accent-primary);
  box-shadow: var(--shadow-combined);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 4rem;
}

/* Logo Styles */
.logo {
  font-size: 1.75rem;
  font-weight: 400;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  background: var(--tab-hover);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.1rem;
}

/* Light mode - use full spectrum gradient for nav links */
[data-theme="light"] .nav-link {
  background: var(--primary-horizontal);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link:hover {
  opacity: 0.8;
  background: var(--input-bg);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  -webkit-text-fill-color: var(--text-accent-primary);
  color: var(--text-accent-primary);
}

/* Light mode hover - red text */
[data-theme="light"] .nav-link:hover {
  -webkit-text-fill-color: #f44336;
  color: #f44336;
}

/* Dark mode hover - white text */
[data-theme="dark"] .nav-link:hover {
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hide mobile social links on desktop */
.social-links-mobile {
  display: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 0.25rem;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Light mode - dark icons, gradient on hover */
[data-theme="light"] .social-icon {
  color: #0a0a0a;
}

[data-theme="light"] .social-icon:hover {
  background: var(--primary-horizontal);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark mode - white on hover */
[data-theme="dark"] .social-icon:hover {
  color: #ffffff;
}

/* Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  padding: 0.5rem;
  background: var(--input-bg);
  border-radius: 50%;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.theme-toggle:hover {
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.theme-toggle:active .theme-icon {
  transform: rotate(180deg);
}


/* Icon visibility based on theme */
[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block !important;
}

[data-theme="light"] .theme-icon-light {
  display: block;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

/* Sign Up Button */
.signup-btn {
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-combined);
  text-transform: none;
  will-change: background, color;
}

/* Light mode only - white background with gradient border */
[data-theme="light"] .signup-btn {
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff), var(--primary-horizontal);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #374151;
}

[data-theme="light"] .signup-btn:hover {
  background: linear-gradient(#f8f9fa, #f8f9fa), var(--primary-horizontal);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.signup-btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1rem;
  height: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--text-accent-primary);
    box-shadow: var(--shadow-combined);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .social-links {
    display: none;
  }

  .social-links-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--text-accent-primary);
  }

  /* Light mode - green border */
  [data-theme="light"] .social-links-mobile {
    border-top-color: #4caf50;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-links .nav-link {
    font-size: 1.25rem;
  }

  /* Light mode - green borders */
  [data-theme="light"] .nav-links {
    border-bottom-color: #4caf50;
    border-top-color: #4caf50;
  }

  [data-theme="light"] .header {
    border-bottom-color: #4caf50;
  }

  .hamburger-menu {
    display: flex;
  }

  .hamburger-menu .hamburger-line {
    height: 3px;
  }

  .theme-toggle {
    order: 1;
  }

  .theme-toggle .theme-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .signup-btn {
    order: 2;
    margin-left: 0rem;
  }

  .hamburger-menu {
    order: 3;
  }

  .logo {
    font-size: 1.5rem;
  }

  .signup-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .theme-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Hero Section */
.hero {
  padding: 0 0 6rem;
  text-align: center;
}

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

.hero-main-title {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 0rem;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 0.0075em;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 0.0075em;
}

.hero-tagline {
  font-size: 1.75rem;
  margin-top: 0rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 0.0075em;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-item {
  font-size: 1.75rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.0075em;
}

.benefit-item strong.keyword {
  color: var(--text-primary);
  font-weight: bold;
}

.gradient-text {
  font-weight: 400;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-sweep {
  font-weight: 400;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  background-position: 200% 0;
}

.gradient-text-sweep.animate {
  animation: gradientSweep 2s ease-in-out forwards;
}

@keyframes gradientSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Dark mode sweep - start and end with same purple-blue gradient */
[data-theme="dark"] .gradient-text-sweep {
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4500, #ff6b35);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  background-position: 200% 0;
}

[data-theme="dark"] .gradient-text-sweep.animate {
  animation: gradientSweepDark 2.5s ease-in-out forwards;
}

@keyframes gradientSweepDark {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gradient-text-sweep {
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4500, #ff6b35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 100%;
    background-position: 200% 0;
  }

  :root:not([data-theme="light"]) .gradient-text-sweep.animate {
    animation: gradientSweepDark 2.5s ease-in-out forwards;
  }
}


/* Hero Tagline - Inherit styling from .hero-tagline, only add gradient */
.hero-tagline-clippath {
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4500, #ff6b35);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-clippath.animate {
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: heroTaglineGradientSweep 2.5s ease-in-out forwards;
}

@keyframes heroTaglineGradientSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Hero CTA - Inherit styling from .hero-cta, only add gradient */
.hero-cta-clippath {
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4500, #ff6b35);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta-clippath.animate {
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: heroCtaGradientSweep 2.5s ease-in-out forwards;
}

@keyframes heroCtaGradientSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) {
  .hero-tagline-clippath,
  .hero-cta-clippath {
    background: none !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
  }
}

/* Dark mode overrides for hero tagline and CTA */
[data-theme="dark"] .hero-tagline-clippath {
  background: linear-gradient(135deg, #2196f3, #9c27b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-tagline-clippath.animate {
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: heroTaglineGradientSweep 2.5s ease-in-out forwards;
}

[data-theme="dark"] .hero-cta-clippath {
  background: linear-gradient(135deg, #2196f3, #9c27b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-cta-clippath.animate {
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: heroCtaGradientSweep 2.5s ease-in-out forwards;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-tagline-clippath {
    background: linear-gradient(135deg, #2196f3, #9c27b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  :root:not([data-theme="light"]) .hero-tagline-clippath.animate {
    background-size: 300% 100%;
    background-position: 200% 0;
    animation: heroTaglineGradientSweep 2.5s ease-in-out forwards;
  }

  :root:not([data-theme="light"]) .hero-cta-clippath {
    background: linear-gradient(135deg, #2196f3, #9c27b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  :root:not([data-theme="light"]) .hero-cta-clippath.animate {
    background-size: 300% 100%;
    background-position: 200% 0;
    animation: heroCtaGradientSweep 2.5s ease-in-out forwards;
  }
}

.hero-cta {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 0.0075em;
}

/* Hero Image Styling */
.hero-image-container {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  max-width: min(600px, 90vw);
}

.hero-image-card {
  display: block;
  max-width: min(600px, 90vw);
  margin: 0;
  padding: 0;
  border-radius: 0.75rem;
  box-shadow: var(--hero-shadow);
}

.hero-image {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border-radius: calc(0.75rem - 3px);
}

/* Light mode gradient border */
[data-theme="light"] .hero-image-card {
  border: 3px solid transparent;
  background: linear-gradient(#ffffff, #ffffff), var(--primary-horizontal);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Dark mode gradient border */
[data-theme="dark"] .hero-image-card {
  border: 3px solid transparent;
  background: linear-gradient(#2d0847, #2d0847), var(--primary-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* System dark mode support */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-image-card {
    border: 3px solid transparent;
    background: linear-gradient(#2d0847, #2d0847), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero {
    padding: 0 0 4rem;
  }

  .hero-content {
    margin: -1rem auto 0;
  }

  .hero-main-title {
    font-size: 2.125rem;
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-benefits {
    text-align: center;
    gap: 1.5rem;
  }

  .benefit-item {
    font-size: 1.25rem;
  }

  .hero-cta {
    font-size: 1.25rem;
  }

  .hero-image-container {
    margin: 0.75rem auto;
    max-width: 100%;
  }

  .hero-image-card {
    border-radius: 0.5rem;
  }

  .hero-image {
    border-radius: calc(0.5rem - 3px);
  }
}