* {
  box-sizing: border-box;
}

:root {
  --bg: #061221;
  --bg-2: #091a2d;
  --card: #0d2137;
  --card-2: #102a43;

  --border: rgba(144, 190, 225, .13);

  --text: #f5f9ff;
  --muted: #8da6bb;
  --muted-2: #5e7890;

  --blue: #3d9cff;
  --cyan: #43d9ff;
  --green: #35d39a;
  --danger: #ff6f80;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(61, 156, 255, .18),
      transparent 38%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(67, 217, 255, .07),
      transparent 28%
    ),
    var(--bg);

  display: flex;
  flex-direction: column;

  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255,255,255,.02) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.02) 1px,
      transparent 1px
    );

  background-size: 44px 44px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 80%
    );
}


/* HEADER */

.site-header {
  width: min(1100px, calc(100% - 36px));

  margin: auto;

  padding: 24px 0;

  display: flex;

  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;

  align-items: center;

  gap: 11px;

  color: white;

  text-decoration: none;
}

.brand:hover {
  color: white;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan)
    );

  font-size: 20px;
  font-weight: 800;

  box-shadow:
    0 12px 35px rgba(61,156,255,.2);
}

.brand-text strong {
  display: block;

  font-size: 15px;
}

.brand-text small {
  display: block;

  color: #607c95;

  font-size: 7px;

  letter-spacing: 2px;

  margin-top: 3px;
}

.online-badge {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #7de5bc;

  background: rgba(53,211,154,.05);

  border: 1px solid rgba(53,211,154,.17);

  border-radius: 30px;

  padding: 8px 13px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .5px;
}

.online-badge span {
  width: 6px;
  height: 6px;

  background: var(--green);

  border-radius: 50%;

  box-shadow:
    0 0 10px rgba(53,211,154,.8);
}


/* MAIN */

.main {
  width: min(1100px, calc(100% - 36px));

  margin: auto;

  padding: 30px 0 65px;
}


/* HERO */

.hero {
  text-align: center;

  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #62b5ff;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 2px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";

  width: 20px;
  height: 1px;

  background: var(--blue);
}

.hero h1 {
  margin: 15px 0 12px;

  font-size: clamp(40px, 6vw, 61px);

  line-height: 1.02;

  letter-spacing: -3px;

  font-weight: 800;
}

.hero h1 span {
  color: transparent;

  background:
    linear-gradient(
      90deg,
      #54aaff,
      #57ddff
    );

  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  max-width: 570px;

  margin: auto;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.7;
}


/* TYPE SELECTOR */

.type-selector {
  width: 100%;

  margin-bottom: 12px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: rgba(12,31,51,.65);
}

.type-scroll {
  display: flex;

  overflow-x: auto;

  scrollbar-width: none;

  padding: 6px;

  gap: 4px;
}

.type-scroll::-webkit-scrollbar {
  display: none;
}

.type-btn {
  flex: 0 0 auto;

  border: 0;

  border-radius: 10px;

  padding: 10px 14px;

  background: transparent;

  color: #6e8ba4;

  font-family: inherit;

  font-size: 10px;

  font-weight: 600;

  cursor: pointer;

  transition: .2s;

  display: flex;

  align-items: center;

  gap: 6px;
}

.type-btn span {
  font-size: 12px;
}

.type-btn:hover {
  color: white;

  background: rgba(61,156,255,.06);
}

.type-btn.active {
  color: white;

  background:
    linear-gradient(
      100deg,
      rgba(61,156,255,.2),
      rgba(67,217,255,.08)
    );

  box-shadow:
    inset 0 0 0 1px rgba(61,156,255,.15);
}


/* GENERATOR */

.generator {
  display: grid;

  grid-template-columns: 1fr 390px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(16,42,67,.9),
      rgba(7,23,39,.96)
    );

  box-shadow:
    0 30px 90px rgba(0,0,0,.3);
}


/* EDITOR */

.editor-panel {
  padding: 30px;
}

.panel-heading {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 26px;
}

.panel-eyebrow {
  color: #61819b;

  font-size: 8px;

  letter-spacing: 1.8px;

  font-weight: 700;
}

.panel-heading h2 {
  margin: 7px 0 6px;

  font-size: 21px;

  letter-spacing: -.4px;
}

.panel-heading p {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
}

.panel-number {
  color: #3e607b;

  font-size: 10px;

  font-weight: 700;

  padding: 8px 10px;

  border: 1px solid var(--border);

  border-radius: 8px;
}


/* FORMS */

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 13px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #8ca6ba;

  font-size: 9px;

  font-weight: 600;
}

.form-control {
  width: 100%;

  height: 44px;

  padding: 0 13px;

  border: 1px solid rgba(133,179,215,.13);

  border-radius: 10px;

  background: #071a2d;

  color: white;

  font-family: inherit;

  font-size: 11px;

  outline: none;

  transition: .2s;
}

