:root {
  --ink: #1c1d1a;
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --card: #faf8f2;
  --line: #d5d0c4;
  --muted: #6f7069;
  --orange: #ff5b35;
  --lime: #c9ee46;
  --blue: #5c79ff;
  --purple: #a66cff;
  --yellow: #f6c94c;
  --shadow: 0 18px 45px rgba(35, 33, 25, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  min-width: 320px;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, footer {
  max-width: 1280px;
  margin: auto;
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; letter-spacing: -.3px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--orange); transition: .25s; }
.site-header nav a:hover::after { right: 0; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; color: inherit; }

.hero {
  max-width: 1280px;
  min-height: 610px;
  margin: auto;
  padding: 80px 44px 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
}
.eyebrow { margin: 0 0 21px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1.7px; font: 500 11px "DM Mono", monospace; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.hero h1 { margin: 0; font-size: clamp(57px, 7vw, 91px); line-height: .96; letter-spacing: -6px; font-weight: 800; }
.hero h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.hero-description { max-width: 530px; margin: 32px 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; gap: 28px; align-items: center; padding: 15px 19px; border-radius: 3px; font-size: 13px; font-weight: 700; }
.button-primary { color: white; background: var(--ink); transition: transform .2s, box-shadow .2s; }
.button-primary:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--orange); }
.button-primary span { color: var(--lime); font-size: 18px; }
.privacy-note { color: var(--muted); font: 11px "DM Mono", monospace; }
.privacy-note i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #72af4d; box-shadow: 0 0 0 3px rgba(114,175,77,.15); }

