﻿/* ── Reset & Cursor Hide ─────────────────────────── */
*, *::before, *::after, html, body, button, input, select, textarea, label, a {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}
input, textarea { cursor: text; }
button { font-family: inherit; border: none; background: none; }
input { font-family: inherit; }

@media (hover: none), (pointer: coarse) {
  *, *::before, *::after, html, body, button, input, select, textarea, label, a { cursor: auto !important; }
  #shift-cursor, #shift-trail { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, html, body, button, input, select, textarea, label, a { cursor: auto !important; }
  #shift-cursor, #shift-trail { display: none !important; }
}

/* ── Custom Cursor ───────────────────────────────── */
#shift-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 20px;
  height: 20px;
  transition: width 0.13s, height 0.13s;
  left: -50px;
  top: -50px;
}
#shift-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(37,99,235,0.5));
  transition: filter 0.13s, transform 0.12s;
}
#shift-cursor.hover { width: 24px; height: 24px; }
#shift-cursor.hover svg { filter: drop-shadow(0 0 10px rgba(59,130,246,0.85)); }
#shift-cursor.click svg { transform: scale(0.85); }

#shift-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  width: 14px;
  height: 14px;
  opacity: 0.35;
  transition: left 0.18s ease-out, top 0.18s ease-out;
  left: -50px;
  top: -50px;
}
#shift-trail svg { width: 100%; height: 100%; }

/* ── Page Stage ──────────────────────────────────── */
body {
  background: #f4f4f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  color: #111;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

.page-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Top Navigation Bar ──────────────────────────── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e4e4e7;
  margin-bottom: 36px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(59, 130, 246, 0.3);
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.brand-sep {
  color: #d4d4d8;
  font-size: 14px;
  margin: 0 2px;
}
.tool-pill {
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  background: #e4e4e7;
  padding: 3px 9px;
  border-radius: 99px;
}
.back-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e4e4e7;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.back-tools-btn:hover {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
  transform: translateY(-1px);
}
.back-tools-btn svg {
  transition: transform 0.15s;
}
.back-tools-btn:hover svg {
  transform: translateX(-2px);
}

/* ── Main App Card Container ─────────────────────── */
.app-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 12px 36px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  min-height: 520px;
}

@media (max-width: 860px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none !important;
  }
}

.app-main {
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
}
@media (max-width: 540px) {
  .app-main { padding: 24px 20px; }
}

