/* ============================================
   SUPER CRM - Main Stylesheet
   Clean, maintainable CSS for responsive site
   ============================================ */

/* CSS Variables - Colors extracted from original site */
:root {
  /* Primary colors */
  --crm-primary: #FFBF23;
  --crm-primary-light: #3D6BA8;
  --crm-primary-dark: #d49e16;

  /* Accent colors */
  --crm-accent: #FF6B6B;
  --crm-accent-light: #FF8E8E;
  --crm-accent-dark: #E55555;

  /* Secondary colors */
  --crm-secondary: #4ECDC4;
  --crm-secondary-light: #6EDDD6;

  /* Background colors */
  --crm-bg: #FFFFFF;
  --crm-bg-light: #F8F9FA;
  --crm-bg-alt: #F0F4F8;

  /* Card colors */
  --crm-card-bg: #FFFFFF;
  --crm-card-border: #E2E2E2;
  --crm-card-shadow: rgba(0, 0, 0, 0.08);

  /* Text colors */
  --crm-text: #333333;
  --crm-text-dark: #000000;
  --crm-text-light: #666666;
  --crm-muted: #818181;
  --crm-muted-light: #8F8F8F;

  /* Border colors */
  --crm-border: #E2E2E2;
  --crm-border-light: #F0F0F0;

  /* Button colors */
  --crm-btn-primary: #FFBF23;
  --crm-btn-primary-hover: #3D6BA8;
  --crm-btn-accent: #FF6B6B;
  --crm-btn-accent-hover: #FF8E8E;

  /* Spacing */
  --crm-spacing-xs: 4px;
  --crm-spacing-sm: 8px;
  --crm-spacing-md: 16px;
  --crm-spacing-lg: 24px;
  --crm-spacing-xl: 32px;
  --crm-spacing-2xl: 48px;
  --crm-spacing-3xl: 64px;

  /* Font sizes */
  --crm-font-xs: 12px;
  --crm-font-sm: 14px;
  --crm-font-base: 16px;
  --crm-font-md: 18px;
  --crm-font-lg: 20px;
  --crm-font-xl: 24px;
  --crm-font-2xl: 32px;
  --crm-font-3xl: 40px;
  --crm-font-4xl: 48px;

  /* Border radius */
  --crm-radius-sm: 4px;
  --crm-radius-md: 8px;
  --crm-radius-lg: 12px;
  --crm-radius-xl: 16px;

  /* Transitions */
  --crm-transition: all 0.2s ease;
  --crm-transition-slow: all 0.3s ease;

  /* Container width */
  --crm-container-width: 1200px;
}

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

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

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  font-size: var(--crm-font-base);
  line-height: 1.7;
  color: var(--crm-text);
  background-color: var(--crm-bg);
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--crm-primary);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: min(var(--crm-container-width), calc(100% - 32px));
  margin-inline: auto;
  padding-inline: var(--crm-spacing-md);
}

.section {
  width: 100%;
  padding-block: var(--crm-spacing-3xl);
}

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

.section--light {
  background-color: var(--crm-bg-light);
}

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* Flexbox utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-sm { gap: var(--crm-spacing-sm); }
.gap-md { gap: var(--crm-spacing-md); }
.gap-lg { gap: var(--crm-spacing-lg); }
.gap-xl { gap: var(--crm-spacing-xl); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Header Styles
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--crm-bg);
  box-shadow: 0 2px 10px var(--crm-card-shadow);
  transition: var(--crm-transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-inline: var(--crm-spacing-lg);
  max-width: var(--crm-container-width);
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-sm);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-lg);
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-lg);
}

.header__menu-item {
  position: relative;
  font-size: var(--crm-font-sm);
  font-weight: 500;
  color: var(--crm-text);
  padding: var(--crm-spacing-sm) 0;
  cursor: pointer;
}

.header__menu-item:hover {
  color: var(--crm-primary);
}

.header__menu-link {
  display: block;
  padding: var(--crm-spacing-sm) 0;
}

/* Dropdown Menu */
.header__dropdown {
  position: relative;
}

