/* ============================================================================
   SELA — Info / Legal / Contact pages
   Adds onto style.css. Keeps the same dark theme, gradient typography,
   and particle hero as the main marketing pages.
   ============================================================================ */

/* HERO */
.info-hero {
  position: relative;
  padding: 140px 0 70px;
  overflow: hidden;
  background: var(--bg-deep, #0B0B1F);
}
.info-hero-short {
  padding: 130px 0 50px;
}
.info-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.info-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin: 18px 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.info-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

/* MAIN CONTENT */
.info-main {
  padding: 70px 0 110px;
  background: var(--bg-deep, #0B0B1F);
  color: rgba(255,255,255,0.85);
}
.info-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.info-lead {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
}
.info-h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 56px 0 16px;
  letter-spacing: -0.01em;
}
.info-h3 {
  font-size: 19px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 24px 0 10px;
}
.info-main p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
}
.info-main strong { color: #fff; }
.info-main a {
  color: #BCB5FF;
  text-decoration: underline;
  text-decoration-color: rgba(188,181,255,0.4);
  text-underline-offset: 3px;
}
.info-main a:hover { color: #fff; }
.info-closing {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 30px;
  text-align: center;
  color: #fff;
}
.info-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* PILLAR GRID (about page) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0 12px;
}
.pillar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 20px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(119,103,254,0.08), rgba(78,205,196,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.pillar-card { cursor: pointer; }
a.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(119,103,254,0.55);
  box-shadow: 0 16px 40px rgba(119,103,254,0.18);
}
.pillar-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #BCB5FF;
  margin-bottom: 8px;
}
.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* LEGAL DOC */
.legal-doc .legal-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 18px;
}
.legal-doc .legal-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
}
.legal-doc .legal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7767FE, #4ECDC4);
}

/* ============================================================================
   CONTACT PAGE — encryption simulator
   ============================================================================ */

.contact-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-shell { grid-template-columns: 1fr; }
}

.contact-info-card {
  padding: 26px 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(119,103,254,0.10), rgba(78,205,196,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  position: sticky;
  top: 110px;
}
.contact-info-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #BCB5FF;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.contact-lines li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-lines li:last-child { border-bottom: 0; }
.line-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
}
.line-value {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}
a.line-value:hover { color: #BCB5FF; }
.contact-info-foot {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}

.contact-form-card {
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

.form-row {
  margin-bottom: 18px;
  position: relative;
}
.form-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.cipher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #42FF9E;
  text-transform: uppercase;
}
.cipher-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #42FF9E;
  box-shadow: 0 0 8px #42FF9E;
  animation: cipher-pulse 1.4s ease-in-out infinite;
}
@keyframes cipher-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(119,103,254,0.7);
  background: rgba(0,0,0,0.45);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.32);
}

.select-wrap {
  position: relative;
  width: 100%;
}
.select-wrap select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.select-wrap select:focus {
  outline: none;
  border-color: rgba(119,103,254,0.7);
  background: rgba(0,0,0,0.45);
}
.select-wrap select:invalid,
.select-wrap select option[value=""][disabled] {
  color: rgba(255,255,255,0.32);
}
.select-wrap select option {
  background: #0b0b1a;
  color: #fff;
}
.select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(119,103,254,0.85);
  font-size: 12px;
  letter-spacing: 0;
}