/* ── Header Area ── */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .app-header { flex-direction: column; gap: 14px; }
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  padding: 4px 11px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.header-badge-dot {
  width: 6px; height: 6px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse-blue 2s infinite;
}
@keyframes pulse-blue {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.header-badge span {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.02em;
}
.app-header h1 {
  font-size: 26px;
  font-weight: 300;
  color: #111;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.app-header h1 strong { font-weight: 700; }
.app-header p {
  font-size: 13.5px;
  color: #71717a;
  font-weight: 400;
}

/* Mode Switcher Tabs */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.mode-btn {
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #71717a;
  transition: all 0.15s;
  white-space: nowrap;
}
.mode-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Hero Password Display Box ── */
.display-box {
  background: #fafafa;
  border: 1.5px solid #e4e4e7;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
@media (max-width: 540px) {
  .display-box { padding: 16px; }
}
.display-box:focus-within, .display-box:hover {
  border-color: #d4d4d8;
}

.password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.password-output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.03em;
  word-break: break-all;
  user-select: all;
  flex: 1;
  line-height: 1.35;
  transition: opacity 0.2s;
}
@media (max-width: 540px) {
  .password-output { font-size: 16px; }
}
.password-output .char-sym { color: #ec4899; }
.password-output .char-num { color: #3b82f6; }
.password-output .char-upper { color: #10b981; }
.password-output .char-lower { color: #1f2937; }
.password-output .char-dash { color: #94a3b8; font-weight: 400; }

.password-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.icon-btn:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}
.icon-btn:active { transform: translateY(0); }
.icon-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.icon-btn.loading svg { animation: spin 0.8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Strength Meta Row */
.strength-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.strength-bar-track {
  flex: 1;
  height: 4px;
  background: #e4e4e7;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  gap: 3px;
}
.strength-seg {
  flex: 1;
  height: 100%;
  background: transparent;
  border-radius: 99px;
  transition: background 0.3s ease;
}
.strength-seg.active.weak   { background: #ef4444; }
.strength-seg.active.fair   { background: #f59e0b; }
.strength-seg.active.good   { background: #10b981; }
.strength-seg.active.strong { background: #059669; }

.strength-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.strength-badge.weak   { color: #ef4444; }
.strength-badge.fair   { color: #f59e0b; }
.strength-badge.good   { color: #10b981; }
.strength-badge.strong { color: #059669; }

/* ── Customization Controls ── */
.controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slider-title {
  font-size: 13px;
  font-weight: 600;
  color: #27272a;
}
.slider-val-pill {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 2px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: #e4e4e7;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #18181b;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.1s, background 0.15s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #2563eb;
}
.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #18181b;
  cursor: pointer;
  border: none;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 540px) {
  .options-grid { grid-template-columns: 1fr; }
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fafafa;
  user-select: none;
  transition: all 0.15s;
}
.option-card:hover {
  border-color: #d4d4d8;
  background: #f7f7f7;
}
.option-card.active {
  border-color: #18181b;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.option-left { display: flex; flex-direction: column; gap: 2px; }
.option-name { font-size: 13px; font-weight: 600; color: #111; }
.option-desc { font-size: 11px; color: #71717a; }
.option-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.option-card.active .option-check {
  background: #18181b;
  border-color: #18181b;
}
.option-check svg { display: none; }
.option-card.active .option-check svg { display: block; }

/* ── Footer Bar ── */
.app-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 600px) {
  .app-footer { flex-direction: column; align-items: stretch; gap: 14px; }
}

.footer-info { display: flex; flex-direction: column; gap: 2px; }
.footer-info-main { font-size: 13.5px; font-weight: 600; color: #18181b; }
.footer-info-sub { font-size: 11.5px; color: #71717a; }

.generate-btn {
  height: 46px;
  padding: 0 28px;
  background: #18181b;
  color: #fff;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .generate-btn { width: 100%; justify-content: center; height: 48px; border-radius: 12px; }
}
.generate-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.generate-btn:active { transform: translateY(0); }

/* ── Desktop Sidebar ── */
.app-sidebar {
  border-left: 1px solid #f4f4f5;
  padding: 36px 24px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}
.sb-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 16px;
}
.sb-stat-num {
  font-size: 34px;
  font-weight: 300;
  color: #18181b;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sb-stat-label {
  font-size: 10.5px;
  color: #71717a;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 16px;
}
.sb-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.sb-mini-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 10px 12px;
}
.sb-mini-val { font-size: 13.5px; font-weight: 600; color: #18181b; margin-bottom: 2px; }
.sb-mini-lbl { font-size: 9px; color: #a1a1aa; text-transform: uppercase; font-weight: 600; }
.sb-hr { border: none; border-top: 1px solid #e4e4e7; margin: 16px 0; }
.sb-history-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 10px; }
.sb-history-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.sb-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #3f3f46;
  transition: all 0.15s;
}
.sb-history-item:hover { border-color: #18181b; color: #18181b; }
.sb-history-copy { font-size: 9.5px; color: #a1a1aa; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #18181b;
  color: #fff;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SEO Section Styles ── */
.seo-wrapper {
  border-top: 1px solid #e4e4e7;
  background: #fff;
  padding: 44px 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (max-width: 600px) { .seo-wrapper { padding: 28px 20px 36px; gap: 28px; } }

.seo-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}
.seo-heading {
  font-size: 22px;
  font-weight: 700;
  color: #18181b;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.seo-desc { font-size: 13.5px; color: #52525b; line-height: 1.65; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 768px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
}
.how-title { font-size: 14px; font-weight: 600; color: #18181b; }
.how-text { font-size: 12.5px; color: #52525b; line-height: 1.55; }

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 600px) { .terms-grid { grid-template-columns: 1fr; } }
.term-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.term-header { display: flex; align-items: center; gap: 8px; }
.term-name { font-size: 13.5px; font-weight: 600; color: #18181b; }
.term-badge { font-size: 9.5px; font-weight: 600; text-transform: uppercase; background: #f4f4f5; color: #71717a; padding: 2px 6px; border-radius: 4px; }
.term-desc { font-size: 12px; color: #52525b; line-height: 1.55; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  margin-top: 16px;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.compare-table th { background: #f4f4f5; padding: 12px 16px; font-weight: 600; color: #18181b; border-bottom: 1px solid #e4e4e7; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; color: #52525b; }
.compare-table tr:last-child td { border-bottom: none; }
.badge-weak { display: inline-block; padding: 2px 7px; background: #fef2f2; color: #ef4444; border-radius: 4px; font-weight: 600; font-size: 11px; }
.badge-strong { display: inline-block; padding: 2px 7px; background: #ecfdf5; color: #059669; border-radius: 4px; font-weight: 600; font-size: 11px; }

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 16px;
}
.faq-item { border-bottom: 1px solid #e4e4e7; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
  background: #fff;
  transition: background 0.15s;
}
.faq-q:hover { background: #fafafa; }
.faq-q svg { flex-shrink: 0; color: #a1a1aa; transition: transform 0.2s ease; }
.faq-q.active svg { transform: rotate(180deg); color: #18181b; }
.faq-a { display: none; padding: 0 20px 18px; font-size: 13px; color: #52525b; line-height: 1.6; }
.faq-q.active + .faq-a { display: block; }

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid #e4e4e7;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #71717a;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.site-footer a { color: #71717a; text-decoration: none; margin-left: 16px; }
.site-footer a:hover { color: #18181b; }
