/*
 * Identity Lock stylesheet
 *
 * This file defines the dark SaaS theme used across the Identity Lock MVP.
 * A red accent (#e02a26) is used for primary actions. Text and surfaces are
 * designed for high contrast and readability. The layout is responsive,
 * collapsing gracefully on smaller devices.
 */

/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.5;
}

a {
    color: #e02a26;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and navigation */
.site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav a {
    color: #cccccc;
    font-weight: normal;
}

.main-nav a:hover {
    color: #ffffff;
}

/* Hero section */
.hero {
    background-color: #1f1f1f;
    text-align: center;
    padding: 80px 20px;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #cccccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.requirement {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #e02a26;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: #c51f1b;
}

.btn-secondary {
    background-color: #333333;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #444444;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section.alt {
    background-color: #1a1a1a;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.feature-list {
    list-style: none;
    line-height: 1.6;
}

.feature-list li {
    margin-bottom: 10px;
}

.how-list {
    counter-reset: step;
    list-style: none;
}

.how-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.how-list li:before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: #e02a26;
    color: #fff;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
}

.pricing-card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-card .big {
    font-size: 2.5rem;
}

.trial-note {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.faq-item + .faq-item {
    margin-top: 20px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.faq-item p {
    font-size: 0.95rem;
    color: #cccccc;
}

.cta-section {
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p {
    margin-bottom: 25px;
    color: #cccccc;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.site-footer p {
    font-size: 0.85rem;
    color: #888888;
}

/* Dashboard */
.dashboard-main {
    padding: 60px 0;
}

.dashboard-container {
    max-width: 720px;
    margin: 0 auto;
}

.card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #ffffff;
}

.token-display {
    font-family: monospace;
    background-color: #262626;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    word-break: break-all;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.token-hint {
    font-size: 0.85rem;
    color: #888888;
    margin-top: 5px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    background-color: #333;
    color: #fff;
}

.badge-trial {
    background-color: #e02a26;
    color: #fff;
}

.badge-pro {
    background-color: #2e7d32;
    color: #fff;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #3b1e20;
    color: #f58c8c;
    border: 1px solid #e02a26;
}

/* Auth pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.auth-container {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.auth-container h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.6rem;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #cccccc;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #262626;
    color: #e0e0e0;
}

.auth-note {
    font-size: 0.85rem;
    color: #888888;
    margin-top: 10px;
    text-align: center;
}

/* Legal pages */
.legal-page {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #ffffff;
}

.legal-page p {
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 0.95rem;
}

.legal-footer {
    margin-top: 30px;
}

/* ----------------------------------------------------------------------
 * Landing page enhancements (imported from template in Pasted text (2).txt)
 * These styles define variables and components for the new landing page
 * design, including hero layout, feature cards, pricing cards and FAQ
 * sections. They are appended to avoid interfering with existing pages.
 */

:root {
  --bg: #08080b;
  --panel: #111118;
  --panel-2: #171720;
  --text: #f8f8fb;
  --muted: #b8b8c7;
  --red: #e02a26;
  --red-dark: #a91f1c;
  --line: rgba(255,255,255,0.12);
  --gold: #f7c85f;
}

/* Base resets for new design */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,11,0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.logo span {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 14px 36px rgba(224,42,38,0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.hero {
  padding: 30px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .9;
  letter-spacing: -0.075em;
  margin: 0 0 24px;
  max-width: 780px;
}

.hero p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 610px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.note {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 18px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mock-img {
  aspect-ratio: 1 / 1.22;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)),
    radial-gradient(circle at 50% 28%, #6d3d36 0 12%, transparent 13%),
    radial-gradient(circle at 50% 43%, #1f1f27 0 19%, transparent 20%),
    linear-gradient(135deg, #252535, #101017);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.mock-img:after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: .72rem;
  font-weight: 800;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12);
  padding: 6px 9px;
  border-radius: 999px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.price-card,
.steps li {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.feature h3,
.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature p,
.price-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.steps li {
  position: relative;
}

.steps li:before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--red);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card.featured {
  border-color: rgba(224,42,38,.7);
  box-shadow: 0 0 0 1px rgba(224,42,38,.28), 0 28px 80px rgba(224,42,38,.16);
}

.price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin: 18px 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 700;
}

ul.clean {
  padding: 0;
  list-style: none;
  margin: 22px 0 26px;
}

ul.clean li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(224,42,38,.22), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 54px 28px;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.1rem;
}

footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .hero-grid,
  .features,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  h1 {
    font-size: 3.4rem;
  }
}

.seo-text {
  max-width: 860px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 850px) {
  .faq {
    grid-template-columns: 1fr;
  }
}