/* ============================================
   SpamJammer — Neumorphism (Soft UI) Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #e0e5ec;
  --bg-dark: #c8ccd4;
  --shadow-dark: #a3b1c6;
  --shadow-light: #ffffff;
  --shadow-dark-strong: #9baec1;
  --text-primary: #2d3748;
  --text-secondary: #5a6577;
  --text-muted: #8492a6;
  --accent: #5B9BD5;
  --accent-soft: #7ab3e0;
  --accent-dark: #4a87bd;
  --coral: #e88d7a;
  --coral-soft: #f0a394;
  --success: #6abf8a;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-raised: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --shadow-raised-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  --shadow-raised-lg: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  --shadow-pressed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  --shadow-pressed-lg: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

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

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.text-accent {
  color: var(--accent);
}

.text-coral {
  color: var(--coral);
}

/* --- Neumorphic Components --- */
.neu-raised {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  border: none;
}

.neu-raised-sm {
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised-sm);
  border: none;
}

.neu-raised-lg {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised-lg);
  border: none;
}

.neu-pressed {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pressed);
  border: none;
}

.neu-pressed-lg {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pressed-lg);
  border: none;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--bg);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(163, 177, 198, 0.35);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  background: var(--bg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg);
}

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

.nav-links a {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  box-shadow: var(--shadow-pressed);
  color: var(--accent);
}

.nav-cta {
  margin-left: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: var(--bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-raised);
  user-select: none;
}

.btn:hover {
  box-shadow: var(--shadow-raised-sm);
}

.btn:active,
.btn.pressed {
  box-shadow: var(--shadow-pressed);
}

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

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

.btn-accent {
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-dark));
  color: #fff;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.btn-accent:hover {
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.btn-accent:active {
  box-shadow: inset 4px 4px 8px var(--accent-dark), inset -4px -4px 8px var(--accent-soft);
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* --- Mobile Menu --- */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised-sm);
  background: var(--bg);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
}

.mobile-toggle:active {
  box-shadow: var(--shadow-pressed);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-panel {
  padding: 60px 48px;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Stats --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  margin-bottom: 48px;
}

.stat-item {
  padding: 24px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pressed);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Feature Cards --- */
.feature-card {
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-raised-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pressed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  background: var(--bg);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonial-card {
  padding: 32px 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-raised-lg);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-raised-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  background: var(--bg);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card {
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.highlighted {
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
  transform: scale(1.04);
}

.pricing-card.highlighted::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-dark));
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 300;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.pricing-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
  background: var(--bg);
  flex-shrink: 0;
}

.pricing-card.highlighted .pricing-features li::before {
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  box-shadow: 1px 1px 3px var(--shadow-dark);
}

.pricing-divider {
  height: 2px;
  border-radius: 1px;
  box-shadow: var(--shadow-pressed);
  margin-bottom: 28px;
  background: var(--bg);
}

/* --- FAQ / Accordion --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.closed {
  box-shadow: var(--shadow-pressed);
}

.accordion-item.open {
  box-shadow: var(--shadow-raised);
}

.accordion-header {
  width: 100%;
  padding: 20px 28px;
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  text-align: left;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: var(--shadow-raised-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--bg);
}

.accordion-item.open .accordion-icon {
  box-shadow: var(--shadow-pressed);
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 300px;
}

.accordion-content {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pressed);
  border: none;
  background: var(--bg);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  box-shadow: var(--shadow-pressed-lg);
  color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info-card {
  padding: 36px 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pressed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg);
}

.contact-info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-raised);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 300;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  box-shadow: 0 -1px 0 0 rgba(163, 177, 198, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: var(--shadow-raised-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  background: var(--bg);
}

.footer-social-link:hover {
  box-shadow: var(--shadow-pressed);
  color: var(--accent);
}

/* --- Page Header --- */
.page-header {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 48px 36px;
  margin: 60px 0;
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 300;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.highlighted {
    transform: scale(1);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-raised-lg);
    padding: 20px;
    flex-direction: column;
    gap: 4px;
  }

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

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-panel {
    padding: 36px 24px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .cards-grid,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .pricing-price {
    font-size: 2.2rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