.header__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-xs);
}

.header__dropdown-trigger::after {
  content: '';
  border: solid var(--crm-muted);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: var(--crm-transition);
}

.header__dropdown:hover .header__dropdown-trigger::after {
  transform: rotate(-135deg);
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background-color: var(--crm-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-md);
  box-shadow: 0 4px 20px var(--crm-card-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--crm-transition);
  padding: var(--crm-spacing-sm) 0;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.header__dropdown-item {
  display: block;
  padding: var(--crm-spacing-sm) var(--crm-spacing-md);
  font-size: var(--crm-font-sm);
  color: var(--crm-text);
  transition: var(--crm-transition);
}

.header__dropdown-item:hover {
  background-color: var(--crm-bg-light);
  color: var(--crm-primary);
}

/* Header Buttons */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-md);
}

.header__login {
  font-size: var(--crm-font-sm);
  color: var(--crm-text);
  padding: var(--crm-spacing-sm) var(--crm-spacing-md);
}

.header__login:hover {
  color: var(--crm-primary);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--crm-spacing-sm) var(--crm-spacing-lg);
  background-color: var(--crm-btn-primary);
  color: #000000;
  font-size: var(--crm-font-sm);
  font-weight: 800;
  border-radius: var(--crm-radius-md);
  transition: var(--crm-transition);
}

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

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--crm-spacing-sm);
  cursor: pointer;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--crm-text);
  transition: var(--crm-transition);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 70px; /* Header height */
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--crm-bg) 0%, var(--crm-bg-alt) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--crm-spacing-3xl);
  align-items: center;
  padding-block: var(--crm-spacing-3xl);
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-block;
  padding: var(--crm-spacing-xs) var(--crm-spacing-md);
  background-color: var(--crm-primary);
  color: #000000;
  font-size: var(--crm-font-sm);
  font-weight: 600;
  border-radius: var(--crm-radius-xl);
  margin-bottom: var(--crm-spacing-lg);
}

.hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-lg);
}

.hero__subtitle {
  font-size: var(--crm-font-lg);
  color: var(--crm-muted);
  line-height: 1.8;
  margin-bottom: var(--crm-spacing-xl);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--crm-spacing-md) var(--crm-spacing-2xl);
  background-color: var(--crm-btn-primary);
  color: #000000;
  font-size: var(--crm-font-base);
  font-weight: 600;
  border-radius: var(--crm-radius-lg);
  transition: var(--crm-transition);
  margin-bottom: var(--crm-spacing-xl);
}

.hero__cta:hover {
  background-color: var(--crm-btn-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(43, 76, 126, 0.3);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--crm-spacing-md);
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-sm);
  padding: var(--crm-spacing-sm) var(--crm-spacing-md);
  background-color: var(--crm-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-md);
  font-size: var(--crm-font-sm);
  font-weight: 500;
  transition: var(--crm-transition);
}

.hero__feature:hover {
  border-color: var(--crm-primary);
  color: var(--crm-primary);
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--crm-radius-xl);
  box-shadow: 0 20px 60px var(--crm-card-shadow);
}

