/* ===============================
   GTMstack Design Tokens
   =============================== */

:root {
  /* Colors */
  --gtm-color-bg: #ffffff;
  --gtm-color-bg-light: #E8ECF2;
  --gtm-color-bg-dark: #0F1A2A;
  --gtm-color-bg-dark-alt: #1E2735;

  --gtm-color-text-main: #2C3A4A;
  --gtm-color-text-muted: #6B7687;
  --gtm-color-text-on-dark: #ffffff;

  --gtm-color-primary: #15C4B6;         /* Teal */
  --gtm-color-primary-soft: #38F0E8;    /* Neon accent */
  --gtm-color-accent: #7A6CFF;         /* Purple accent */

  --gtm-color-border-soft: rgba(15, 26, 42, 0.08);
  --gtm-color-shadow-soft: rgba(15, 26, 42, 0.06);

  /* Typography */
  --gtm-font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --gtm-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8px scale) */
  --gtm-space-xs: 8px;
  --gtm-space-sm: 16px;
  --gtm-space-md: 24px;
  --gtm-space-lg: 40px;
  --gtm-space-xl: 64px;
  --gtm-space-xxl: 96px;

  /* Radii */
  --gtm-radius-sm: 8px;
  --gtm-radius-md: 12px;
  --gtm-radius-lg: 16px;

  /* Shadows */
  --gtm-shadow-soft: 0 4px 16px rgba(15, 26, 42, 0.06);
}

/* Base Typography */

body {
  font-family: var(--gtm-font-body);
  color: var(--gtm-color-text-main);
}

h1, h2, h3, h4, h5 {
  font-family: var(--gtm-font-heading);
  letter-spacing: 0.03em;
  color: var(--gtm-color-bg-dark);
}

.gtm-on-dark h1,
.gtm-on-dark h2,
.gtm-on-dark h3,
.gtm-on-dark h4,
.gtm-on-dark p {
  color: var(--gtm-color-text-on-dark);
}

/* Sections */

.gtm-section {
  padding-top: var(--gtm-space-xl);
  padding-bottom: var(--gtm-space-xl);
}

.gtm-section--light {
  background: var(--gtm-color-bg);
}

.gtm-section--muted {
  background: var(--gtm-color-bg-light);
}

.gtm-section--dark {
  background: radial-gradient(circle at top left, #1E2735 0%, #0F1A2A 60%, #050712 100%);
  color: var(--gtm-color-text-on-dark);
}

.gtm-section--angled-top {
  position: relative;
  z-index: 1;
}
.gtm-section--angled-top::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  transform: skewY(-3deg);
  transform-origin: 0 100%;
}

/* Cards */

.gtm-card {
  background: #ffffff;
  border-radius: var(--gtm-radius-md);
  border: 1px solid var(--gtm-color-border-soft);
  box-shadow: var(--gtm-shadow-soft);
  padding: var(--gtm-space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gtm-card__icon {
  margin-bottom: var(--gtm-space-md);
  font-size: 32px;
  color: var(--gtm-color-primary);
}

.gtm-card__title {
  font-weight: 600;
  margin-bottom: var(--gtm-space-sm);
}

.gtm-card__body {
  flex: 1;
  color: var(--gtm-color-text-muted);
}

/* Grids */

.gtm-grid {
  display: grid;
  gap: var(--gtm-space-lg);
}
.gtm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gtm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .gtm-grid--3,
  .gtm-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Buttons */

.gtm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-family: var(--gtm-font-heading);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
  text-decoration: none;
}

.gtm-button--primary {
  background: linear-gradient(135deg, var(--gtm-color-primary), var(--gtm-color-accent));
  color: #ffffff;
}

.gtm-button--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 26, 42, 0.25);
}

.gtm-button--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
}

.gtm-button--ghost--dark {
  background: transparent;
  border: 1px solid var(--gtm-color-border-soft);
  color: var(--gtm-color-bg-dark);
}

/* Spacing Utilities */

.gtm-mt-lg { margin-top: var(--gtm-space-lg); }
.gtm-mb-lg { margin-bottom: var(--gtm-space-lg); }
.gtm-pt-lg { padding-top: var(--gtm-space-lg); }
.gtm-pb-lg { padding-bottom: var(--gtm-space-lg); }

/* Hero Layout Helper */

.gtm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gtm-space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .gtm-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
