/* General Reset and Base Styles */
:root {
  --primary-color: #10b981;
  /* Emerald Green */
  --primary-dark: #059669;
  --secondary-color: #f59e0b;
  /* Amber */
  --text-dark: #1f2937;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --bg-color: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-dark: #111827;
  --bg-card: #1f2937;
  --font-base: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utilities */
.text-primary {
  color: var(--primary-color);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white {
  color: #fff;
}

.text-light {
  color: var(--text-light);
}

.text-center {
  text-align: center;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Specific Layout Sections */
.section {
  padding: 5rem 0;
}

.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Legal & Text Layout */
.legal-page {
  padding-top: 120px;
  padding-bottom: 5rem;
  background-color: var(--bg-subtle);
  min-height: calc(100vh - 300px);
}

.legal-card {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.legal-card .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-card h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.legal-card p {
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Auth Profile Styles */
.nav-auth {
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-subtle);
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  border-radius: 50px;
  border: 1px solid #e5e7eb;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.btn-logout {
  background: white;
  color: var(--text-muted);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(5deg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-dark);
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.hero-bg {
  position: absolute;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.glass-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 10px solid #fff;
  background: #fff;
}

.hero-img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.ai-scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.5), transparent);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.8);
  animation: scan 4s infinite linear;
  z-index: 2;
  opacity: 0.7;
}

@keyframes scan {
  0% {
    top: 0;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0;
  }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  z-index: 3;
  animation: float 3s ease-in-out infinite alternate;
}

.badge-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: -10%;
  animation-delay: 1s;
}

.badge-3 {
  top: 40%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

/* Features Section */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* AI Plan Section (Dark) */
.ai-plan {
  position: relative;
  overflow: hidden;
}

.ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.ai-container::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  filter: blur(100px);
  opacity: 0.2;
}

.benefit-list {
  list-style: none;
  margin-top: 2rem;
}

.benefit-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.icon-check {
  color: var(--primary-color);
  font-style: normal;
  font-weight: 800;
}

.ai-form-wrapper {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.half {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: var(--transition);
  background: #f9fafb;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #fff;
}

select option {
  padding: 10px;
}

/* Loader */
.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* AI Success Result */
.success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ai-result h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.ai-result p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.ai-generated-content {
  background: var(--bg-subtle);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.ai-generated-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  box-shadow: none;
}

.btn-text:hover {
  color: var(--primary-color);
  background: transparent;
  transform: none;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.resource-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  background: var(--bg-subtle);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  width: max-content;
}

.resource-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.resource-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Call To Action */
.cta-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  padding: 6rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  border-radius: 50px;
}

/* Footer */
.footer {
  background: #fff;
  padding-top: 4rem;
  border-top: 1px solid #e5e7eb;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Animations - Reveal on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .ai-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: flex;
    z-index: 100;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-auth {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    background: #fff;
    transition: var(--transition);
    z-index: 99;
  }

  .nav-links.active+.nav-auth {
    left: 0;
    top: auto;
    bottom: 0;
    border-top: 1px solid #e5e7eb;
  }

  /* Hide the desktop get started button */
  .nav-links+.nav-btn {
    display: none;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    margin-top: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .ai-container {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .video-card {
    flex-direction: column !important;
  }

  .video-card iframe {
    min-height: 250px !important;
    border-radius: 0 0 20px 20px !important;
  }

  .ai-form-wrapper {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form .btn {
    margin-top: 0.5rem;
  }

  .glass-card {
    border-width: 5px;
  }

  .badge-1,
  .badge-2,
  .badge-3 {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}