/* Securin Platform — landing page styles
   Palette and typography per skills/_shared/brand.md */

:root {
  --primary: #712880;
  --primary-dark: #453983;
  --accent-1: #542ade;
  --accent-2: #987bf7;
  --accent-3: #d7cbfb;
  --bg: #ffffff;
  --bg-soft: #faf7ff;
  --text: #111111;
  --text-soft: #4a4a4a;
  --border: rgba(113, 40, 128, 0.12);
  --shadow-sm: 0 1px 2px rgba(69, 57, 131, 0.06), 0 1px 3px rgba(69, 57, 131, 0.05);
  --shadow-md: 0 4px 12px rgba(69, 57, 131, 0.08), 0 2px 4px rgba(69, 57, 131, 0.04);
  --shadow-lg: 0 12px 32px rgba(69, 57, 131, 0.12), 0 4px 8px rgba(69, 57, 131, 0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-1); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code, pre {
  font-family: "JetBrains Mono", "SF Mono", "Monaco", "Consolas", "Cascadia Code", monospace;
  font-size: 0.92em;
}

code {
  background: var(--accent-3);
  color: var(--primary-dark);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

pre {
  background: #1a1033;
  color: #e7e0ff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0;
  font-size: 0.88em;
  line-height: 1.55;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 400;
}

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---- Top nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  padding: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-1);
  text-decoration: none;
}

.nav-cta img {
  display: block;
  height: 18px;
  width: 18px;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(152, 123, 247, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--accent-2) 0%, transparent 8%),
    radial-gradient(circle at 80% 70%, var(--accent-3) 0%, transparent 12%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-secondary {
  background: #fff;
}

.btn img {
  height: 18px;
  width: auto;
}

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

.hero-meta strong { color: var(--primary); }

/* ---- Feature grid ---- */

.features {
  padding-top: 5rem;
}

.features h2 {
  text-align: center;
  margin-bottom: 0.5em;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.feature-card h3 {
  margin-bottom: 0.5em;
}

.feature-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- Install tabs ---- */

.install h2 { text-align: center; }

.tabs {
  margin-top: 2rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.tab-button {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.tab-button img {
  height: 16px;
  width: auto;
}

.tab-button:hover {
  border-color: var(--accent-2);
  color: var(--primary);
}

.tab-button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-button[aria-selected="true"] img {
  filter: brightness(0) invert(1);
}

.tab-panel {
  display: none;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

.tab-panel h3 {
  margin-top: 0;
}

.tab-panel ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.tab-panel ol li { margin-bottom: 0.5rem; }

.tab-panel .note {
  font-size: 0.88rem;
  color: var(--text-soft);
  background: #fff;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
}

/* ---- Code block w/ copy button ---- */

.code-wrap {
  position: relative;
  margin: 0.75rem 0;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e7e0ff;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.copy-btn.copied {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* ---- Skills table ---- */

.skills h2 { text-align: center; }

.skills-table {
  margin-top: 2rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skills-table th, .skills-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.skills-table tr:last-child td { border-bottom: none; }

.skills-table th {
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skills-table td:first-child {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.skills-table td em {
  color: var(--accent-1);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 720px) {
  .skills-table { font-size: 0.92rem; }
  .skills-table th, .skills-table td { padding: 0.85rem 1rem; }
  .skills-table td:first-child { font-size: 0.84rem; }
}

/* ---- Auth section ---- */

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.auth-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.auth-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-3);
  color: var(--primary-dark);
  margin-left: auto;
}

.auth-card.recommended {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.auth-card.recommended .badge {
  background: var(--primary);
  color: #fff;
}

.auth-card p {
  color: var(--text-soft);
}

/* ---- CTA bottom ---- */

.cta-bottom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
  border: none;
}

.cta-bottom h2 {
  color: #fff;
  margin-bottom: 0.5em;
}

.cta-bottom p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-bottom .btn {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
}

.cta-bottom .btn:hover {
  background: var(--accent-3);
  color: var(--primary);
}

/* ---- Footer ---- */

.footer {
  background: #0d0820;
  color: #b8b1d9;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img { height: 24px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #b8b1d9;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  color: #6f689a;
  font-size: 0.85rem;
}

/* ---- Utilities ---- */

.kbd {
  display: inline-block;
  padding: 0.1em 0.4em;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85em;
  color: var(--primary-dark);
  font-weight: 600;
}

.muted { color: var(--text-soft); }
.muted-center { color: var(--text-soft); text-align: center; margin-bottom: 1.5rem; }

/* ---- Stats strip (hero) ---- */

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ---- Pillars (deck slide 2) ---- */

.pillars h2 { text-align: center; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.pillar-card {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.pillar-card h3 {
  margin-bottom: 0.4em;
}

.pillar-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- Ask grid (deck slide 4 — Real work, on day one) ---- */

.row-label {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-1);
  font-weight: 700;
}

.ask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ask-card {
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ask-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ask-quote {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 0.6em;
  line-height: 1.35;
}

.ask-desc {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.all-skills {
  margin-top: 2.5rem;
}

.all-skills > summary {
  cursor: pointer;
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  list-style: none;
  user-select: none;
}

.all-skills > summary::-webkit-details-marker { display: none; }

.all-skills > summary::after {
  content: " ▾";
  color: var(--accent-1);
}

.all-skills[open] > summary::after {
  content: " ▴";
}

/* ---- Three-step install (deck slide 5) ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 3rem;
}

.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-block;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-1);
  background: var(--accent-3);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 0.4em;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.install-sub {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.4em;
}
