/* =========================== */
/* Locke Website - Main Styles */
/* =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* =========================== */
/* BASE STYLES                 */
/* =========================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1F2937;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
}

::selection {
  background-color: #0891b2;
  color: white;
}

/* =========================== */
/* BACKGROUNDS & PATTERNS      */
/* =========================== */

/* Primary gradient background */
.bg-locke-gradient {
  background-image: linear-gradient(90deg, #E0EFFF 0%, #FEF8E0 100%);
}

/* Dot grid textures */
.dot-grid-light {
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Cream section with dot pattern */
.cream-section {
  background-color: #FAFAFA;
  background-image: radial-gradient(circle, #d8d8d8 0.5px, transparent 0.5px);
  background-size: 12px 12px;
  border-radius: 32px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Diagonal lines pattern */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.03) 8px,
    rgba(0, 0, 0, 0.03) 9px
  );
}

.diagonal-lines-dark {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.03) 8px,
    rgba(255, 255, 255, 0.03) 9px
  );
}

/* =========================== */
/* ELEGANT DIVIDERS            */
/* =========================== */

.elegant-divider {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.elegant-divider img {
  height: 16px;
  width: auto;
}

.elegant-divider-lg img {
  height: 24px;
}

/* =========================== */
/* SCROLLING TICKER            */
/* =========================== */

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
}

.ticker {
  display: flex;
  width: fit-content;
  animation: ticker 25s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 24px;
}

.ticker-item span {
  margin: 0 12px;
}

.ticker-text {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(55, 65, 81, 0.6);
}

.ticker-separator {
  opacity: 0.7;
  color: #374151;
  font-size: 12px;
  vertical-align: middle;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker:hover {
  animation-play-state: paused;
}

/* =========================== */
/* ANIMATED CTA BUTTONS        */
/* =========================== */

/* Rotating border animation */
@keyframes border-rotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Primary CTA - Teal with animated border on hover */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 15px;
  color: white;
  background: #0891b2;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), #0e7490 0deg, #0e7490 140deg, #a5f3fc 180deg, #0e7490 220deg, #0e7490 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: border-rotate 4s linear infinite;
}

.btn-primary:hover {
  background: transparent;
  color: #0e7490;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Secondary CTA - Dark with animated border on hover */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 15px;
  color: white;
  background: #1f2937;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), #374151 0deg, #374151 140deg, #d1d5db 180deg, #374151 220deg, #374151 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: border-rotate 6s linear infinite;
}

.btn-secondary:hover {
  background: transparent;
  color: #1f2937;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Outline CTA */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 27px;
  font-weight: 500;
  font-size: 15px;
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-out;
  cursor: pointer;
}

.btn-outline:hover {
  background: white;
  border-color: #0891b2;
  color: #0891b2;
}

