*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink-900: #0b1222;
  --ink-800: #0f1b32;
  --ink-700: #152645;
  --ink-600: #22365c;
  --mint-500: #45f0c2;
  --mint-400: #7bf7d7;
  --gold-500: #f5c453;
  --gold-400: #f8d57a;
  --sky-500: #75b6ff;
  --sky-400: #a7ccff;
  --sand-50: #fef6e7;
  --slate-100: #e2e9f8;
  --slate-200: #c3d0eb;
  --slate-300: #98aacb;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 32px 60px -40px rgba(5, 12, 28, 0.9);
  --shadow-strong: 0 40px 80px -45px rgba(5, 12, 28, 0.85);
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--slate-100);
  background:
    radial-gradient(120% 120% at 12% 10%, rgba(245, 196, 83, 0.18), transparent 60%),
    radial-gradient(100% 100% at 90% 0%, rgba(117, 182, 255, 0.18), transparent 55%),
    radial-gradient(120% 120% at 50% 100%, rgba(69, 240, 194, 0.22), transparent 60%),
    linear-gradient(150deg, var(--ink-900), var(--ink-700));
  background-attachment: fixed;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.page::before {
  top: -120px;
  left: -140px;
  background: rgba(117, 182, 255, 0.35);
}

.page::after {
  bottom: -200px;
  right: -120px;
  background: rgba(245, 196, 83, 0.35);
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(22px);
  }
}

.wrapper {
  width: min(1200px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.top-banner {
  padding: 0.6rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: rgba(11, 18, 34, 0.85);
  border-bottom: 1px solid rgba(151, 176, 230, 0.2);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.top-banner a {
  color: var(--gold-400);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 30, 0.78);
  border-bottom: 1px solid rgba(151, 176, 230, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 12px 25px -15px rgba(0, 0, 0, 0.8);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand__tag {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-300);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--slate-200);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: #ffffff;
}

.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero__copy .accent {
  color: var(--gold-400);
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(12, 22, 46, 0.7);
  border: 1px solid rgba(152, 185, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-200);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(227, 236, 255, 0.86);
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.hero__meta strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.hero__meta span {
  font-size: 0.85rem;
  color: rgba(206, 217, 242, 0.75);
}

.hero__card {
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(117, 182, 255, 0.18), transparent 60%),
    linear-gradient(145deg, rgba(12, 25, 54, 0.95), rgba(22, 40, 78, 0.9));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(151, 176, 230, 0.28);
  padding: clamp(2rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-strong);
}

.hero__card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hero__card-header img {
  width: 52px;
  height: 52px;
}

.hero__card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.hero__card p {
  margin: 0;
  color: rgba(215, 226, 255, 0.8);
}

.hero__card a {
  color: var(--gold-400);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(231, 238, 255, 0.9);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(69, 240, 194, 0.15);
}

.hero__card-footer {
  margin-top: 1.4rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
  z-index: 1;
}

.section--panel {
  background: rgba(7, 14, 30, 0.6);
  border-top: 1px solid rgba(151, 176, 230, 0.12);
  border-bottom: 1px solid rgba(151, 176, 230, 0.12);
}

.section__head {
  display: grid;
  gap: 0.9rem;
  max-width: 65ch;
  margin-bottom: 2.6rem;
}

.section__head h2,
.tool__intro h2,
.share__intro h2,
.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0;
}

.section__head p,
.tool__intro p,
.share__intro p,
.about p {
  margin: 0;
  color: rgba(214, 225, 247, 0.8);
}

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

.tool-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(11, 20, 41, 0.75);
  border: 1px solid rgba(151, 176, 230, 0.2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tool-card p {
  margin: 0 0 1.1rem;
  color: rgba(209, 220, 245, 0.75);
}

.tool-card .tag {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  border: 1px solid rgba(245, 196, 83, 0.35);
  background: rgba(245, 196, 83, 0.1);
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 83, 0.5);
}

.tool {
  display: grid;
  gap: 2.2rem;
}

.tool__panel {
  display: grid;
  gap: 1.6rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(10, 20, 42, 0.8);
  border: 1px solid rgba(151, 176, 230, 0.24);
  box-shadow: var(--shadow-soft);
}

.tool--split .tool__panel {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel {
  display: grid;
  gap: 1rem;
}

.panel h3 {
  margin: 0;
  font-family: var(--font-display);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chips span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--slate-200);
  background: rgba(16, 31, 62, 0.6);
  border: 1px solid rgba(120, 160, 238, 0.25);
}

.file-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(120, 160, 238, 0.5);
  background: rgba(9, 18, 40, 0.7);
  cursor: pointer;
}

.file-input input {
  display: none;
}

.file-input span {
  font-size: 0.92rem;
  color: rgba(222, 232, 255, 0.85);
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(214, 226, 255, 0.78);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120, 160, 238, 0.4);
  background: rgba(9, 18, 40, 0.75);
  color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid--stack {
  grid-template-columns: 1fr;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox input {
  accent-color: var(--gold-400);
}

.preview {
  width: min(320px, 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(151, 176, 230, 0.25);
  background: rgba(9, 16, 38, 0.6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 16px 35px -28px rgba(6, 12, 30, 0.9);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(6, 12, 30, 0.9);
}

.button--solid {
  background: var(--gold-500);
  color: var(--ink-900);
}

.button--outline {
  background: rgba(245, 196, 83, 0.12);
  border-color: rgba(245, 196, 83, 0.5);
  color: var(--gold-400);
}

.button--ghost {
  background: rgba(14, 28, 58, 0.75);
  border-color: rgba(120, 160, 238, 0.35);
  color: var(--slate-100);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status {
  min-height: 24px;
  font-size: 0.88rem;
  color: rgba(214, 226, 255, 0.78);
}

.status.is-error {
  color: #ffb4c0;
}

.status.is-success {
  color: var(--mint-400);
}

.section--share {
  background: linear-gradient(140deg, rgba(10, 20, 42, 0.85), rgba(15, 32, 66, 0.95));
  border-top: 1px solid rgba(151, 176, 230, 0.18);
  border-bottom: 1px solid rgba(151, 176, 230, 0.18);
}

.share {
  display: grid;
  gap: 2.4rem;
}

.share__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.share-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(7, 15, 32, 0.8);
  border: 1px solid rgba(151, 176, 230, 0.22);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.share-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.muted {
  margin: 0;
  color: rgba(207, 220, 245, 0.75);
}

.share-form {
  display: grid;
  gap: 1rem;
}

.share-result {
  display: none;
  gap: 1rem;
  margin-top: 1rem;
}

.share-result.is-visible {
  display: grid;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 20, 42, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(151, 176, 230, 0.2);
}

.qr-wrap img {
  width: 160px;
  height: 160px;
}

.share-meta {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(216, 228, 250, 0.8);
}

.about {
  display: grid;
  gap: 1rem;
  max-width: 70ch;
}

.about__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(151, 176, 230, 0.2);
  background: rgba(7, 14, 30, 0.9);
}

.footer {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__brand img {
  width: 40px;
}

.footer__brand span {
  display: block;
  font-size: 0.85rem;
  color: rgba(204, 218, 245, 0.75);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: rgba(214, 226, 255, 0.8);
}

.footer__note {
  font-size: 0.85rem;
  color: rgba(194, 208, 240, 0.65);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 700px) {
  .wrapper {
    width: min(1200px, calc(100% - 1.6rem));
  }

  .hero__actions {
    flex-direction: column;
  }

  .button-row {
    flex-direction: column;
  }
}
