:root {
  --bg: #f3f6f2;
  --bg-deep: #e7eee6;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #5d6f66;
  --line: #d5e0d8;
  --brand: #0f6b4c;
  --brand-2: #1a9a6c;
  --brand-soft: #d8f3e6;
  --accent: #c45c26;
  --danger: #b42318;
  --warn: #b54708;
  --info: #026aa2;
  --shadow: 0 18px 50px rgba(20, 32, 26, 0.08);
  --radius: 18px;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(26, 154, 108, 0.14), transparent 55%),
    radial-gradient(900px 400px at -10% 20%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, var(--bg) 40%, #eef3ec 100%);
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(920px, calc(100% - 2rem)); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 246, 0.82);
  border-bottom: 1px solid rgba(213, 224, 216, 0.8);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0a0f1a, var(--brand));
  color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(15, 107, 76, 0.28);
}
.brand-text { display: grid; gap: .1rem; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav > a:not(.btn):hover { color: var(--ink); }

.inline-form { display: inline; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border: 1px solid transparent; border-radius: 999px;
  padding: .65rem 1.15rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: .2s ease; background: var(--surface); color: var(--ink);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 10px 24px rgba(15, 107, 76, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c0bb; }
.btn-lg { padding: .85rem 1.4rem; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }

.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(15,107,76,.08), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f6b4c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 .8rem;
  color: var(--brand); font-weight: 600; font-size: .92rem;
}
.brand-hero {
  margin: 0; font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.04em;
  background: linear-gradient(120deg, #0a4d37, var(--brand-2) 55%, #c45c26);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; line-height: 1.9; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.sheet-mock {
  background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  animation: floatIn 1s ease both;
}
@keyframes floatIn {
  from { opacity: 0; transform: perspective(1200px) translateY(24px) rotateY(-6deg); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(4deg); }
}
.sheet-mock-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .85rem 1rem; background: #f4f7f4; border-bottom: 1px solid var(--line);
}
.sheet-mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d0d8d2;
}
.sheet-mock-bar span:nth-child(1) { background: #ff5f57; }
.sheet-mock-bar span:nth-child(2) { background: #febc2e; }
.sheet-mock-bar span:nth-child(3) { background: #28c840; }
.sheet-mock-bar em { margin-right: auto; font-style: normal; color: var(--muted); font-size: .9rem; }
.sheet-mock table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sheet-mock th, .sheet-mock td {
  border: 1px solid #e6eee8; padding: .55rem .65rem; text-align: center;
}
.sheet-mock thead th, .sheet-mock tbody th { background: #f7faf7; color: var(--muted); font-weight: 600; }
.sheet-mock .hl { background: #eef8f2; font-weight: 600; }
.sheet-mock .formula { color: var(--brand); font-weight: 600; }
.live-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .9rem; padding: .45rem .8rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 600;
}
.live-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(26,154,108,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26,154,108,.55); }
  70% { box-shadow: 0 0 0 10px rgba(26,154,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,154,108,0); }
}

.section { padding: 4rem 0; }
.section-alt { background: rgba(255,255,255,.45); border-block: 1px solid var(--line); }
.section h1, .section h2 { margin: 0 0 .6rem; letter-spacing: -0.03em; }
.section-lead { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

.feature-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.feature-strip article {
  padding: 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
}
.feature-strip h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.feature-strip p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .95rem; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: rgba(15,107,76,.35);
  background: linear-gradient(180deg, #ffffff, #f2faf6);
}
.price-card h3 { margin: 0 0 .5rem; }
.price { font-size: 1.55rem; font-weight: 800; margin: .4rem 0; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.yearly { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.price-card ul { padding: 0 1.1rem 0 0; margin: 0 0 1.2rem; color: var(--muted); }
.price-card li { margin: .35rem 0; }

.site-footer {
  border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 0;
  background: #0a0f1a; color: #e2e8f0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
}
.footer-brand p { margin: .5rem 0 0; color: #94a3b8; line-height: 1.7; }
.footer-brand .brand { color: #f8fafc; }
.footer-grid h4 { margin: 0 0 .75rem; font-size: .95rem; color: #f1f5f9; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .4rem 0; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 1.2rem; font-size: .85rem; }

.auth-section { display: grid; place-items: center; min-height: 70vh; }
.auth-card {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 1.8rem; box-shadow: var(--shadow);
}
.auth-wide { width: min(720px, 100%); }
.stack { display: grid; gap: .9rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; font-weight: 500; }
.form-input, input.form-input, select.form-input, textarea.form-input,
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; font: inherit; background: #fff; color: var(--ink);
}
.error { color: var(--danger); }
.alert {
  padding: .85rem 1rem; border-radius: 12px; margin: .8rem 0;
  border: 1px solid var(--line); background: #fff;
}
.alert-error, .alert-error { background: #fff5f4; border-color: #f3c0bb; color: var(--danger); }
.alert-warning, .alert-warning { background: #fff8f1; border-color: #f7d5a8; color: var(--warn); }
.alert-success, .alert-success { background: #f0faf4; border-color: #b7e4cb; color: var(--brand); }
.alert-info, .alert-info { background: #f0f8ff; border-color: #b7d9f0; color: var(--info); }
.messages { margin-top: 1rem; }

.panel-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; align-items: start; }
.panel-side {
  position: sticky; top: 90px; background: rgba(255,255,255,.8);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.side-user { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.side-user small { display: block; color: var(--muted); }
.badge {
  display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem;
  border-radius: 999px; background: #be123c; color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: 0 .25rem;
}
.side-menu { display: grid; gap: .35rem; }
.side-link {
  padding: .65rem .8rem; border-radius: 12px;
  color: var(--ink); font-weight: 500; display: block;
}
.side-link:hover { background: var(--brand-soft); color: var(--brand); }
.side-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  overflow: hidden;
}
.side-group > summary {
  list-style: none;
  padding: .75rem .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  font-weight: 900;
  color: var(--ink);
}
.side-group > summary::-webkit-details-marker { display: none; }
.chev {
  width: 20px; height: 20px;
  opacity: .7;
  transition: transform .2s ease;
}
.side-group[open] .chev { transform: rotate(180deg); }
.side-sub {
  padding: .25rem .25rem .55rem;
  display: grid;
  gap: .25rem;
  background: rgba(15,107,76,.04);
}
.side-sub a {
  padding: .6rem .75rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.side-sub a:hover { background: var(--brand-soft); color: var(--brand); }
.side-divider { height: 1px; background: var(--line); margin: .35rem 0 .15rem; }
.side-nav { display: grid; gap: .25rem; }
.side-nav a {
  padding: .65rem .8rem; border-radius: 12px;
  color: var(--ink); font-weight: 500; display: block;
}
.side-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.panel-main {
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; min-height: 60vh;
}
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1rem 0 1.5rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
}
.stat span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.stat strong { font-size: 1.25rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: right; padding: .75rem .6rem; border-bottom: 1px solid var(--line);
}
.table-wrap { overflow: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--brand-soft);
}
.avatar.lg { width: 84px; height: 84px; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-fallback, .avatar.placeholder {
  display: grid; place-items: center; font-weight: 700; color: var(--brand);
}
.user-cell { display: flex; gap: .7rem; align-items: center; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-row { display: flex; gap: .8rem; margin-bottom: 1rem; }
.plan-edit-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; margin-bottom: 1rem; background: #fff;
}
.checks { display: flex; gap: 1rem; flex-wrap: wrap; }
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.project-card {
  display: block; padding: 1.2rem; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: inherit; min-height: 140px;
  transition: .2s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.project-card h3 { margin: 0 0 .4rem; }

@media (max-width: 900px) {
  .hero-grid, .feature-strip, .panel-layout, .cards-row, .grid-2 { grid-template-columns: 1fr; }
  .sheet-mock { transform: none; }
  .panel-side { position: static; }
  .nav { justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
}

/* ═══════════════════════════════════════════
   ایران اس‌جی‌ام — Homepage
   ═══════════════════════════════════════════ */

.sgm-home { background: #f8faf9; }
.sgm-home .site-header {
  background: rgba(10, 15, 26, 0.72);
  border-bottom-color: rgba(255,255,255,.06);
  color: #fff;
}
.sgm-home .site-header .brand { color: #fff; }
.sgm-home .site-header .brand-text small { color: rgba(255,255,255,.55); }
.sgm-home .site-header .nav > a:not(.btn) { color: rgba(255,255,255,.72); }
.sgm-home .site-header .nav > a:not(.btn):hover { color: #fff; }
.sgm-home .site-header .btn-ghost {
  border-color: rgba(255,255,255,.18); color: #fff; background: transparent;
}
.sgm-home .site-header .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.sgm-hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  background: #0a0f1a; color: #f8fafc;
}
.sgm-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sgm-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: sgmOrb 12s ease-in-out infinite alternate;
}
.sgm-orb-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: rgba(26,154,108,.35); }
.sgm-orb-2 { width: 360px; height: 360px; bottom: -100px; right: 10%; background: rgba(99,102,241,.22); animation-delay: -4s; }
.sgm-orb-3 { width: 280px; height: 280px; top: 30%; right: -60px; background: rgba(196,92,38,.18); animation-delay: -8s; }
@keyframes sgmOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.08); }
}
.sgm-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.sgm-hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.sgm-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(26,154,108,.15); border: 1px solid rgba(26,154,108,.35);
  color: #6ee7b7; font-size: .82rem; font-weight: 600; margin-bottom: 1rem;
}
.sgm-hero-title { margin: 0 0 1rem; }
.sgm-hero-abbr {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  background: linear-gradient(120deg, #fff, #6ee7b7 60%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sgm-hero-full {
  display: block; margin-top: .35rem;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600;
  color: rgba(255,255,255,.78); letter-spacing: -0.02em;
}
.sgm-hero-lead {
  font-size: 1.08rem; line-height: 1.95; color: rgba(255,255,255,.62);
  max-width: 36rem; margin: 0;
}
.sgm-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.sgm-btn-glow { box-shadow: 0 0 40px rgba(26,154,108,.35); }
.sgm-btn-dark { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.06); }
.sgm-btn-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.sgm-hero-trust {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  font-size: .88rem; color: rgba(255,255,255,.55);
}
.sgm-hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.sgm-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #1a9a6c;
  box-shadow: 0 0 8px rgba(26,154,108,.8);
}

.sgm-dashboard {
  position: relative;
  background: rgba(17,24,39,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  animation: sgmFloat 6s ease-in-out infinite;
}
@keyframes sgmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.sgm-dash-top {
  display: flex; align-items: center; gap: .45rem;
  padding: .85rem 1rem; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sgm-dash-top span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.sgm-dash-top span:nth-child(1) { background: #ff5f57; }
.sgm-dash-top span:nth-child(2) { background: #febc2e; }
.sgm-dash-top span:nth-child(3) { background: #28c840; }
.sgm-dash-top em { margin-right: auto; font-style: normal; font-size: .82rem; color: rgba(255,255,255,.45); }
.sgm-dash-body { display: flex; min-height: 220px; }
.sgm-dash-sidebar {
  width: 56px; padding: .75rem .5rem;
  border-left: 1px solid rgba(255,255,255,.06);
  display: grid; gap: .5rem; align-content: start;
}
.sgm-dash-item {
  height: 32px; border-radius: 8px; background: rgba(255,255,255,.06);
}
.sgm-dash-item.active { background: rgba(26,154,108,.35); }
.sgm-dash-main { flex: 1; padding: 1rem; }
.sgm-dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: 1rem; }
.sgm-stat-card {
  padding: .55rem .65rem; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
}
.sgm-stat-card small { display: block; font-size: .68rem; color: rgba(255,255,255,.45); }
.sgm-stat-card strong { font-size: 1.1rem; color: #fff; }
.sgm-dash-chart {
  display: flex; align-items: flex-end; gap: .45rem; height: 90px;
}
.sgm-bar {
  flex: 1; height: var(--h, 50%);
  background: linear-gradient(180deg, #1a9a6c, rgba(26,154,108,.2));
  border-radius: 6px 6px 2px 2px;
  animation: sgmBar 2s ease both;
}
@keyframes sgmBar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}
.sgm-float {
  position: absolute; padding: .4rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  font-size: .75rem; font-weight: 600; color: #fff; white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: sgmFloatBadge 4s ease-in-out infinite;
}
.sgm-float-1 { top: 18%; left: -8%; animation-delay: 0s; }
.sgm-float-2 { bottom: 28%; right: -6%; animation-delay: -1.3s; }
.sgm-float-3 { top: 55%; left: -4%; animation-delay: -2.6s; }
@keyframes sgmFloatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sgm-stats-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; padding: 1.5rem 0;
}
.sgm-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.sgm-stat-item strong {
  display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em;
}
.sgm-stat-item span { font-size: .88rem; opacity: .85; }

.sgm-section { padding: 5rem 0; }
.sgm-section-alt { background: #fff; border-block: 1px solid var(--line); }
.sgm-section-dark {
  background: linear-gradient(180deg, #0f172a, #0a0f1a); color: #f8fafc;
}
.sgm-section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.sgm-section-head-light h2 { color: #fff; }
.sgm-section-head-light .sgm-section-lead { color: rgba(255,255,255,.6); }
.sgm-section-tag {
  display: inline-block; margin-bottom: .6rem;
  color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.sgm-section-dark .sgm-section-tag { color: #6ee7b7; }
.sgm-section-head h2 {
  margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em; line-height: 1.25;
}
.sgm-section-lead { color: var(--muted); margin: 0; line-height: 1.85; }

.sgm-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1rem;
}
.sgm-card {
  position: relative;
  padding: 1.4rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(20,32,26,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sgm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20,32,26,.1);
  border-color: rgba(15,107,76,.25);
}
.sgm-card-lg { grid-column: span 2; grid-row: span 2; }
.sgm-card-sheets { background: linear-gradient(145deg, #f0faf4, #fff); }
.sgm-card-icon { font-size: 1.8rem; margin-bottom: .6rem; }

/* Module icons */
.mod-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  color: #fff;
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mod-icon svg { width: 26px; height: 26px; }
.sgm-card:hover .mod-icon { transform: translateY(-3px) scale(1.04); }

.mod-icon--sheets { background: linear-gradient(135deg, #0f6b4c, #1a9a6c); }
.mod-icon--orgdesk { background: linear-gradient(135deg, #2563eb, #6366f1); }
.mod-icon--attend { background: linear-gradient(135deg, #dc2626, #f97316); }
.mod-icon--transport { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.mod-icon--team { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.mod-icon--billing { background: linear-gradient(135deg, #ca8a04, #eab308); color: #1a1200; }
.mod-icon--backup { background: linear-gradient(135deg, #059669, #34d399); }
.mod-icon--admin { background: linear-gradient(135deg, #475569, #94a3b8); }
.mod-icon--live { background: linear-gradient(135deg, #0f6b4c, #34d399); width: 28px; height: 28px; border-radius: 8px; margin: 0; box-shadow: none; }
.mod-icon--live svg { width: 14px; height: 14px; }
.mod-icon--gps { background: linear-gradient(135deg, #dc2626, #fb7185); width: 28px; height: 28px; border-radius: 8px; margin: 0; box-shadow: none; }
.mod-icon--gps svg { width: 14px; height: 14px; }
.mod-icon--ship { background: linear-gradient(135deg, #0891b2, #38bdf8); width: 28px; height: 28px; border-radius: 8px; margin: 0; box-shadow: none; }
.mod-icon--ship svg { width: 14px; height: 14px; }

.sgm-float { display: inline-flex; align-items: center; gap: .4rem; }
.sgm-float-icon { display: inline-flex; flex-shrink: 0; }

/* PWA install banner */
.pwa-install {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  margin-inline: auto;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(145deg, #111916, #0a0f0d);
  border: 1px solid rgba(0,217,160,.25);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  color: #e8f0eb;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.pwa-install.is-visible { transform: translateY(0); opacity: 1; }
.pwa-install-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0f6b4c, #1a9a6c);
  font-size: .65rem; font-weight: 900; color: #fff;
}
.pwa-install-body { flex: 1; min-width: 0; }
.pwa-install-body strong { display: block; font-size: .92rem; margin-bottom: .25rem; }
.pwa-install-body p { margin: 0; font-size: .8rem; color: #94a3b8; line-height: 1.6; }
.pwa-install-actions { display: flex; flex-direction: column; gap: .35rem; flex-shrink: 0; }
.pwa-install-btn {
  border: none; border-radius: 999px; padding: .45rem .85rem;
  background: linear-gradient(135deg, #00d9a0, #00b884);
  color: #000; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer;
}
.pwa-install-dismiss {
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: .4rem .75rem; background: transparent; color: #94a3b8;
  font: inherit; font-size: .78rem; cursor: pointer;
}
.pwa-install-close {
  position: absolute; top: .35rem; left: .45rem;
  background: none; border: none; color: #64748b; font-size: 1.2rem;
  cursor: pointer; line-height: 1; padding: .2rem;
}
@media (min-width: 640px) {
  .pwa-install { right: 1.5rem; left: auto; margin-inline: 0; }
}
.sgm-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.sgm-card p { margin: 0 0 .85rem; color: var(--muted); line-height: 1.75; font-size: .93rem; }
.sgm-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; padding: 0; margin: 0;
}
.sgm-tags li {
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .75rem; font-weight: 600;
}

.sgm-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  list-style: none; padding: 0; margin: 0; counter-reset: none;
}
.sgm-steps li {
  padding: 1.5rem; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.sgm-step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(26,154,108,.2); color: #6ee7b7;
  font-weight: 800; margin-bottom: .85rem;
}
.sgm-steps h3 { margin: 0 0 .45rem; color: #fff; }
.sgm-steps p { margin: 0; color: rgba(255,255,255,.58); line-height: 1.75; font-size: .93rem; }

.sgm-why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.sgm-checklist {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
}
.sgm-checklist li {
  position: relative; padding: .45rem 1.5rem .45rem 0;
  color: var(--muted); line-height: 1.6;
}
.sgm-checklist li::before {
  content: "✓"; position: absolute; right: 0; color: var(--brand); font-weight: 800;
}

.sgm-orbit {
  position: relative; width: min(360px, 100%); aspect-ratio: 1; margin-inline: auto;
}
.sgm-orbit-center {
  position: absolute; inset: 38%; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 0 40px rgba(26,154,108,.4);
  animation: sgmPulse 3s ease-in-out infinite;
}
@keyframes sgmPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(26,154,108,.35); }
  50% { box-shadow: 0 0 50px rgba(26,154,108,.55); }
}
.sgm-orbit-node {
  position: absolute; top: 50%; left: 50%;
  width: 64px; height: 64px; margin: -32px;
  display: grid; place-items: center;
  border-radius: 16px; font-size: .78rem; font-weight: 700;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(calc(var(--i) * 60deg)) translateY(-140px) rotate(calc(var(--i) * -60deg));
  animation: sgmOrbit 20s linear infinite;
}
@keyframes sgmOrbit {
  from { transform: rotate(calc(var(--i) * 60deg)) translateY(-140px) rotate(calc(var(--i) * -60deg)); }
  to { transform: rotate(calc(var(--i) * 60deg + 360deg)) translateY(-140px) rotate(calc(var(--i) * -60deg - 360deg)); }
}

.sgm-price-card { position: relative; }
.sgm-plan-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
}

.sgm-faq details {
  border: 1px solid var(--line); border-radius: 14px;
  padding: .2rem 1rem; margin-bottom: .65rem; background: #fff;
}
.sgm-faq summary {
  cursor: pointer; font-weight: 700; padding: .85rem 0;
  list-style: none;
}
.sgm-faq summary::-webkit-details-marker { display: none; }
.sgm-faq p { margin: 0 0 1rem; color: var(--muted); line-height: 1.8; }

.sgm-cta {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #0a0f1a, #0f2a22);
  color: #fff;
}
.sgm-cta-inner { text-align: center; max-width: 640px; }
.sgm-cta h2 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.sgm-cta p { color: rgba(255,255,255,.65); margin: 0 0 1.5rem; }

[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease var(--reveal-delay, 0s), transform .7s ease var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .sgm-hero-grid, .sgm-why-grid, .sgm-steps, .sgm-stats-inner { grid-template-columns: 1fr; }
  .sgm-bento { grid-template-columns: 1fr; }
  .sgm-card-lg { grid-column: span 1; grid-row: span 1; }
  .sgm-orbit { width: 280px; }
  .sgm-orbit-node { transform: rotate(calc(var(--i) * 60deg)) translateY(-110px) rotate(calc(var(--i) * -60deg)); }
  .footer-grid { grid-template-columns: 1fr; }
}
