/* =====================================================================
   AWESOME CONNECTED THINGS SECURITY — site theme
   ===================================================================== */

/* Material palette overrides */
:root {
  --md-primary-fg-color: #ff1744;
  --md-primary-fg-color--light: #ff5252;
  --md-primary-fg-color--dark: #d50000;
  --md-accent-fg-color: #ff1744;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0a0e1a;
  --md-default-bg-color--light: #131829;
  --md-default-fg-color: #e6e9ef;
  --md-default-fg-color--light: #b8c0d0;
  --md-default-fg-color--lighter: #8b95ad;
  --md-code-bg-color: #131829;
  --md-code-fg-color: #e6e9ef;
}

/* =====================================================================
   LANDING PAGE — full-bleed, escapes Material's narrow column
   The .iotsec-landing wrapper is injected by overrides/main.html.
   ===================================================================== */

.iotsec-landing {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
}

/* Strip Material chrome on landing */
.iotsec-landing ~ * .md-content,
.md-content:has(.iotsec-landing) { padding: 0 !important; max-width: none !important; }
.md-main:has(.iotsec-landing) .md-main__inner { margin: 0 !important; max-width: none !important; padding: 0 !important; }
.md-main:has(.iotsec-landing) .md-grid { max-width: none !important; }
.md-main:has(.iotsec-landing) .md-content__inner { margin: 0 !important; padding: 0 !important; }
.md-main:has(.iotsec-landing) .md-content__inner::before { display: none !important; }
.md-main:has(.iotsec-landing) .md-sidebar { display: none !important; }
body:has(.iotsec-landing) .md-typeset h1:first-of-type { display: none; }

/* Container for inner content */
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* =====================================================================
   HERO
   ===================================================================== */
.lp-hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 20% 0%, rgba(255,23,68,0.18), transparent 50%),
    radial-gradient(600px circle at 80% 20%, rgba(0,229,255,0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.lp-hero > * { position: relative; z-index: 1; }

.lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,23,68,0.10); border: 1px solid rgba(255,23,68,0.30);
  color: #ff5252; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; margin-bottom: 24px;
}
.lp-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900; line-height: 1.05; letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.lp-grad {
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 50%, #ff6e40 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead {
  font-size: 20px; color: var(--md-default-fg-color--light);
  max-width: 680px; margin: 0 auto 36px; line-height: 1.5;
}
.lp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lp-btn-primary {
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 100%);
  color: #0a0e1a !important;
  box-shadow: 0 4px 24px rgba(255,23,68,0.4);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255,23,68,0.5); }
.lp-btn-secondary {
  background: transparent; color: var(--md-default-fg-color);
  border: 1px solid rgba(255,255,255,0.12);
}
.lp-btn-secondary:hover { border-color: rgba(255,255,255,0.3); }

.lp-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 60px; flex-wrap: wrap;
}
.lp-stat { text-align: center; }
.lp-num {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, #ff1744, #ff6e40);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lbl {
  color: var(--md-default-fg-color--lighter);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px;
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.lp-section { padding: 80px 0; position: relative; }
.lp-section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,23,68,0.04), transparent);
}
.lp-tag {
  color: #ff5252; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.lp-h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; margin: 0 0 14px;
}
.lp-sub {
  color: var(--md-default-fg-color--light); font-size: 17px;
  max-width: 600px; margin: 0 0 48px;
}

/* Grids */
.lp-grid { display: grid; gap: 20px; }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =====================================================================
   CARDS (paths)
   ===================================================================== */
.lp-card {
  display: block; text-decoration: none; color: inherit !important;
  background: #131829;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 28px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.lp-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,23,68,0.08) 100%);
  opacity: 0; transition: opacity 0.2s;
}
.lp-card:hover { transform: translateY(-4px); border-color: #ff1744; }
.lp-card:hover::before { opacity: 1; }
.lp-card > * { position: relative; z-index: 1; }
.lp-card-icon { font-size: 32px; margin-bottom: 12px; }
.lp-card-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.lp-card-desc { color: var(--md-default-fg-color--light); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.lp-card-meta {
  display: flex; gap: 12px; font-size: 12px;
  color: var(--md-default-fg-color--lighter);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}

/* Topic tiles */
.lp-tile {
  display: block; text-decoration: none; color: inherit !important;
  background: #131829;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 28px;
  text-align: center; transition: all 0.2s;
}
.lp-tile:hover { background: #1a2138; border-color: #ff1744; transform: translateY(-2px); }
.lp-tile-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.lp-tile-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lp-tile-sub { color: var(--md-default-fg-color--lighter); font-size: 12px; line-height: 1.5; }

/* =====================================================================
   WEEKLY PICKS
   ===================================================================== */
.lp-picks { display: flex; flex-direction: column; gap: 14px; }
.lp-pick {
  display: flex; align-items: center; gap: 18px;
  background: #131829;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 24px;
  text-decoration: none; color: inherit !important;
  transition: all 0.2s;
}
.lp-pick:hover { background: #1a2138; border-color: #ff1744; }
.lp-pick-tag {
  flex-shrink: 0;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.lp-pick-hot { background: rgba(255,23,68,0.15); color: #ff5252; }
.lp-pick-new { background: rgba(0,229,255,0.15); color: #00e5ff; }
.lp-pick-research { background: rgba(255,214,0,0.15); color: #ffd600; }
.lp-pick-body { flex: 1; }
.lp-pick-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.lp-pick-desc { color: var(--md-default-fg-color--light); font-size: 13px; }
.lp-pick-arrow { color: var(--md-default-fg-color--lighter); font-size: 18px; }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.lp-cta {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(255,23,68,0.06));
}

/* =====================================================================
   DOCS PAGES — card grids reused for /start-here, /wireless etc
   ===================================================================== */
.md-typeset .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.md-typeset .card {
  background: #131829; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 1.5rem;
  transition: transform 0.15s, border-color 0.15s;
  display: block; text-decoration: none; color: inherit;
}
.md-typeset .card:hover { transform: translateY(-3px); border-color: #ff1744; }
.md-typeset .card .icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.md-typeset .card .name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.md-typeset .card .desc { color: var(--md-default-fg-color--light); font-size: 0.875rem; margin-bottom: 0.75rem; }
.md-typeset .card .meta {
  display: flex; gap: 0.75rem; font-size: 0.75rem;
  color: var(--md-default-fg-color--lighter);
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.6rem;
}

/* CVE table styling */
.md-typeset table.cves td code, .md-typeset table.cves td a.cve {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: #00e5ff;
}
.lvl { padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.lvl-b { background: rgba(0,230,118,0.15); color: #00e676; }
.lvl-i { background: rgba(255,214,0,0.15); color: #ffd600; }
.lvl-a { background: rgba(255,23,68,0.15); color: #ff1744; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 880px) {
  .lp-grid-3 { grid-template-columns: 1fr 1fr; }
  .lp-pick { flex-direction: column; align-items: flex-start; }
  .lp-pick-arrow { display: none; }
}
@media (max-width: 560px) {
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-hero { padding: 60px 0 40px; }
  .lp-section { padding: 60px 0; }
  .lp-stats { gap: 24px; }
}
