:root {
    --primary-color: #10b981;
    --accent: #3b82f6;
    --background: linear-gradient(135deg, #dbeafe 0%, #f0fdf4 100%);
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --secondary-text: #6b7280;
    --border-color: #e5e7eb;
    --button-gradient: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}
body.dark {
    --background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --text-color: #f3f4f6;
    --secondary-text: #9ca3af;
    --border-color: #334155;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-color);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar {
            background: var(--card-bg);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            padding: 1rem 2rem;
            width: 100%;
            position: fixed;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .logo .bracket,
        .logo .bracket1 {
            color: var(--text-color);
            font-weight: 700;
        }

        .logo .dev {
            color: var(--primary-color);
        }

        .logo .sow {
            color: var(--accent);
        }

        .logo .bracket1::after {
            content: "_";
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 50%, 100% { opacity: 1; }
            25%, 75% { opacity: 0; }
        }

        .navbar h4 {
            font-weight: 500;
            color: var(--secondary-text);
        }


/* Dark Mode Toggle */
.toggle-btn {
    border: none; background: transparent;
    cursor: pointer; font-size: 1.3rem; color: var(--text-color);
    margin-left: 600px;
}
.toggle-btn:hover { color: var(--accent); }

/* Hero */
.hero {
    margin-top: 7rem;
    text-align: center;
    max-width: 900px;
    padding: 5rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #dbeafe, #f0fdf4, #a7f3d0, #bfdbfe);
    background-size: 300% 300%;
    animation: gradientMove 10s ease infinite;
    z-index: -1;
    border-radius: 20px;
}
body.dark .hero::before {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155, #0f172a);
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.hero-buttons a {
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero-buttons .signup { background: var(--button-gradient); color: white; }
.hero-buttons .login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.hero-buttons .login:hover {
    background: var(--primary-color);
    color: white;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 5rem auto;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.feature-card i { font-size: 2.3rem; color: var(--primary-color); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
.feature-card p { color: var(--secondary-text); font-size: 0.95rem; line-height: 1.6; }

/* About */
.about {
    text-align: center;
    max-width: 900px;
    margin: 5rem auto;
    padding: 0 2rem;
}
.about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.about p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Testimonials */
.testimonials {
    margin: 5rem auto;
    padding: 0 2rem 4rem;
    text-align: center;
    max-width: 1200px;
}
.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card p {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.75rem;
}
.testimonial-author img {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}
.testimonial-author h4 { font-size: 1rem; font-weight: 600; }
.testimonial-author span { font-size: 0.85rem; color: var(--secondary-text); }

/* Pricing Section */
/* Pricing Section */
.pricing {
  text-align: center;
  padding: 5rem 2rem;
  background: transparent;
  max-width: 1300px;
  margin: 0 auto;
}
.pricing h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.pricing-sub {
  color: var(--secondary-text);
  margin-bottom: 2.5rem;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.toggle-label {
  font-weight: 500;
  color: var(--secondary-text);
}
.discount-tag {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  z-index: 2;
}
.badge {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  position: absolute;
  top: 15px;
  right: 15px;
}
.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.price span { color: var(--secondary-text); font-size: 0.9rem; }
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-card ul li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
}
.pricing-card ul li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}
.pricing-btn {
  display: inline-block;
  background: var(--button-gradient);
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.pricing-btn:hover { transform: scale(1.05); }
.highlight { background: var(--accent); }

/* Responsive */
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .pricing h2 { font-size: 1.6rem; }
  .price { font-size: 1.8rem; }
  .popular { transform: none; }
}



/* Footer */
footer {
    background: var(--card-bg);
    text-align: center;
    padding: 1.5rem;
    color: var(--secondary-text);
    border-top: 1px solid var(--border-color);
    width: 100%;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .about h2, .testimonials h2 { font-size: 1.6rem; }
}
/* Layout */
.checkout-section {
  margin-top: 9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}
.checkout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 950px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2.5rem;
  transition: all 0.3s ease;
}
@media (min-width: 900px) {
  .checkout-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 4rem;
  }
  .plan-summary {
    flex: 1;
    margin-right: 2rem;
  }
  .checkout-form-container {
    flex: 1.2;
  }
}

/* Card look */
.checkout-card h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.checkout-card p {
  text-align: center;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

/* Plan summary */
.plan-summary {
  background: linear-gradient(135deg, #f0fdf4, #dbeafe);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.8rem;
}
body.dark .plan-summary {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.plan-summary h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.plan-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-summary ul li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
}
.plan-summary ul li i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Form section */
.checkout-form-container h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.checkout-form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.checkout-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(16,185,129,0.3);
  outline: none;
}

/* Card brand */
.card-brand {
  text-align: center;
  margin-bottom: 1rem;
}
.card-brand img {
  height: 30px;
  margin: 0 6px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.card-brand img.active {
  opacity: 1;
}

/* Stripe elements */
#card-element {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  background: #f9fafb;
  margin-bottom: 1rem;
}
body.dark #card-element {
  background: #1e293b;
  border-color: #334155;
}
#card-errors {
  color: #ef4444;
  font-size: 0.9rem;
  text-align: center;
  min-height: 18px;
  margin-bottom: 1rem;
}

/* Button */
button {
  background: var(--button-gradient);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}
button:hover {
  transform: scale(1.03);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.payment-note {
  text-align: center;
  margin-top: 1rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
}