/* ============================================
   Section Title Component
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--crm-spacing-3xl);
}

.section-title__label {
  display: inline-block;
  font-size: var(--crm-font-sm);
  font-weight: 600;
  color: var(--crm-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--crm-spacing-sm);
}

.section-title__main {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--crm-text-dark);
  line-height: 1.3;
}

.section-title__sub {
  font-size: var(--crm-font-lg);
  color: var(--crm-muted);
  margin-top: var(--crm-spacing-md);
  max-width: 600px;
  margin-inline: auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.features {
  padding-block: var(--crm-spacing-3xl);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--crm-spacing-lg);
}

.feature-card {
  background-color: var(--crm-card-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-lg);
  padding: var(--crm-spacing-xl);
  text-align: center;
  transition: var(--crm-transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--crm-card-shadow);
  border-color: var(--crm-primary);
}

.feature-card__icon {
  width: 240px;
  height: 240px;
  margin: 0 auto var(--crm-spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--crm-bg-alt);
  border-radius: 50%;
}

.feature-card__icon img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.feature-card__title {
  font-size: var(--crm-font-lg);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.feature-card__desc {
  font-size: var(--crm-font-sm);
  color: var(--crm-muted);
  line-height: 1.6;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
  padding-block: var(--crm-spacing-3xl);
}

.content-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--crm-spacing-3xl);
  align-items: center;
}

.content-section__inner--reverse {
  direction: rtl;
}

.content-section__inner--reverse > * {
  direction: ltr;
}

.content-section__image img {
  width: 100%;
  height: auto;
  border-radius: var(--crm-radius-lg);
  box-shadow: 0 10px 40px var(--crm-card-shadow);
}

.content-section__content {
  max-width: 520px;
}

.content-section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-lg);
}

.content-section__text {
  font-size: var(--crm-font-base);
  color: var(--crm-text);
  line-height: 1.8;
  margin-bottom: var(--crm-spacing-lg);
}

.content-section__list {
  margin-bottom: var(--crm-spacing-lg);
}

.content-section__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--crm-spacing-sm);
  margin-bottom: var(--crm-spacing-sm);
  font-size: var(--crm-font-base);
  color: var(--crm-text);
}

.content-section__list-item::before {
  content: '✓';
  color: var(--crm-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
  padding-block: var(--crm-spacing-3xl);
  background-color: var(--crm-bg-alt);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--crm-spacing-xl);
}

.benefit-card {
  background-color: var(--crm-card-bg);
  border-radius: var(--crm-radius-lg);
  padding: var(--crm-spacing-xl);
  text-align: center;
  box-shadow: 0 4px 20px var(--crm-card-shadow);
  transition: var(--crm-transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--crm-card-shadow);
}

.benefit-card__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--crm-spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-card__title {
  font-size: var(--crm-font-lg);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.benefit-card__desc {
  font-size: var(--crm-font-sm);
  color: var(--crm-muted);
  line-height: 1.7;
}

/* ============================================
   Steps Section
   ============================================ */
.steps {
  padding-block: var(--crm-spacing-3xl);
}

.steps__list {
  display: flex;
  flex-direction: column;
  gap: var(--crm-spacing-xl);
  max-width: 800px;
  margin-inline: auto;
}

.step-item {
  display: flex;
  gap: var(--crm-spacing-xl);
  align-items: flex-start;
}

.step-item__number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--crm-primary);
  color: #fff;
  font-size: var(--crm-font-xl);
  font-weight: 700;
  border-radius: 50%;
}

.step-item__content {
  flex: 1;
}

.step-item__title {
  font-size: var(--crm-font-lg);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.step-item__desc {
  font-size: var(--crm-font-base);
  color: var(--crm-muted);
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding-block: var(--crm-spacing-3xl);
  background: linear-gradient(135deg, var(--crm-primary) 0%, var(--crm-primary-dark) 100%);
  text-align: center;
}

.cta__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #000000;
  margin-bottom: var(--crm-spacing-lg);
}

.cta__text {
  font-size: var(--crm-font-lg);
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: var(--crm-spacing-xl);
  max-width: 600px;
  margin-inline: auto;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--crm-spacing-md) var(--crm-spacing-2xl);
  background-color: #fff;
  color: var(--crm-primary);
  font-size: var(--crm-font-base);
  font-weight: 600;
  border-radius: var(--crm-radius-lg);
  transition: var(--crm-transition);
}

.cta__button:hover {
  background-color: var(--crm-bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Forms
   ============================================ */
.form {
  max-width: 600px;
  margin-inline: auto;
}

.form__group {
  margin-bottom: var(--crm-spacing-lg);
}

.form__label {
  display: block;
  font-size: var(--crm-font-sm);
  font-weight: 500;
  color: var(--crm-text);
  margin-bottom: var(--crm-spacing-sm);
}

.form__label--required::after {
  content: ' *';
  color: var(--crm-accent);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--crm-spacing-md);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-md);
  font-size: var(--crm-font-base);
  color: var(--crm-text);
  background-color: var(--crm-bg);
  transition: var(--crm-transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--crm-spacing-sm);
}

