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

:root {
  --primary: #1e3a8a;
  --primary-dark: #1e293b;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-light: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #059669;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

/* === Layout === */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links .btn {
  color: #fff;
}

.nav-login {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
}

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

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* === Hero === */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
}

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

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Stats === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat p {
  color: var(--text-light);
  margin-top: 4px;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 880px;
  }
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0;
}

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

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

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

.pricing-features li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* === Testimonials === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === CTA Banner === */
.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

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

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-banner .btn-primary:hover {
  background: var(--primary-light);
}

/* === Forms === */
.form-page {
  padding: 80px 0;
  background: var(--bg-alt);
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
}

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-wrapper h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-wrapper > p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-wrapper .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* === Thank You / Success === */
.success-page {
  padding: 120px 0;
  text-align: center;
  min-height: calc(100vh - 65px);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  color: var(--success);
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.success-page p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* === Use Cases Page === */
.use-case-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.use-case-section:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.use-case-section:nth-child(even) {
  direction: rtl;
}

.use-case-section:nth-child(even) > * {
  direction: ltr;
}

.use-case-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.use-case-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.use-case-visual {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  font-size: 3rem;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 48px 0 24px;
}

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

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 16px;
  }

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

  .use-case-section {
    grid-template-columns: 1fr;
  }

  .use-case-section:nth-child(even) {
    direction: ltr;
  }

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

/* === Nav Mega-menu (rebrandly.com style) === */
.nav-links li.has-megamenu {
  position: static;
}

.nav-links li.has-megamenu > a::after {
  content: " ▾";
  font-size: 0.7rem;
  color: var(--text-light);
  margin-left: 2px;
}

.nav-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 200;
}

.nav-links li.has-megamenu:hover .nav-megamenu,
.nav-links li.has-megamenu:focus-within .nav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.megamenu-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 880px;
}

.megamenu-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.megamenu-col h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 700;
}

.megamenu-col ul {
  list-style: none;
}

.megamenu-col li {
  list-style: none;
}

.megamenu-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.megamenu-col a:hover {
  color: var(--primary);
}

.megamenu-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 1px;
}

.megamenu-item-label {
  display: block;
}

.megamenu-item-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.4;
}
