:root {
  --bg: #eef5ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #536179;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --green: #16a34a;
  --border: #dce7f5;
  --shadow: 0 24px 55px rgba(15, 23, 42, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.cg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1220px;
  margin: 18px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  backdrop-filter: blur(14px);
}

.cg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cg-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .25);
}

.cg-brand strong {
  display: block;
  font-size: 18px;
}

.cg-brand small {
  color: var(--muted);
  font-weight: 700;
}

.cg-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 850;
}

.cg-nav a:hover,
.cg-nav .cg-nav-btn {
  background: #eef4ff;
  color: var(--blue);
}

.cg-hero,
.cg-section,
.cg-contact,
.cg-footer {
  max-width: 1220px;
  margin: 0 auto;
}

.cg-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: center;
  padding: 70px 16px 42px;
}

.cg-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.cg-badge.light {
  background: rgba(255,255,255,.16);
  color: #dbeafe;
}

.cg-hero h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.075em;
}

.cg-hero p,
.cg-section-title p,
.cg-feature-card p,
.cg-why p,
.cg-contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.cg-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cg-btn {
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

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

.cg-btn.full {
  width: 100%;
}

.cg-mini-proof {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cg-mini-proof span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 850;
}

.cg-hero-panel {
  position: relative;
}

.cg-window {
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.cg-window-top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cg-window-top span {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: #cbd5e1;
}

.cg-dashboard {
  padding: 26px;
}

.cg-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cg-dashboard-head small,
.cg-dashboard-grid small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .055em;
}

.cg-dashboard-head strong {
  display: block;
  margin-top: 5px;
  font-size: 36px;
  letter-spacing: -.06em;
}

.cg-status {
  padding: 8px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 950;
}

.cg-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cg-dashboard-grid div {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
}

.cg-dashboard-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: -.04em;
}

.cg-bars {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.cg-bars span {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #22c55e);
}

.cg-section {
  padding: 48px 16px;
}

.cg-section-title {
  max-width: 850px;
  margin-bottom: 24px;
}

.cg-section-title span {
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}

.cg-section-title h2,
.cg-why h2,
.cg-contact h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.065em;
}

.cg-feature-card,
.cg-why,
.cg-contact {
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  padding: 28px;
}

.cg-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cg-feature-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -.05em;
}

.cg-cards,
.cg-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cg-card,
.cg-modules div {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.cg-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  margin-bottom: 16px;
}

.cg-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.04em;
}

.cg-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.cg-soft {
  background: rgba(255,255,255,.38);
  border-top: 1px solid rgba(219, 231, 245, .8);
  border-bottom: 1px solid rgba(219, 231, 245, .8);
  max-width: none;
  padding-left: calc((100% - 1220px) / 2 + 16px);
  padding-right: calc((100% - 1220px) / 2 + 16px);
}

.cg-modules div {
  min-height: 150px;
}

.cg-modules strong {
  display: block;
  margin: 13px 0 8px;
  font-size: 17px;
}

.cg-modules span {
  color: var(--muted);
  line-height: 1.35;
}

.cg-why {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 24px;
  align-items: center;
}

.cg-why-list {
  display: grid;
  gap: 10px;
}

.cg-why-list p {
  margin: 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 850;
}

.cg-contact {
  margin-top: 40px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  color: #fff;
}

.cg-contact p {
  color: #dbeafe;
}

.cg-contact-box {
  display: grid;
  gap: 12px;
}

.cg-contact-box small {
  color: #cbd5e1;
  text-align: center;
}

.cg-footer {
  padding: 28px 16px 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.cg-footer p {
  margin: 6px 0 0;
}

.cg-footer div:last-child {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cg-footer a {
  text-decoration: none;
  font-weight: 850;
}

@media (max-width: 940px) {
  .cg-header,
  .cg-feature-card,
  .cg-why,
  .cg-contact,
  .cg-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cg-nav {
    display: none;
  }

  .cg-hero,
  .cg-why,
  .cg-contact {
    grid-template-columns: 1fr;
  }

  .cg-hero {
    min-height: auto;
    padding-top: 50px;
  }

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

  .cg-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cg-cards,
  .cg-modules,
  .cg-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .cg-hero h1 {
    font-size: 42px;
  }

  .cg-header {
    margin: 10px;
  }
}
