/* ==========================================================================
   LORENGRAFF Auth — Modern Stylesheet
   Domain: app.auth.lorengraff.net
   Zero-Knowledge 2FA Authenticator for iOS, iPadOS, macOS and watchOS
   ========================================================================== */

:root {
  /* Color Scheme declaration according to modern web guidance */
  color-scheme: dark light;

  /* Brand Palette (Hex #41B40F / RGB 65, 180, 15) */
  --brand-green: #41b40f;
  --brand-green-hover: #379a0d;
  --brand-green-glow: rgba(65, 180, 15, 0.28);
  --brand-cyan: #0ea5e9;
  --brand-cyan-glow: rgba(14, 165, 233, 0.25);

  /* Dark Theme Tokens (Default) */
  --bg-primary: #070a11;
  --bg-secondary: #0d121f;
  --bg-surface: rgba(19, 27, 46, 0.7);
  --bg-surface-elevated: #161f36;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(65, 180, 15, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --header-bg: rgba(7, 10, 17, 0.82);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --content-width: 860px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px var(--brand-green-glow);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-elevated: #ffffff;
    --border-subtle: rgba(0, 0, 0, 0.09);
    --border-active: rgba(65, 180, 15, 0.6);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --header-bg: rgba(248, 250, 252, 0.85);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  }
}

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

html {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  accent-color: var(--brand-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-name {
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hover));
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--brand-green-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(65, 180, 15, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(65, 180, 15, 0.15) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(65, 180, 15, 0.12);
  color: var(--brand-green);
  border: 1px solid rgba(65, 180, 15, 0.3);
}

.badge-cyan {
  background: rgba(14, 165, 233, 0.12);
  color: var(--brand-cyan);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hover));
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 6px 24px var(--brand-green-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(65, 180, 15, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
}

.hero-media {
  position: relative;
  margin: 20px auto 0;
  max-width: 1060px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 60px rgba(65, 180, 15, 0.12);
  border: 1px solid var(--border-subtle);
}

.hero-media img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Features & Pillars
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  color: var(--brand-green);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md), 0 0 24px var(--brand-green-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(65, 180, 15, 0.12);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(65, 180, 15, 0.25);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Showcase Split Row
   ========================================================================== */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.split-row.reverse {
  direction: rtl;
}

.split-row.reverse > * {
  direction: ltr;
}

.split-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.split-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.feature-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-green);
  margin-top: 3px;
}

.feature-item strong {
  color: var(--text-primary);
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-smooth);
}

.split-media:hover {
  transform: scale(1.015);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

details.faq-item[open] {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

summary.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-green);
  transition: transform var(--transition-fast);
}

details[open] summary.faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Legal & Document Pages (Privacy, EULA, Legal, Support)
   ========================================================================== */
.legal-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-meta strong {
  color: var(--text-secondary);
}

.doc-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.doc-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.doc-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 26px 0 12px;
}

.doc-body p {
  margin-bottom: 18px;
}

.doc-body ul, .doc-body ol {
  margin: 0 0 20px 28px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body strong {
  color: var(--text-primary);
}

.doc-callout {
  background: rgba(65, 180, 15, 0.08);
  border-left: 4px solid var(--brand-green);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.98rem;
}

.doc-callout strong {
  color: var(--brand-green);
}

/* ==========================================================================
   Support Form & Cards
   ========================================================================== */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.support-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.support-card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Utility Classes (DevSecOps: Eliminates inline style attributes for strict CSP)
   ========================================================================== */
.text-link {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--brand-green-hover);
}

.list-sub {
  margin: 8px 0 8px 24px;
}

.footer-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card-subtext {
  color: var(--text-secondary);
  margin: 8px 0 16px;
  font-size: 0.95rem;
}

.btn-compact {
  font-size: 0.85rem;
  padding: 8px 16px;
}

.error-section {
  text-align: center;
  padding: 80px 0 60px;
}

.error-code {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-desc {
  max-width: 500px;
  margin: 0 auto 32px;
}
@media (max-width: 900px) {
  .split-row,
  .split-row.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split-row.reverse {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-list {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0 40px;
  }
}