.cipher-shadow {
  margin-top: 8px;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  border: 1px dashed rgba(119,103,254,0.35);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: #42FF9E;
  word-break: break-all;
  line-height: 1.5;
  letter-spacing: 0.5px;
  overflow: hidden;
}
.cipher-shadow:empty::before {
  content: "// ciphertext appears here as you type";
  color: rgba(255,255,255,0.28);
  font-style: italic;
}
.cipher-shadow-tall { min-height: 90px; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  font-size: 15px;
}
.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-arrow { transition: transform .2s; }
.contact-submit:hover .btn-arrow { transform: translateX(4px); }

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #FF6B6B;
  min-height: 18px;
}
.form-status.success { color: #42FF9E; }

/* ENCRYPTION OVERLAY */
.encrypt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(11, 11, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.encrypt-overlay.is-open {
  display: flex;
}
.encrypt-stage {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(160deg, rgba(119,103,254,0.18), rgba(78,205,196,0.08));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
}
.encrypt-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  opacity: 0.35;
  transition: opacity .3s;
}
.encrypt-step.is-active,
.encrypt-step.is-done {
  opacity: 1;
}
.encrypt-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #BCB5FF;
  letter-spacing: 0.1em;
}
.encrypt-step-label {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.encrypt-step-progress {
  grid-column: 2 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.encrypt-step-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7767FE, #4ECDC4, #42FF9E);
  transition: width .8s ease;
}
.encrypt-step.is-done .encrypt-step-progress span { width: 100% !important; }

.encrypt-cipher {
  margin-top: 20px;
  padding: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(66, 255, 158, 0.25);
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #42FF9E;
  max-height: 160px;
  overflow: hidden;
  word-break: break-all;
  white-space: pre-wrap;
  letter-spacing: 0.4px;
}
.encrypt-cipher:empty { display: none; }

.encrypt-success {
  display: none;
  text-align: center;
  padding: 10px 0 0;
}
.encrypt-success.is-open {
  display: block;
}
.encrypt-tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}
.encrypt-success h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.encrypt-success p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 18px;
}
.encrypt-success .btn-outline {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}
.encrypt-success .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
  .info-hero { padding: 120px 0 50px; }
  .contact-form-card { padding: 22px 18px; }
  .contact-info-card { position: static; }
}

/* ============================================================================
   THEME OVERRIDES — info-pages text + form surfaces are full of hardcoded
   white-on-dark; the rules below remap them to theme tokens for Light +
   Grayscale.
   ============================================================================ */

:root[data-theme="light"] .info-hero,
:root[data-theme="light"] .info-main,
:root[data-theme="grayscale"] .info-hero,
:root[data-theme="grayscale"] .info-main {
  background: var(--bg-deep);
  color: var(--text-primary);
}
:root[data-theme="light"] .info-title,
:root[data-theme="grayscale"] .info-title { color: var(--text-primary); }
:root[data-theme="light"] .info-subtitle,
:root[data-theme="grayscale"] .info-subtitle { color: var(--text-secondary); }
:root[data-theme="light"] .info-lead,
:root[data-theme="grayscale"] .info-lead { color: var(--text-primary); }
:root[data-theme="light"] .info-h2,
:root[data-theme="grayscale"] .info-h2 { color: var(--text-primary); }
:root[data-theme="light"] .info-h3,
:root[data-theme="grayscale"] .info-h3 { color: var(--text-primary); }
:root[data-theme="light"] .info-main p,
:root[data-theme="grayscale"] .info-main p { color: var(--text-secondary); }
:root[data-theme="light"] .info-main strong,
:root[data-theme="grayscale"] .info-main strong { color: var(--text-primary); }
:root[data-theme="light"] .info-main a,
:root[data-theme="grayscale"] .info-main a {
  color: var(--primary);
  text-decoration-color: rgba(var(--primary-rgb), 0.5);
}
:root[data-theme="light"] .info-main a:hover,
:root[data-theme="grayscale"] .info-main a:hover { color: var(--primary-dark); }
:root[data-theme="light"] .info-closing,
:root[data-theme="grayscale"] .info-closing { color: var(--text-primary); }

/* Pillar grid */
:root[data-theme="light"] .pillar-grid .pillar-card,
:root[data-theme="grayscale"] .pillar-grid .pillar-card {
  background: linear-gradient(155deg, rgba(var(--primary-rgb), 0.08), rgba(var(--teal-rgb), 0.04));
  border-color: var(--border);
}
:root[data-theme="light"] a.pillar-card:hover,
:root[data-theme="grayscale"] a.pillar-card:hover {
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.16);
}
:root[data-theme="light"] .pillar-tag,
:root[data-theme="grayscale"] .pillar-tag { color: var(--primary); }
:root[data-theme="light"] .pillar-grid .pillar-card h3,
:root[data-theme="grayscale"] .pillar-grid .pillar-card h3 { color: var(--text-primary); }
:root[data-theme="light"] .pillar-grid .pillar-card p,
:root[data-theme="grayscale"] .pillar-grid .pillar-card p { color: var(--text-secondary); }