.hero-visual { position: relative; height: 440px; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; top: 20px; left: 75px; }
.orbit-two { width: 280px; height: 280px; top: 75px; left: 130px; border-style: dashed; animation: spin 25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.visual-card { position: absolute; padding: 23px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-code { width: 250px; left: 45px; top: 60px; transform: rotate(-4deg); }
.card-code pre { margin: 17px 0 0; font: 13px/1.7 "DM Mono", monospace; }
.card-code pre > span { color: var(--orange); }
.card-code b { color: var(--blue); font-weight: 500; }
.card-code i { color: #72a137; font-style: normal; }
.mini-label { color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: 1.5px; }
.card-password { width: 260px; right: 5px; bottom: 67px; transform: rotate(5deg); }
.password-dots { margin: 18px 0 13px; letter-spacing: 5px; font-size: 20px; }
.strength-line { height: 4px; background: var(--paper-2); }
.strength-line span { display: block; width: 82%; height: 100%; background: #7eb153; }
.hero-badge { position: absolute; right: 38px; top: 28px; width: 90px; height: 90px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--ink); background: var(--lime); transform: rotate(9deg); box-shadow: 4px 5px 0 var(--ink); }
.hero-badge strong { font-size: 21px; }
.hero-badge span { font: 10px "DM Mono", monospace; text-transform: uppercase; }
.spark { position: absolute; color: var(--orange); font-size: 28px; }
.spark-one { left: 15px; bottom: 90px; }
.spark-two { right: 80px; top: 160px; font-size: 16px; }

.tools-section { background: var(--paper-2); border-top: 1px solid var(--line); padding: 86px max(44px, calc((100vw - 1192px)/2)) 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .about-section h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -3px; line-height: 1.05; }
.search-box { width: min(310px, 100%); padding: 12px 14px; display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--muted); font: 10px "DM Mono", monospace; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 27px; }
.filter { border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }
.filter:hover, .filter.active { color: white; border-color: var(--ink); background: var(--ink); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.tool-card { position: relative; min-height: 238px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.tool-card::before { content: "↗"; position: absolute; top: 22px; right: 22px; opacity: 0; transform: translate(-5px, 5px); transition: .25s; }
.tool-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 6px 7px 0 var(--ink); }
.tool-card:hover::before { opacity: 1; transform: none; }
.tool-icon, .dialog-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 12px; font: 500 18px "DM Mono", monospace; }
.tool-card h3 { margin: auto 0 7px; font-size: 17px; letter-spacing: -.5px; }
.tool-card p { min-height: 38px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tool-tag { margin-top: 17px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font: 9px "DM Mono", monospace; }
.empty-state { padding: 60px; text-align: center; color: var(--muted); }

.about-section { min-height: 410px; padding: 85px max(44px, calc((100vw - 1192px)/2)); display: grid; grid-template-columns: .3fr 1.1fr 1fr; gap: 50px; color: white; background: var(--ink); }
.about-number { color: var(--lime); font: 12px "DM Mono", monospace; }
.eyebrow.light { color: #a9aaa4; }
.about-copy { align-self: end; }
.about-copy > p { color: #a9aaa4; font-size: 14px; line-height: 1.8; }
.about-stats { margin-top: 35px; padding-top: 25px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3b3c38; }
.about-stats div { display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-size: 25px; color: var(--lime); }
.about-stats span { color: #8d8e88; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }

footer { min-height: 100px; font-size: 11px; color: var(--muted); }
.footer-brand .brand-mark { background: var(--orange); }

dialog { width: min(820px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: var(--ink); background: var(--card); border: 0; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(18,19,16,.67); backdrop-filter: blur(5px); }
.dialog-shell { min-height: 460px; }
.dialog-header { padding: 25px 28px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header > div { display: flex; align-items: center; gap: 16px; }
.dialog-header small { color: var(--muted); text-transform: uppercase; letter-spacing: 1.3px; font: 9px "DM Mono", monospace; }
.dialog-header h2 { margin: 3px 0 0; font-size: 22px; }
.close-dialog { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 29px; }
.dialog-body { padding: 28px; }
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { text-transform: uppercase; letter-spacing: 1px; font: 10px "DM Mono", monospace; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); padding: 13px; outline: 0; color: var(--ink); background: var(--paper); font: 13px/1.6 "DM Mono", monospace; }
.textarea { min-height: 170px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--orange); }
.action-row { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; }
.action-btn { border: 1px solid var(--ink); padding: 11px 16px; background: var(--ink); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.action-btn.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.result-box { min-height: 62px; padding: 15px; border: 1px dashed var(--line); background: var(--paper); word-break: break-all; font: 13px/1.65 "DM Mono", monospace; white-space: pre-wrap; }
.options { display: flex; gap: 15px; flex-wrap: wrap; }
.options label { display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font: 12px "Manrope", sans-serif; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input { flex: 1; accent-color: var(--orange); }
.range-value { width: 34px; text-align: center; font: 12px "DM Mono", monospace; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { padding: 15px; border: 1px solid var(--line); text-align: center; }
.metric strong { display: block; font-size: 23px; }
.metric span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.color-preview { height: 100px; border: 1px solid var(--line); background: #ff5b35; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; padding: 11px 18px; color: white; background: var(--ink); font-size: 11px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

body.dark { --ink: #f2f0e8; --paper: #171815; --paper-2: #20211d; --card: #262721; --line: #3d3e37; --muted: #a2a39c; --shadow: 0 18px 45px rgba(0,0,0,.25); }
body.dark .button-primary, body.dark .filter.active, body.dark .filter:hover { color: #171815; background: #f2f0e8; }
body.dark .brand-mark { color: #171815; }
body.dark .about-section { color: #171815; background: var(--lime); }
body.dark .about-section .eyebrow, body.dark .about-copy > p, body.dark .about-stats span { color: #4e5635; }
body.dark .about-stats { border-color: #a3c238; }
body.dark .about-stats strong, body.dark .about-number { color: #171815; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-visual { margin-top: 40px; transform: scale(.88); transform-origin: left top; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: .2fr 1fr; }
  .about-copy { grid-column: 2; }
}
@media (max-width: 600px) {
  .site-header, footer { padding: 18px 20px; }
  .site-header nav a { display: none; }
  .hero { padding: 55px 20px 25px; }
  .hero h1 { font-size: 55px; letter-spacing: -4px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { height: 355px; transform: scale(.72); width: 135%; }
  .tools-section { padding: 65px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 205px; }
  .about-section { padding: 65px 20px; display: block; }
  .about-section h2 { margin-bottom: 45px; }
  .about-number { margin-bottom: 25px; }
  footer { gap: 18px; flex-direction: column; text-align: center; }
  .tool-layout { grid-template-columns: 1fr; }
  .field { grid-column: 1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
