/* =====================================================
   Intune Commander — Website Stylesheet
   ===================================================== */

/* === Variables === */
:root {
  --color-bg: #0d1117;
  --color-bg-card: #161b22;
  --color-bg-card-hover: #1c2230;
  --color-border: #30363d;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #3b82f6;
  --color-green: #238636;
  --color-green-light: #2ea043;

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(90deg, #60a5fa, #a78bfa);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Utility === */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-text-muted);
  text-decoration: none;
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.3rem;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

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

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

.btn-nav {
  background: var(--color-bg-card) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s !important;
}

.btn-nav:hover {
  background: var(--color-bg-card-hover) !important;
  border-color: var(--color-text-muted) !important;
}

/* === Hero === */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* === Window Mockup / Screenshot === */
.hero-visual {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.03);
  display: block;
}

.window-mockup {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.window-body {
  display: flex;
  height: 260px;
}

.sidebar {
  width: 190px;
  border-right: 1px solid var(--color-border);
  padding: 10px 0;
}

.sidebar-item {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  cursor: default;
}

.sidebar-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-right: 2px solid var(--color-accent-light);
}

.content-area {
  flex: 1;
  padding: 10px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 8px;
  padding: 7px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.table-row.header-row {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.table-row:not(.header-row):hover {
  background: rgba(255,255,255,0.03);
}

.table-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

/* === Preview Banner === */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(161, 98, 7, 0.12);
  border-top: 1px solid rgba(217, 119, 6, 0.3);
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.875rem;
  color: #fbbf24;
  flex-wrap: wrap;
  text-align: center;
}

.preview-banner-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.preview-banner-text {
  color: #fcd34d;
}

.preview-banner-text strong {
  color: #fbbf24;
  font-weight: 600;
}

.preview-banner-link {
  color: #f59e0b;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  text-decoration: none;
}

.preview-banner-link:hover {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
  text-decoration: none;
}

/* === Stats Bar === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 48px;
  border-right: 1px solid var(--color-border);
  flex: 1;
  max-width: 280px;
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* === Features === */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* === Multi-Cloud === */
.clouds {
  padding: 80px 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clouds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cloud-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.cloud-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.cloud-badge.commercial { background: rgba(37,99,235,0.15); color: #93c5fd; }
.cloud-badge.gcc        { background: rgba(22,163,74,0.15);  color: #86efac; }
.cloud-badge.gcchigh    { background: rgba(234,88,12,0.15);  color: #fed7aa; }
.cloud-badge.dod        { background: rgba(220,38,38,0.15);  color: #fca5a5; }

.cloud-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.cloud-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* === Object Types === */
.object-types {
  padding: 100px 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}

.tag:hover {
  border-color: var(--color-accent-light);
  color: var(--color-text);
}

/* === Get Started === */
.get-started {
  padding: 100px 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.step {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

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

.step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.step p code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--color-text);
}

.cta-box {
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Footer === */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

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

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 64px 24px 48px;
    gap: 40px;
  }

  .hero-visual {
    max-width: 100%;
    width: 100%;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    min-width: 50%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 16px;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .cta-box {
    padding: 32px 20px;
  }
}