.form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--crm-primary);
}

.form__checkbox label {
  font-size: var(--crm-font-sm);
  color: var(--crm-text);
  line-height: 1.5;
}

.form__submit {
  width: 100%;
  padding: var(--crm-spacing-md) var(--crm-spacing-xl);
  background-color: var(--crm-btn-primary);
  color: #fff;
  font-size: var(--crm-font-base);
  font-weight: 600;
  border-radius: var(--crm-radius-md);
  transition: var(--crm-transition);
  cursor: pointer;
}

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

.form__submit:disabled {
  background-color: var(--crm-muted);
  cursor: not-allowed;
}

/* Form Row for 2-column layout */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--crm-spacing-lg);
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--crm-spacing-lg);
}

.card {
  background-color: var(--crm-card-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-lg);
  overflow: hidden;
  transition: var(--crm-transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--crm-card-shadow);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__content {
  padding: var(--crm-spacing-lg);
}

.card__title {
  font-size: var(--crm-font-lg);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.card__desc {
  font-size: var(--crm-font-sm);
  color: var(--crm-muted);
  line-height: 1.6;
  margin-bottom: var(--crm-spacing-md);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--crm-spacing-xs);
  font-size: var(--crm-font-sm);
  font-weight: 500;
  color: var(--crm-primary);
}

.card__link:hover {
  gap: var(--crm-spacing-sm);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--crm-text-dark);
  color: #fff;
  padding-top: var(--crm-spacing-3xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--crm-spacing-xl);
  padding-bottom: var(--crm-spacing-3xl);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  margin-bottom: var(--crm-spacing-lg);
}

.footer__logo img {
  height: 50px;
  width: auto;
}

.footer__address {
  font-size: var(--crm-font-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer__contact {
  margin-top: var(--crm-spacing-lg);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-sm);
  font-size: var(--crm-font-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--crm-spacing-sm);
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__column-title {
  font-size: var(--crm-font-base);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--crm-spacing-lg);
}

.footer__links {
  list-style: none;
}

.footer__link {
  display: block;
  font-size: var(--crm-font-sm);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--crm-spacing-xs) 0;
  transition: var(--crm-transition);
}

.footer__link:hover {
  color: #fff;
  padding-left: var(--crm-spacing-xs);
}

.footer__newsletter {
  margin-top: var(--crm-spacing-md);
}

.footer__newsletter-input {
  width: 100%;
  padding: var(--crm-spacing-sm) var(--crm-spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--crm-radius-md);
  background-color: transparent;
  color: #fff;
  font-size: var(--crm-font-sm);
  margin-bottom: var(--crm-spacing-sm);
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-btn {
  width: 100%;
  padding: var(--crm-spacing-sm) var(--crm-spacing-md);
  background-color: var(--crm-btn-primary);
  color: #fff;
  font-size: var(--crm-font-sm);
  font-weight: 500;
  border-radius: var(--crm-radius-md);
  transition: var(--crm-transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--crm-spacing-lg) 0;
  text-align: center;
}

.footer__copyright {
  font-size: var(--crm-font-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
  padding-top: 70px;
  padding-bottom: var(--crm-spacing-3xl);
  background: linear-gradient(135deg, var(--crm-bg) 0%, var(--crm-bg-alt) 100%);
  text-align: center;
}

.page-header__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-md);
}

