﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: #050505;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #1f1f1f;
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span {
  color: #999;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: #bbb;
}

nav a:hover {
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background:
    radial-gradient(circle at top right, #222 0%, transparent 35%),
    linear-gradient(180deg, #050505 0%, #111 100%);
}

.hero-content {
  max-width: 780px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 28px;
  border: 1px solid #333;
  border-radius: 999px;
  color: #aaa;
  font-size: 0.85rem;
  background: #0d0d0d;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 28px;
}

.hero p {
  max-width: 620px;
  color: #bdbdbd;
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: #dcdcdc;
}

.btn-secondary {
  border: 1px solid #333;
  color: #eee;
}

.btn-secondary:hover {
  border-color: #fff;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #0d0d0d;
  color: #eee;
  font-weight: 700;
  transition: 0.2s ease;
}

.tool-button:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.tool-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  flex: 0 0 auto;
}

.tool-button:hover .tool-icon {
  background: #000;
  color: #fff;
}

.tool-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

section {
  padding: 100px 0;
  border-top: 1px solid #1a1a1a;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.section-text {
  color: #aaa;
  max-width: 680px;
  margin-bottom: 48px;
}

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

.card {
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 24px;
  padding: 28px;
  min-height: 220px;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #fff;
}

.card-number {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.card p {
  color: #999;
  font-size: 0.95rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.visual-box {
  height: 420px;
  border-radius: 32px;
  border: 1px solid #2a2a2a;
  background:
    linear-gradient(135deg, #111, #050505),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.04) 11px
    );
  position: relative;
  overflow: hidden;
}

.visual-box::after {
  content: "YoshWorks";
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
}

.visual-box::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid #555;
  top: 60px;
  right: 50px;
}

.cta {
  text-align: center;
  background: #fff;
  color: #000;
  border-radius: 36px;
  padding: 72px 32px;
}

.cta h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #333;
}

.cta .btn {
  background: #000;
  color: #fff;
  display: inline-block;
}

footer {
  padding: 36px 0;
  color: #777;
  border-top: 1px solid #1a1a1a;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .grid,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 90px;
  }

  section {
    padding: 72px 0;
  }

  .visual-box {
    height: 320px;
  }
}

.tool-page {
  min-height: 100vh;
}

.tool-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 112px;
  background:
    radial-gradient(circle at 78% 18%, #2b2b2b 0%, transparent 28%),
    linear-gradient(180deg, #050505 0%, #101010 100%);
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.tool-copy h1 {
  max-width: 720px;
}

.tool-copy p {
  color: #bdbdbd;
  font-size: 1.1rem;
  max-width: 620px;
}

.password-panel {
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.panel-heading,
.password-output-row,
.strength-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: #888;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.panel-heading h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.length-output {
  min-width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #333;
  border-radius: 18px;
  background: #050505;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.range-row {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  color: #ddd;
  font-weight: 700;
}

.range-row input {
  accent-color: #fff;
  width: 100%;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  background: #111;
  color: #ddd;
  cursor: pointer;
  font-weight: 700;
  padding: 14px;
}

.toggle-card input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.generate-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-bottom: 16px;
}

.result-card {
  border: 1px solid #292929;
  border-radius: 18px;
  background: #080808;
  padding: 18px;
}

.result-card label {
  display: block;
  color: #888;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.password-output-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid #333;
  border-radius: 14px;
  background: #050505;
  color: #fff;
  font:
    700 1rem/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  padding: 14px;
}

.copy-btn {
  border: 1px solid #333;
  border-radius: 14px;
  background: #151515;
  color: #eee;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0 16px;
}

.copy-btn:hover {
  border-color: #fff;
}

.strength-row {
  margin-top: 14px;
  color: #aaa;
  font-size: 0.85rem;
}

.strength-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #202020;
}

.strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #777;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.strength-track span[data-level="low"] {
  background: #d97757;
}

.strength-track span[data-level="medium"] {
  background: #d6c75f;
}

.strength-track span[data-level="high"] {
  background: #82d173;
}

#privacy-note {
  color: #777;
  font-size: 0.85rem;
  margin-top: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 56px;
}

.tip-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.tip-item,
.faq-list details {
  border: 1px solid #242424;
  border-radius: 18px;
  background: #0d0d0d;
  padding: 20px;
}

.tip-item strong,
.faq-list summary {
  color: #fff;
  font-weight: 800;
}

.tip-item p,
.faq-list p {
  color: #999;
  margin-top: 8px;
}

.faq-list summary {
  cursor: pointer;
}

@media (max-width: 900px) {
  .tool-hero {
    min-height: auto;
    padding: 132px 0 72px;
  }

  .tool-hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .password-panel {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .panel-heading,
  .password-output-row,
  .strength-row {
    align-items: stretch;
    flex-direction: column;
  }

  .length-output {
    width: 100%;
  }

  .copy-btn {
    width: 100%;
  }
}
