:root {
  --color-primary: #1a1f36;
  --color-accent: #2554E8;
  --color-accent-hover: #1d44c4;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fb;
  --color-gray-100: #eef0f4;
  --color-gray-200: #d9dce4;
  --color-gray-400: #8b8fa6;
  --color-gray-600: #5a5e78;
  --color-text: #1a1f36;
  --color-text-light: #5a5e78;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 54, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 31, 54, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 31, 54, 0.12);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* ---- NAVIGATION ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

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

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

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

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links .nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu ul {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: all 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: var(--color-gray-50);
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-gray-200);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.btn-white:hover {
  background: var(--color-gray-50);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ---- HERO ---- */

.hero {
  padding: 140px 0 80px;
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-image {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* ---- STATS ---- */

.stats {
  padding: 60px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ---- FEATURES (tabbed) ---- */

.features {
  padding: 100px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.features-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-tab {
  padding: 14px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  border: none;
  background: none;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
  border-left: 3px solid transparent;
}

.feature-tab:hover {
  color: var(--color-text);
  background: var(--color-gray-50);
}

.feature-tab.active {
  color: var(--color-accent);
  background: rgba(37, 84, 232, 0.06);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

.feature-content {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 360px;
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: block;
}

.feature-panel h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-panel p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-panel .btn {
  font-size: 14px;
  padding: 8px 20px;
}

/* ---- PRODUCTS ---- */

.products {
  padding: 100px 0;
  background: var(--color-gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-gray-100);
  transition: all 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-200);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 84, 232, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */

.how-it-works {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- SEGMENTS ---- */

.segments {
  padding: 100px 0;
  background: var(--color-gray-50);
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.segment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-gray-100);
}

.segment-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.segment-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ---- CTA / SIGN UP ---- */

.cta {
  padding: 100px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.form-group input {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-accent);
}

/* ---- FOOTER ---- */

.footer {
  padding: 60px 0 32px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
}

.footer-inner {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

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

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

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

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--color-gray-100);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-100);
  font-size: 13px;
  color: var(--color-gray-400);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--color-gray-400);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--color-text);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

  .features-layout {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 24px;
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-md);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-top: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu ul {
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    min-width: 0;
  }

  .nav-dropdown-menu li a {
    padding: 8px 12px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-image {
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .feature-tab {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .feature-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-accent);
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

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