.page-header__subtitle {
  font-size: var(--crm-font-lg);
  color: var(--crm-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--crm-spacing-lg);
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  :root {
    --crm-spacing-3xl: 48px;
  }

  /* Header Mobile */
  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--crm-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--crm-spacing-lg);
    gap: var(--crm-spacing-md);
    transform: translateX(100%);
    transition: var(--transition-slow);
    overflow-y: auto;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__menu-item {
    padding: var(--crm-spacing-md);
    border-bottom: 1px solid var(--crm-border-light);
  }

  .header__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding-left: var(--crm-spacing-lg);
    display: none;
  }

  .header__dropdown.active .header__dropdown-menu {
    display: block;
  }

  .header__actions {
    flex-direction: column;
    gap: var(--crm-spacing-sm);
  }

  .header__cta {
    width: 100%;
  }

  .header__toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--crm-spacing-xl);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__features {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  /* Content Section Mobile */
  .content-section__inner {
    grid-template-columns: 1fr;
    gap: var(--crm-spacing-xl);
  }

  .content-section__inner--reverse {
    direction: ltr;
  }

  /* Features Mobile */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Benefits Mobile */
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  /* Cards Grid Mobile */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Steps Mobile */
  .step-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Form Mobile */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    grid-column: 1;
  }

  .footer__contact-item {
    justify-content: center;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ============================================
   Page Specific Styles
   ============================================ */

/* Customer Management Page */
.info-sync-section,
.label-section,
.repeat-section,
.blacklist-section {
  padding-block: var(--crm-spacing-3xl);
}

/* Order Care Page */
.flow-diagram {
  overflow-x: auto;
  padding: var(--crm-spacing-lg);
  background-color: var(--crm-bg-alt);
  border-radius: var(--crm-radius-lg);
}

.flow-diagram__inner {
  display: flex;
  align-items: center;
  gap: var(--crm-spacing-md);
  min-width: max-content;
}

.flow-diagram__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--crm-spacing-md);
}

.flow-diagram__arrow {
  color: var(--crm-muted);
  font-size: var(--crm-font-xl);
}

/* Data Download Page */
.download-card {
  background-color: var(--crm-card-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-lg);
  padding: var(--crm-spacing-xl);
  display: flex;
  gap: var(--crm-spacing-lg);
  align-items: center;
  margin-bottom: var(--crm-spacing-lg);
}

.download-card__icon {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--crm-bg-alt);
  border-radius: var(--crm-radius-md);
}

.download-card__content {
  flex: 1;
}

.download-card__title {
  font-size: var(--crm-font-lg);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.download-card__desc {
  font-size: var(--crm-font-sm);
  color: var(--crm-muted);
  margin-bottom: var(--crm-spacing-md);
}

.download-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--crm-spacing-sm) var(--crm-spacing-lg);
  background-color: var(--crm-btn-primary);
  color: #000000;
  font-size: var(--crm-font-sm);
  font-weight: 500;
  border-radius: var(--crm-radius-md);
  transition: var(--crm-transition);
}

.download-card__btn:hover {
  background-color: var(--crm-btn-primary-hover);
  color: #000000;
}

@media (max-width: 767px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Introduction Flow Page */
.intro-step {
  display: flex;
  gap: var(--crm-spacing-xl);
  align-items: flex-start;
  padding: var(--crm-spacing-xl);
  background-color: var(--crm-bg);
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-lg);
  margin-bottom: var(--crm-spacing-lg);
}

.intro-step__number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--crm-primary) 0%, var(--crm-primary-dark) 100%);
  color: #fff;
  font-size: var(--crm-font-2xl);
  font-weight: 700;
  border-radius: 50%;
}

.intro-step__content {
  flex: 1;
}

.intro-step__title {
  font-size: var(--crm-font-xl);
  font-weight: 600;
  color: var(--crm-text-dark);
  margin-bottom: var(--crm-spacing-sm);
}