textarea.form-control {
  min-height: 110px;

  height: auto;

  padding: 13px;

  resize: vertical;
}

.form-control::placeholder {
  color: #526e86;
}

.form-control:focus {
  border-color: rgba(61,156,255,.55);

  box-shadow:
    0 0 0 3px rgba(61,156,255,.06);
}

select.form-control {
  appearance: none;

  cursor: pointer;
}

.check-row {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 6px;

  color: #718da5;

  font-size: 9px;
}

.check-row input {
  accent-color: var(--blue);
}


/* CUSTOMIZATION */

.customize-section {
  margin-top: 25px;

  border-top: 1px solid var(--border);
}

.customize-toggle {
  width: 100%;

  padding: 18px 0;

  border: 0;

  background: transparent;

  color: white;

  display: flex;

  align-items: center;

  justify-content: space-between;

  text-align: left;

  cursor: pointer;

  font-family: inherit;
}

.customize-toggle b {
  display: block;

  font-size: 12px;
}

.customize-toggle small {
  display: block;

  color: #5f7a91;

  margin-top: 4px;

  font-size: 9px;
}

.customize-toggle strong {
  color: #6e91ad;

  font-size: 21px;

  font-weight: 400;
}

.customize-content {
  display: none;

  padding-bottom: 5px;
}

.customize-content.open {
  display: block;
}

.setting-group {
  margin-bottom: 19px;
}

.setting-group > label,
.setting label {
  display: block;

  color: #67839a;

  font-size: 8px;

  letter-spacing: 1.3px;

  font-weight: 700;

  margin-bottom: 8px;
}

.preset-grid,
.style-options,
.size-options,
.error-options {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;
}

.preset,
.style-option,
.size-options button,
.error-options button {
  border: 1px solid rgba(130,174,210,.12);

  background: #091d31;

  color: #718ba1;

  padding: 8px 11px;

  border-radius: 8px;

  font-family: inherit;

  font-size: 9px;

  cursor: pointer;

  transition: .2s;
}

.preset:hover,
.style-option:hover,
.size-options button:hover,
.error-options button:hover {
  color: white;

  border-color: rgba(61,156,255,.3);
}

.preset.active,
.style-option.active,
.size-options button.active,
.error-options button.active {
  color: #70bdff;

  border-color: rgba(61,156,255,.35);

  background: rgba(61,156,255,.09);
}

.setting-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;

  margin-bottom: 19px;
}

.color-control {
  display: flex;

  align-items: center;

  gap: 8px;

  height: 38px;

  padding: 5px 8px;

  background: #091d31;

  border: 1px solid var(--border);

  border-radius: 8px;
}

.color-control input {
  width: 27px;
  height: 27px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.color-control span {
  color: #708ca3;

  font-family: monospace;

  font-size: 9px;
}

.setting-help {
  display: block;

  margin-top: 7px;

  color: #4f6a82;

  font-size: 8px;

  line-height: 1.5;
}

.upload-box {
  min-height: 70px;

  border: 1px dashed rgba(82,160,220,.25);

  border-radius: 10px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  color: #7795ad;

  cursor: pointer;

  transition: .2s;
}

.upload-box:hover {
  background: rgba(61,156,255,.04);

  border-color: rgba(61,156,255,.5);
}

.upload-box input {
  display: none;
}

.upload-icon {
  width: 32px;
  height: 32px;

  display: grid;

  place-items: center;

  border-radius: 9px;

  background: rgba(61,156,255,.08);

  color: #64b7ff;

  font-size: 17px;
}

.upload-box b {
  display: block;

  color: #8ca6b9;

  font-size: 10px;
}

.upload-box small {
  display: block;

  color: #526d83;

  margin-top: 3px;

  font-size: 8px;
}

.remove-logo {
  display: none;

  margin-top: 7px;

  border: 0;

  background: transparent;

  color: #ff7180;

  font-size: 8px;

  cursor: pointer;
}

.remove-logo.show {
  display: block;
}

.reset-btn {
  border: 0;

  background: transparent;

  color: #5c7990;

  font-family: inherit;

  font-size: 8px;

  cursor: pointer;
}

.reset-btn:hover {
  color: #78a0bb;
}


/* PREVIEW */

.preview-panel {
  min-height: 580px;

  padding: 24px;

  border-left: 1px solid var(--border);

  background: rgba(3,16,28,.42);

  display: flex;

  flex-direction: column;
}

.preview-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 18px;
}

.preview-header > div:first-child span {
  display: block;

  color: #607f99;

  font-size: 7px;

  letter-spacing: 1.7px;

  font-weight: 700;
}

.preview-header strong {
  display: block;

  margin-top: 5px;

  font-size: 14px;
}

