/* ============================================================
   Guangzhou Cong Mei Technology Co., Ltd.
   Design: Japanese Minimal
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

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

/* --- Variables --- */
:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --alt: #F5F0E8;
  --text: #2D2D2D;
  --secondary: #6B6B6B;
  --muted: #9E9E9E;
  --vermilion: #E63946;
  --indigo: #1B365D;
  --wood: #8B7355;
  --dark: #2D2D2D;
  --dark-text: #FBF8F3;
  --border: #E0D8CC;

  --font-body: 'Inter', 'Noto Sans JP', sans-serif;
  --font-jp: 'Noto Sans JP', 'Inter', sans-serif;
  --max-width: 1120px;
  --section-padding: 120px 32px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-jp);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--secondary);
  line-height: 1.85;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--vermilion);
}

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

/* --- Section Titles --- */
.section-label {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* --- Thin Divider --- */
.thin-line {
  width: 60px;
  height: 1px;
  background-color: var(--indigo);
  margin: 0 0 24px 0;
}

.thin-line--vermilion {
  background-color: var(--vermilion);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.nav__logo {
  font-family: var(--font-jp);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--indigo);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 160px 32px 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--vermilion);
  opacity: 0.85;
}

.hero__right {
  padding-top: 8px;
}

.hero__overline {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero__heading {
  font-family: var(--font-jp);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.hero__line {
  width: 80px;
  height: 1px;
  background-color: var(--indigo);
  margin-bottom: 32px;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.85;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--indigo);
  border: 1px solid var(--indigo);
  padding: 14px 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero__cta:hover {
  background-color: var(--indigo);
  color: var(--bg);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--section-padding);
}

.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__intro {
  margin-bottom: 64px;
}

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

.service-card {
  background: var(--surface);
  padding: 48px 40px 44px;
  border-bottom: 1px solid var(--indigo);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.service-card__accent {
  width: 12px;
  height: 12px;
  background-color: var(--indigo);
  margin-bottom: 28px;
}

.service-card__title {
  font-family: var(--font-jp);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.85;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-padding);
  background-color: var(--alt);
}

.about__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--secondary);
  line-height: 2.0;
  margin-bottom: 48px;
}

.about__pullquote {
  background-color: var(--bg);
  border-left: 2px solid var(--vermilion);
  padding: 32px 36px;
  margin-top: 48px;
}

.about__pullquote p {
  font-family: var(--font-jp);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
}

.about__pullquote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  padding: 100px 32px;
}

.metrics__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 120px;
  flex-wrap: wrap;
}

.metric {
  text-align: left;
}

.metric__number {
  font-family: var(--font-jp);
  font-size: 4rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  display: block;
}

.metric__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--vermilion);
  margin-left: 4px;
  vertical-align: super;
}

.metric__label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-padding);
  background-color: var(--surface);
}

.process__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.process__intro {
  margin-bottom: 64px;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-step {
  position: relative;
  padding: 0 24px 0 0;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -12px;
  width: 24px;
  height: 1px;
  background-color: var(--indigo);
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--indigo);
  font-family: var(--font-jp);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 20px;
}

.process-step__title {
  font-family: var(--font-jp);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.75;
}

/* ============================================================
   TAGS / CAPABILITIES
   ============================================================ */
.tags {
  padding: var(--section-padding);
}

.tags__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tags__intro {
  margin-bottom: 48px;
}

.tags__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
  row-gap: 16px;
  list-style: none;
}

.tags__grid li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 2.0;
  position: relative;
  padding-left: 18px;
}

.tags__grid li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.5rem;
  color: var(--vermilion);
  line-height: 2.0;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: 100px 32px;
  background-color: var(--vermilion);
  text-align: center;
}

.cta-section__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__heading {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-section__sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 40px;
}

.cta-section__button {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  border: 1px solid var(--indigo);
  background-color: var(--indigo);
  padding: 14px 40px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-section__button:hover {
  background-color: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--dark);
  color: var(--dark-text);
  padding: 72px 32px 48px;
  border-top: 2px solid var(--vermilion);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.footer__col h4 {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer__col p,
.footer__col a,
.footer__col li {
  font-size: 0.875rem;
  color: rgba(251, 248, 243, 0.7);
  line-height: 2.0;
}

.footer__col a:hover {
  color: var(--vermilion);
}

.footer__col ul {
  list-style: none;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(251, 248, 243, 0.12);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(251, 248, 243, 0.45);
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */
.legal-page {
  padding: 120px 32px 80px;
}

.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page__title {
  font-family: var(--font-jp);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-page__content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-page__content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-page__content p {
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-page__content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-page__content ul li {
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.85;
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}

.legal-page__content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.legal-page__content strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
}

.animate-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  html {
    font-size: 15px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__left {
    min-height: 160px;
  }

  .hero__circle {
    width: 36px;
    height: 36px;
  }

  .hero__heading {
    font-size: 2.5rem;
  }

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

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .tags__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .metrics__inner {
    gap: 64px;
  }

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

@media (max-width: 640px) {
  :root {
    --section-padding: 80px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero__heading {
    font-size: 2rem;
  }

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

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

  .metrics__inner {
    flex-direction: column;
    gap: 40px;
  }

  .metric__number {
    font-size: 3rem;
  }
}