.intro-step__desc {
  font-size: var(--crm-font-base);
  color: var(--crm-text);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .intro-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Message Box for Form Success */
.message-box {
  display: none;
  padding: var(--crm-spacing-lg);
  background-color: #E8F5E9;
  border: 1px solid #4CAF50;
  border-radius: var(--crm-radius-md);
  color: #2E7D32;
  text-align: center;
  margin-top: var(--crm-spacing-lg);
}

.message-box.show {
  display: block;
}

/* Horizontal Scroll Container */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.scroll-x::-webkit-scrollbar {
  height: 6px;
}

.scroll-x::-webkit-scrollbar-track {
  background: var(--crm-bg-alt);
}

.scroll-x::-webkit-scrollbar-thumb {
  background: var(--crm-muted);
  border-radius: 3px;
}

/* ============================================
   Data Download Page - Complete Redesign
   Matched to Wix reference A1/A2/A3
   ============================================ */

/* ---- Curved Yellow Hero (A1: flat top, downward arc, mid dips ~125px) ---- */
.download-hero {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #fff;
  margin-top: 80px;
}

.download-hero__shape {
  position: absolute;
  top: 0;
  left: 50%;
  width: 110%;
  height: 125px;
  transform: translateX(-50%);
  background: #ffbd24;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.download-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 20px;
  text-align: center;
  color: #000;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---- Download Section Common ---- */
.download-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.download-section__inner {
  position: relative;
  z-index: 2;
  width: min(1460px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 100px;
  padding-block: 80px;
}

.download-section__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-section__image-wrap {
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 490px;
  max-width: 90%;
}

.download-section__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.download-section__content {
  width: min(100%, 500px);
}

.download-section__title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.3;
}

.download-section__text {
  font-size: clamp(16px, 1.5vw, 22px);
  color: #333;
  line-height: 1.8;
  margin-bottom: 30px;
}

.download-section__text strong {
  font-weight: 700;
}

.download-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 170px;
  min-height: 49px;
}

/* ---- Section 1: Yellow ---- */
.download-section--yellow .download-section__deco {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 620px;
  background: #ffbf24;
  border-radius: 0 18px 18px 0;
  z-index: 1;
}

.download-section--yellow .download-section__image-wrap {
  height: 525px;
  margin-left: -40px;
}

.download-section--yellow .download-section__btn {
  background: #ffbf24;
  color: #000;
}

.download-section--yellow .download-section__btn:hover {
  background: #3D6BA8;
  color: #fff;
}

/* ---- Section 2: Green ---- */
.download-section--green .download-section__deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 465px;
  height: 550px;
  background: #cef261;
  border-radius: 20px 0 0 20px;
  z-index: 1;
}

.download-section--green .download-section__image-wrap {
  height: 365px;
  margin-right: -40px;
}

.download-section--green .download-section__btn {
  background: #cef261;
  color: #000;
}

.download-section--green .download-section__btn:hover {
  background: #b8da40;
  color: #000;
}

/* ---- Section 3: Blue ---- */
.download-section--blue .download-section__deco {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 658px;
  background: #0091e1;
  border-radius: 0 18px 18px 0;
  z-index: 1;
}

.download-section--blue .download-section__image-wrap {
  height: 470px;
  margin-left: -40px;
}

.download-section--blue .download-section__btn {
  background: #0091e1;
  color: #fff;
}

.download-section--blue .download-section__btn:hover {
  background: #0077bb;
  color: #fff;
}

/* ---- Hide old page-header on data-download page ---- */
.data-download-page .page-header {
  display: none;
}

/* ---- Hide old section cards on data-download page ---- */
.data-download-page .section {
  display: none;
}