/* Legal list */
:root[data-theme="light"] .legal-doc .legal-list li,
:root[data-theme="grayscale"] .legal-doc .legal-list li { color: var(--text-secondary); }
:root[data-theme="light"] .legal-doc .legal-list li::before,
:root[data-theme="grayscale"] .legal-doc .legal-list li::before {
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

/* Contact card */
:root[data-theme="light"] .contact-info-card,
:root[data-theme="grayscale"] .contact-info-card {
  background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.10), rgba(var(--teal-rgb), 0.05));
  border-color: var(--border);
}
:root[data-theme="light"] .contact-info-card h3,
:root[data-theme="grayscale"] .contact-info-card h3 { color: var(--primary); }
:root[data-theme="light"] .contact-lines li,
:root[data-theme="grayscale"] .contact-lines li {
  border-bottom-color: var(--border);
}
:root[data-theme="light"] .line-label,
:root[data-theme="grayscale"] .line-label { color: var(--text-tertiary); }
:root[data-theme="light"] .line-value,
:root[data-theme="grayscale"] .line-value { color: var(--text-primary); }
:root[data-theme="light"] a.line-value:hover,
:root[data-theme="grayscale"] a.line-value:hover { color: var(--primary); }
:root[data-theme="light"] .contact-info-foot,
:root[data-theme="grayscale"] .contact-info-foot { color: var(--text-tertiary); }

/* Form */
:root[data-theme="light"] .contact-form-card,
:root[data-theme="grayscale"] .contact-form-card {
  background: var(--bg-card-strong);
  border-color: var(--border);
}
:root[data-theme="light"] .form-row label,
:root[data-theme="grayscale"] .form-row label { color: var(--text-secondary); }
:root[data-theme="light"] .form-row input,
:root[data-theme="light"] .form-row textarea,
:root[data-theme="grayscale"] .form-row input,
:root[data-theme="grayscale"] .form-row textarea {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-primary);
}
:root[data-theme="light"] .form-row input:focus,
:root[data-theme="light"] .form-row textarea:focus,
:root[data-theme="grayscale"] .form-row input:focus,
:root[data-theme="grayscale"] .form-row textarea:focus {
  background: var(--bg-input-focus);
  border-color: rgba(var(--primary-rgb), 0.7);
}
:root[data-theme="light"] .form-row input::placeholder,
:root[data-theme="light"] .form-row textarea::placeholder,
:root[data-theme="grayscale"] .form-row input::placeholder,
:root[data-theme="grayscale"] .form-row textarea::placeholder {
  color: var(--text-tertiary);
}
:root[data-theme="light"] .select-wrap select,
:root[data-theme="grayscale"] .select-wrap select {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-primary);
}
:root[data-theme="light"] .select-wrap select:focus,
:root[data-theme="grayscale"] .select-wrap select:focus {
  background: var(--bg-input-focus);
  border-color: rgba(var(--primary-rgb), 0.7);
}
:root[data-theme="light"] .select-wrap select option,
:root[data-theme="grayscale"] .select-wrap select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}
:root[data-theme="light"] .select-caret,
:root[data-theme="grayscale"] .select-caret {
  color: rgba(var(--primary-rgb), 0.85);
}
:root[data-theme="light"] .cipher-shadow,
:root[data-theme="grayscale"] .cipher-shadow {
  background: var(--bg-input);
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--neon-green);
}
:root[data-theme="light"] .cipher-shadow:empty::before,
:root[data-theme="grayscale"] .cipher-shadow:empty::before {
  color: var(--text-tertiary);
}
:root[data-theme="light"] .cipher-badge,
:root[data-theme="grayscale"] .cipher-badge { color: var(--neon-green); }
:root[data-theme="light"] .cipher-dot,
:root[data-theme="grayscale"] .cipher-dot {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}
:root[data-theme="light"] .form-note,
:root[data-theme="grayscale"] .form-note { color: var(--text-tertiary); }
:root[data-theme="light"] .form-status,
:root[data-theme="grayscale"] .form-status { color: var(--coral-red); }
:root[data-theme="light"] .form-status.success,
:root[data-theme="grayscale"] .form-status.success { color: var(--neon-green); }

/* Encryption overlay backdrop */
:root[data-theme="light"] .encrypt-overlay,
:root[data-theme="grayscale"] .encrypt-overlay {
  background: var(--bg-modal-overlay);
}
