/* CMDA — Shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #0d1117;
  --text-muted: #5a6473;
  --text-soft: #8a93a3;
  --accent: #f5c518;
  --accent-hover: #e0b212;
  --border: #e5e7eb;
  --border-strong: #d4d8de;
  --shadow-card: 0 1px 3px rgba(13, 17, 23, 0.04), 0 4px 12px rgba(13, 17, 23, 0.04);
  --radius: 12px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.pill--accent {
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.4);
  color: #7a6300;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 110px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 24px auto 24px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Service card link */
.service-card {
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 2px 6px rgba(13, 17, 23, 0.05), 0 12px 24px rgba(13, 17, 23, 0.06);
}

.service-card .service-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  background: rgba(245, 197, 24, 0.14);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* Steps */
.step {
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Testimonials */
.testimonial p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.testimonial .who {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial .who strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.testimonial .who span {
  font-size: 13px;
  color: var(--text-muted);
}

/* CTA strip */
.cta-strip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
}

.cta-strip h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-strip p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Services page — long sections */
.service-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block .tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.service-block h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.service-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

.service-block ul {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  max-width: 720px;
}

.service-block ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text);
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* About */
.about-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

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

.about-intro p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.company-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.company-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.company-block p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.founder {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.founder .role {
  font-size: 15px;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 18px;
}

.founder p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.tools-grid .pill {
  background: #fff;
  font-size: 14px;
  padding: 8px 18px;
  color: var(--text);
}

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

.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-info .item {
  margin-bottom: 28px;
}

.contact-info .item p,
.contact-info .item a {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-info .item a:hover {
  color: var(--accent-hover);
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form .field {
  margin-bottom: 18px;
}

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

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s;
}

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

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

.form button {
  width: 100%;
  margin-top: 4px;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-contact a {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .service-block { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
  .service-block ul { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .section-head h2 { font-size: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip { padding: 40px 24px; }
  .cta-strip h2 { font-size: 26px; }
  .about-intro h1 { font-size: 36px; }
  .legal { padding: 56px 0; }
  .legal h1 { font-size: 32px; }
  .service-block h2 { font-size: 26px; }

  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.open .nav-links li {
    width: 100%;
  }
  .nav.open .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-cta .btn {
    display: inline-flex;
    margin: 12px 24px;
  }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .stat-num { font-size: 36px; }
  .company-block { padding: 28px; }
  .form { padding: 24px; }
}
