/* Gyrum Demo Site — matches saastools.gyrum.io design system */

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

:root {
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --color-accent: #f59e0b;
  --gyrum-font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--gyrum-font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--gyrum-font);
  font-weight: 600; font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { background: var(--color-surface); }
.btn-sm { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-cta-white { background: #fff; color: var(--color-primary); border-color: transparent; font-size: 1rem; padding: 0.875rem 2rem; }
.btn-cta-white:hover { background: #f0fdfa; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0 48px;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  height: 56px; gap: 32px;
}
.nav__logo {
  font-weight: 700; font-size: 1.125rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__link { font-size: 0.9375rem; color: var(--color-text-muted); font-weight: 500; }
.nav__link:hover { color: var(--color-text); }
.nav__cta { margin-left: 8px; }

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav__links { display: none; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #e0f2fe 100%);
  padding: 80px 48px;
}
.hero__inner { max-width: 640px; }
.hero__eyebrow {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--color-primary); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.125rem; color: var(--color-text-muted);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding: 48px 16px; }
}

/* --- Sections --- */
.section { padding: 80px 48px; }
.section--alt { background: var(--color-surface); }
.section--surface { background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 720px; margin: 0 auto; }

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.025em;
  text-align: center; margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem; color: var(--color-text-muted);
  text-align: center; margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .section { padding: 48px 16px; }
}

/* --- Widget grid --- */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.widget-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.widget-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1); }
.widget-card--active { border-color: var(--color-primary); }
.widget-card__badge {
  position: absolute; top: -0.75rem; left: 1rem;
  background: var(--color-primary); color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 99px;
}
.widget-card__icon { font-size: 2rem; line-height: 1; }
.widget-card__name { font-size: 1.0625rem; font-weight: 700; }
.widget-card__desc { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.55; flex: 1; }
.widget-card__code {
  background: #0f172a;
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  font-size: 0.75rem; line-height: 1.5; color: #94a3b8;
  overflow-x: auto;
}

/* --- Code block --- */
.code-block { background: #0f172a; border-radius: 0.75rem; overflow: hidden; }
.code-block__header {
  background: #1e293b; padding: 0.625rem 1rem;
  display: flex; align-items: center; gap: 0.375rem;
}
.code-block__dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.code-block__dot:nth-child(1) { background: #ef4444; }
.code-block__dot:nth-child(2) { background: #f59e0b; }
.code-block__dot:nth-child(3) { background: #22c55e; }
.code-block__filename { font-size: 0.75rem; color: #64748b; margin-left: 4px; }
.code-block__body { padding: 1.25rem 1.5rem; font-size: 0.9375rem; line-height: 1.7; overflow-x: auto; }
.hl-comment { color: #64748b; }
.hl-tag { color: #7dd3fc; }
.hl-attr { color: #fde68a; }
.hl-val { color: #86efac; }

/* --- Footer CTA --- */
.footer-cta {
  background: var(--color-primary);
  padding: 72px 48px; text-align: center;
}
.footer-cta__heading { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-cta__sub { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.0625rem; }

@media (max-width: 640px) { .footer-cta { padding: 48px 16px; } }

/* --- Footer --- */
.site-footer { background: #0f172a; padding: 40px 48px; color: #94a3b8; }
.site-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-footer__logo { font-weight: 700; color: #fff; letter-spacing: 0.08em; font-size: 0.9375rem; }
.site-footer__tagline { font-size: 0.8125rem; color: #64748b; margin-top: 2px; display: block; }
.site-footer__links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { font-size: 0.75rem; color: #475569; }

@media (max-width: 640px) { .site-footer { padding: 32px 16px; } }