/* ---- Header (navbar) adjustments for data-download page - A1 style ---- */
.data-download-page .header {
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.data-download-page .header__inner {
  height: 80px;
  max-width: 1600px;
  padding-inline: 24px;
}

/* Left brand cluster: logo + 九宫格 + 他の製品 */
.data-download-page .header__brand-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.data-download-page .header__logo img {
  width: 56px;
  height: auto;
}

.data-download-page .header__products {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.data-download-page .header__grid-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.data-download-page .header__products-text {
  font-size: 16px;
  color: #000;
}

/* Right nav menu */
.data-download-page .header__menu {
  gap: 32px;
}

.data-download-page .header__menu-item {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.data-download-page .header__menu-link {
  color: #000;
}

.data-download-page .header__menu-link:hover,
.data-download-page .header__menu-item:hover {
  color: #000;
  opacity: 0.7;
}

/* Right actions */
.data-download-page .header__actions {
  gap: 24px;
}

.data-download-page .header__login {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #000;
  padding: 0;
}

.data-download-page .header__login:hover {
  color: #000;
  opacity: 0.7;
}

.data-download-page .header__login-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* 資料請求 yellow button */
.data-download-page .header__cta {
  width: 90px;
  height: 34px;
  padding: 0;
  background: #ffbf24;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #000;
  border-radius: 6px;
}

.data-download-page .header__cta:hover {
  background: #f5b51d;
  color: #000;
}

/* 言語選択 white pill */
.data-download-page .header__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
}

.data-download-page .header__lang-flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-download-page .header__lang-flag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5341e;
}

.data-download-page .header__lang-text {
  font-size: 13px;
  color: #333;
}

.data-download-page .header__lang-arrow {
  display: block;
  flex-shrink: 0;
}

/* ---- White gap between blue section and CTA (border-top on CTA) ---- */
.data-download-page .cta {
  border-top: 100px solid #fff;
  box-sizing: border-box;
}

/* ============================================
   Data Download - Responsive
   ============================================ */

@media (max-width: 1280px) {
  .download-section__inner {
    column-gap: 60px;
    width: min(1460px, calc(100% - 40px));
  }
  .download-section--yellow .download-section__deco {
    width: 380px;
    height: 560px;
  }
  .download-section--green .download-section__deco {
    width: 380px;
    height: 500px;
  }
  .download-section--blue .download-section__deco {
    width: 380px;
    height: 600px;
  }
  .download-section__image-wrap {
    width: 420px;
  }
  .download-section--yellow .download-section__image-wrap {
    height: 460px;
  }
  .download-section--green .download-section__image-wrap {
    height: 320px;
  }
  .download-section--blue .download-section__image-wrap {
    height: 420px;
  }
}

@media (max-width: 1024px) {
  .data-download-page .cta {
    border-top-width: 70px;
  }
  .download-section__inner {
    column-gap: 40px;
    padding-block: 60px;
  }
  .download-section--yellow .download-section__deco {
    width: 300px;
    height: 500px;
  }
  .download-section--green .download-section__deco {
    width: 300px;
    height: 440px;
  }
  .download-section--blue .download-section__deco {
    width: 300px;
    height: 540px;
  }
  .download-section__image-wrap {
    width: 340px;
  }
  .download-section--yellow .download-section__image-wrap {
    height: 380px;
  }
  .download-section--green .download-section__image-wrap {
    height: 260px;
  }
  .download-section--blue .download-section__image-wrap {
    height: 340px;
  }
  .download-section__title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .data-download-page .cta {
    border-top-width: 48px;
  }
  /* Mobile header: keep logo + hamburger, hide desktop-only 他の製品 */
  .data-download-page .header__brand-group {
    gap: 0;
  }
  .data-download-page .header__products {
    display: none;
  }
  .data-download-page .header__nav {
    top: 80px;
  }
  /* Mobile hero: smaller arc, title centered */
  .download-hero {
    height: 125px;
  }
  .download-hero__shape {
    top: 0;
    width: 125%;
    height: 96px;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
  }
  .download-hero__title {
    padding-top: 16px;
    font-size: clamp(30px, 9vw, 36px);
  }
  .download-section {
    min-height: auto;
  }
  .download-section__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    padding-block: 50px;
    text-align: center;
  }
  .download-section__content {
    width: 100%;
    order: 2;
  }
  .download-section__media {
    order: 1;
  }
  .download-section__deco {
    display: none;
  }
  .download-section__image-wrap {
    width: min(88vw, 490px);
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .download-section--yellow .download-section__image-wrap {
    height: auto;
  }
  .download-section--green .download-section__image-wrap {
    height: auto;
  }
  .download-section--blue .download-section__image-wrap {
    height: auto;
  }
  .download-section__title {
    font-size: 24px;
  }
  .download-section__text {
    font-size: 16px;
  }
  .download-section__btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 430px) {
  .download-hero {
    height: 120px;
  }
  .download-hero__shape {
    height: 92px;
  }
  .download-hero__title {
    padding-top: 14px;
    font-size: clamp(28px, 8.5vw, 32px);
  }
  .download-section__inner {
    padding-block: 40px;
    row-gap: 30px;
  }
  .download-section__title {
    font-size: 22px;
  }
  .download-section__text {
    font-size: 15px;
  }
}