/* Ghost CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 27px;
  font-weight: 500;
  font-size: 15px;
  color: #374151;
  background: transparent;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-out;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: #0891b2;
  color: #0891b2;
}

/* Button icon animation */
.btn-icon {
  font-size: 18px;
  transition: transform 0.15s ease-out;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon,
.btn-outline:hover .btn-icon,
.btn-ghost:hover .btn-icon {
  transform: translateX(3px);
}

/* =========================== */
/* LINK WITH ARROW             */
/* =========================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.link-arrow-text {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.link-arrow .material-icons {
  font-size: 1em;
  transition: transform 0.15s ease-out;
}

.link-arrow:hover .material-icons {
  transform: translateX(4px);
}

/* Light variant for dark backgrounds */
.link-arrow-light {
  color: rgba(255, 255, 255, 0.85);
}

.link-arrow-light .link-arrow-text {
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.link-arrow-light:hover {
  color: white;
}

.link-arrow-light:hover .link-arrow-text {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* =========================== */
/* ENTRANCE ANIMATIONS         */
/* =========================== */

.animate {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Animation variants */
.animate-fade-up { transform: translateY(32px); }
.animate-fade-in { transform: translateY(0); }
.animate-fade-left { transform: translateX(-40px); }
.animate-fade-right { transform: translateX(40px); }
.animate-scale-up { transform: scale(0.95); }
.animate-fade-up-subtle { transform: translateY(16px); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* Speed variants */
.animate-slow { transition-duration: 0.9s; }
.animate-fast { transition-duration: 0.5s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================== */
/* FAQ ACCORDION               */
/* =========================== */

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::before {
  content: '~';
  margin-right: 8px;
  font-family: serif;
}

/* =========================== */
/* SECURITY MODEL SLIDER       */
/* =========================== */

.security-slide-btn {
  background-color: transparent;
  color: #6b7280;
  border: none;
  cursor: pointer;
}

.security-slide-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.security-slide-btn.active {
  background-color: white;
  color: #0891b2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.security-slide {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.security-slide.active {
  opacity: 1;
}

.security-dot {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.security-dot:hover {
  background-color: #9ca3af;
}

.security-dot.active,
.security-dot[data-slide].bg-cyan-500 {
  background-color: #0891b2;
}

/* =========================== */
/* ROADMAP STEPS               */
/* =========================== */

.roadmap-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 66px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke-width: 1.3px;
  -webkit-text-stroke-color: #000;
  stroke-width: 1.3px;
  stroke: #000;
}

.roadmap-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 66px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke-width: 1.3px;
  -webkit-text-stroke-color: #000;
  stroke-width: 1.3px;
  stroke: #000;
}

.roadmap-connector {
  width: 1px;
  height: 60px;
  margin: 1.5rem auto;
  background-image: linear-gradient(to bottom, #9ca3af 50%, transparent 50%);
  background-size: 1px 8px;
}

/* =========================== */
/* FEATURE GRID FADE-IN        */
/* =========================== */

.fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================== */
/* DOTTED BORDER CARDS         */
/* =========================== */

.dotted-border {
  border: 1px dashed #d1d5db;
}

/* =========================== */
/* DOWNLOAD CARDS              */
/* =========================== */

.download-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.download-card:hover .download-icon {
  transform: scale(1.05);
}

.download-icon {
  transition: transform 0.2s ease;
}

/* =========================== */
/* CODE BLOCKS              */
/* =========================== */
.algo-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.algo-card code {
  font-family: 'JetBrains Mono', monospace;
}

/* =========================== */
/* PROSE / LEGAL PAGES         */
/* =========================== */

.prose h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.prose h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #0e7490;
}

/* =========================== */
/* WHITEPAPER STYLES           */
/* =========================== */

.whitepaper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.8;
}

.whitepaper h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.whitepaper h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.whitepaper h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.whitepaper p {
  margin-bottom: 1.25rem;
}

.whitepaper a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whitepaper a:hover {
  color: #0e7490;
}

.whitepaper code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.whitepaper pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.whitepaper ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.whitepaper ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.whitepaper ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.whitepaper ul li {
  margin-bottom: 0.5rem;
}

.whitepaper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.whitepaper table th,
.whitepaper table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.whitepaper table th {
  background: #f9fafb;
  font-weight: 600;
}

.whitepaper sup {
  font-size: 0.75em;
  vertical-align: super;
}

/* =========================== */
/* FEATURE PAGE STYLES         */
/* =========================== */

/* FAQ chevron rotation */
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Lock animation for Secure Inbox */
@keyframes lock-snap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.lock-animate:hover .lock-icon {
  animation: lock-snap 0.3s ease;
}

/* Floating animation for Auto Categorization */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-1 { animation: float 3s ease-in-out infinite; }
.float-2 { animation: float 3s ease-in-out infinite 0.5s; }
.float-3 { animation: float 3s ease-in-out infinite 1s; }
.float-4 { animation: float 3s ease-in-out infinite 1.5s; }
.float-5 { animation: float 3s ease-in-out infinite 2s; }

/* Dot grid variant (denser) */
.dot-grid {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Entropy bar for Fuzzypass */
.entropy-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #10b981 66%, #0891b2 100%);
}

/* Light button for dark backgrounds */
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 15px;
  color: #1f2937;
  background: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-light:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* Download card for browser extension page */
.download-card {
  transition: all 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.download-card:hover .download-icon {
  color: #0891b2;
}

.download-icon {
  transition: color 0.2s ease, filter 0.2s ease;
}

/* Grayscale icon that turns to color on hover */
.icon-grayscale {
  filter: grayscale(1);
  transition: filter 0.2s ease;
}

.download-card:hover .icon-grayscale {
  filter: grayscale(0);
}

/* Note: Lightbox styles are in components/lightbox.js */