.live-dot {
  display: flex;

  align-items: center;

  gap: 5px;

  color: #62dbae;

  font-size: 7px;

  font-weight: 700;
}

.live-dot span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 8px var(--green);
}

.qr-stage {
  flex: 1;

  min-height: 380px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 17px;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.025),
      transparent 60%
    );

  border: 1px solid rgba(130,175,210,.08);

  overflow: hidden;
}

.qr-placeholder {
  width: 220px;
  height: 220px;

  border-radius: 17px;

  border: 1px dashed rgba(86,159,211,.2);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: #526e86;
}

.placeholder-icon {
  width: 55px;
  height: 55px;

  display: grid;

  place-items: center;

  margin-bottom: 13px;

  border-radius: 15px;

  background: rgba(61,156,255,.07);

  color: #5b88a8;

  font-size: 24px;
}

.qr-placeholder strong {
  color: #7895aa;

  font-size: 10px;
}

.qr-placeholder small {
  margin-top: 5px;

  color: #506a81;

  font-size: 8px;
}

.qr-canvas {
  display: none;

  background: white;

  padding: 10px;

  border-radius: 17px;

  box-shadow:
    0 20px 45px rgba(0,0,0,.35);
}

.qr-canvas canvas,
.qr-canvas svg {
  display: block;
}


/* ACTIONS */

.preview-actions {
  display: grid;

  grid-template-columns: 1fr auto auto;

  gap: 7px;

  margin-top: 14px;
}

.preview-actions button {
  height: 43px;

  border-radius: 10px;

  font-family: inherit;

  font-size: 9px;

  font-weight: 700;

  cursor: pointer;

  transition: .2s;
}

.download-main {
  border: 0;

  background:
    linear-gradient(
      100deg,
      #318fe8,
      #45c8ed
    );

  color: white;
}

.download-main:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 25px rgba(61,156,255,.18);
}

.download-secondary {
  min-width: 54px;

  border: 1px solid rgba(130,175,210,.13);

  background: rgba(61,156,255,.045);

  color: #79a5c2;
}

.download-secondary:hover {
  color: white;

  border-color: rgba(61,156,255,.3);
}

.data-preview {
  margin-top: 12px;

  padding: 10px 12px;

  max-height: 55px;

  overflow: hidden;

  border-radius: 8px;

  background: #071a2d;

  color: #536f86;

  font-family: monospace;

  font-size: 7px;

  line-height: 1.5;

  word-break: break-all;
}


/* FEATURES */

.features {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 13px;
}

.feature {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 14px;

  border: 1px solid rgba(130,175,210,.08);

  border-radius: 12px;

  background: rgba(12,31,51,.45);
}

.feature > span {
  color: #61b7ff;

  font-size: 15px;
}

.feature strong {
  display: block;

  color: #9ab1c2;

  font-size: 9px;
}

.feature small {
  display: block;

  color: #526d83;

  font-size: 7px;

  margin-top: 3px;
}


/* FOOTER */

.footer {
  width: min(1100px, calc(100% - 36px));

  margin: auto;

  padding: 20px 0 27px;

  border-top: 1px solid rgba(130,170,200,.08);

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #526b82;

  font-size: 9px;
}

.footer a {
  color: #64b7ff;

  font-weight: 600;

  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer img {
  height: 23px;

  opacity: .65;
}


/* TOAST */

.toast {
  position: fixed;

  left: 50%;
  bottom: 25px;

  transform:
    translate(-50%, 20px);

  padding: 10px 16px;

  border-radius: 9px;

  background: #102940;

  border: 1px solid rgba(91,170,220,.18);

  color: #9fc1d9;

  font-size: 9px;

  opacity: 0;

  pointer-events: none;

  transition: .25s;

  z-index: 100;
}

.toast.show {
  opacity: 1;

  transform:
    translate(-50%, 0);
}


/* RESPONSIVE */

@media (max-width: 900px) {

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

  .preview-panel {
    border-left: 0;

    border-top: 1px solid var(--border);

    min-height: 500px;
  }

  .qr-stage {
    min-height: 400px;
  }

}

@media (max-width: 600px) {

  .site-header,
  .main,
  .footer {
    width: calc(100% - 28px);
  }

  .site-header {
    padding: 17px 0;
  }

  .online-badge {
    display: none;
  }

  .main {
    padding-top: 25px;
  }

  .hero h1 {
    font-size: 42px;

    letter-spacing: -2px;
  }

  .hero p {
    font-size: 10px;
  }

  .editor-panel {
    padding: 20px 15px;
  }

  .preview-panel {
    padding: 17px 15px;
  }

  .generator {
    border-radius: 20px;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .setting-row {
    grid-template-columns: 1fr;
  }

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

  .footer {
    flex-direction: column;

    gap: 11px;

    text-align: center;
  }

  .preview-actions {
    grid-template-columns: 1fr 60px 60px;
  }

}
