@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900;1000&display=swap');

:root {
  --font: 'Cairo', sans-serif;
  --secondaryFont: 'Yanone Kaffeesatz', sans-serif;
  --bg: #171b29;
  --ink: #e8e4d6;
  --muted: rgba(232, 228, 214, 0.72);
  --panel: rgba(26, 31, 45, 0.92);
  --panel-soft: rgba(20, 24, 36, 0.88);
  --line: rgba(232, 228, 214, 0.1);
  --accent: #e8e4d6;
  --accent-2: rgba(232, 228, 214, 0.78);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 228, 214, 0.05), transparent 22%),
    linear-gradient(180deg, #1b2030 0%, #171b29 58%, #141827 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(23, 27, 41, 0.72);
  border-bottom: 1px solid rgba(232, 228, 214, 0.06);
  backdrop-filter: blur(12px);
}

.brand,
.nav-link {
  border: 0;
  background: transparent;
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(232, 228, 214, 0.76);
  text-transform: capitalize;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-link:hover {
  background: rgba(232, 228, 214, 0.04);
  border-color: rgba(232, 228, 214, 0.1);
  color: var(--ink);
}

.nav-link.is-active {
  background: rgba(232, 228, 214, 0.1);
  border-color: rgba(232, 228, 214, 0.16);
  color: var(--ink);
}

.logo-mark {
  display: inline-grid;
  grid-template-columns: repeat(7, 5px);
  gap: 3px;
  align-items: start;
  transform: scaleY(-1);
}

.logo-mark span {
  width: 5px;
  border-radius: 999px;
  background: rgba(232, 228, 214, 0.84);
  transform-origin: center bottom;
  animation: logoWave 3.2s ease-in-out infinite;
}

.logo-mark span:nth-child(1) {
  height: 10px;
  animation-delay: 0ms;
}

.logo-mark span:nth-child(2) {
  height: 18px;
  animation-delay: 180ms;
}

.logo-mark span:nth-child(3) {
  height: 26px;
  animation-delay: 360ms;
}

.logo-mark span:nth-child(4) {
  height: 34px;
  background: rgba(232, 228, 214, 0.96);
  animation-delay: 540ms;
}

.logo-mark span:nth-child(5) {
  height: 24px;
  animation-delay: 720ms;
}

.logo-mark span:nth-child(6) {
  height: 16px;
  animation-delay: 900ms;
}

.logo-mark span:nth-child(7) {
  height: 9px;
  background: rgba(232, 228, 214, 0.52);
  animation-delay: 1080ms;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.page > * {
  animation: fadeUp 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page > *:nth-child(2) {
  animation-delay: 90ms;
}

.page > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-page {
  display: grid;
  gap: 18px;
}

.form-heading h1,
.info-card h2 {
  margin: 0;
}

.form-heading h1,
.info-card h2,
.card h2,
.hero-panel h1,
.section-heading h1 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-panel,
.card,
.status-card {
  background:
    linear-gradient(180deg, rgba(31, 37, 53, 0.96), rgba(24, 29, 43, 0.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-panel {
  padding: 28px;
}

.card:hover,
.status-card:hover,
.hero-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 228, 214, 0.16);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(232, 228, 214, 0.64);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.lede.compact {
  margin: 10px 0 0;
  max-width: 56ch;
}

.section-heading {
  margin-bottom: 24px;
}

.status-row,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.status-card,
.card {
  padding: 24px;
}

.status-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h2,
.hero-panel h1,
.section-heading h1 {
  margin-top: 0;
}

.card p,
.section-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 16px;
}

.notes-card {
  margin-top: 18px;
}

.feedback.error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 199, 187, 0.18);
  border-radius: 14px;
  background: rgba(122, 51, 38, 0.16);
  color: #f2c7bb;
  font-weight: 700;
}

.feedback.success {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(232, 228, 214, 0.12);
  border-radius: 16px;
  background: rgba(232, 228, 214, 0.05);
  animation: fadeUp 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.success-copy {
  display: grid;
  gap: 4px;
}

.success-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.success-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.screw-form,
.result-card {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 10px;
}

.compact-field {
  gap: 8px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-radio-row {
  flex: 1 1 420px;
}

.radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(232, 228, 214, 0.08);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--muted);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.radio-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.radio-pill.is-active {
  border-color: rgba(232, 228, 214, 0.3);
  background: rgba(232, 228, 214, 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(232, 228, 214, 0.04), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.radio-pill:hover {
  transform: translateY(-1px);
}

.radio-pill span {
  font-weight: 700;
}

.text-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(232, 228, 214, 0.1);
  border-radius: 16px;
  background: var(--panel-soft);
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.text-input:focus {
  outline: none;
  border-color: rgba(232, 228, 214, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(232, 228, 214, 0.08);
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-actions {
  margin-top: 10px;
}

.compact-actions {
  margin-top: 0;
  align-items: stretch;
  justify-content: space-between;
}

.compact-actions .action-button {
  flex: 0 0 auto;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(232, 228, 214, 0.16);
  border-radius: 14px;
  background: var(--accent);
  color: #171b29;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.action-button:hover {
  background: #f2efe4;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.action-button.secondary {
  border-color: rgba(232, 228, 214, 0.14);
  background: rgba(232, 228, 214, 0.04);
  color: var(--ink);
  box-shadow: none;
}

.action-button.secondary:hover {
  background: rgba(232, 228, 214, 0.08);
  border-color: rgba(232, 228, 214, 0.2);
  color: var(--ink);
}

.action-button.ghost {
  border-color: rgba(232, 228, 214, 0.12);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.action-button.ghost:hover {
  background: rgba(232, 228, 214, 0.04);
  border-color: rgba(232, 228, 214, 0.18);
  color: var(--ink);
}

.button-wave {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 16px;
}

.button-wave span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: #171b29;
  animation: buttonWave 0.9s ease-in-out infinite;
}

.button-wave span:nth-child(1) { height: 7px; animation-delay: 0ms; }
.button-wave span:nth-child(2) { height: 12px; animation-delay: 90ms; }
.button-wave span:nth-child(3) { height: 16px; animation-delay: 180ms; }
.button-wave span:nth-child(4) { height: 11px; animation-delay: 270ms; }
.button-wave span:nth-child(5) { height: 6px; animation-delay: 360ms; }

.helper-copy,
.result-path {
  color: var(--muted);
}

.inline-helper {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.95rem;
}

.helper-actions {
  margin-top: -6px;
}

.info-card {
  display: grid;
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.info-block {
  padding: 16px;
  border: 1px solid rgba(232, 228, 214, 0.08);
  border-radius: 16px;
  background: rgba(17, 21, 33, 0.34);
}

.info-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.info-block p {
  margin: 0;
}

.download-note {
  margin-top: -2px;
  padding-top: 2px;
}

.card-grid > .card {
  animation: fadeUp 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-grid > .card:nth-child(1) {
  animation-delay: 110ms;
}

.card-grid > .card:nth-child(2) {
  animation-delay: 180ms;
}

.card-grid > .card:nth-child(3) {
  animation-delay: 250ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonWave {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

@keyframes logoWave {
  0%,
  100% {
    transform: scaleY(0.9);
    opacity: 0.78;
  }

  50% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page > *,
  .card-grid > .card,
  .feedback.success {
    animation: none;
  }

  .logo-mark span {
    animation: none;
  }

  .card,
  .status-card,
  .hero-panel,
  .radio-pill,
  .text-input,
  .action-button {
    transition: none;
  }
}

.footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .nav,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    width: min(100% - 24px, 1100px);
    padding-top: 28px;
  }

  .compact-actions {
    align-items: center;
  }

  .compact-radio-row {
    flex: 1 1 100%;
  }
}
