:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172033;
  background: #f7f8fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #172033;
  --muted: #667085;
  --blue: #315bd6;
  --blue-dark: #2448b4;
  --line: #e4e8f0;
  --paper: #fff;
  --soft: #f2f5fc;
  --mint: #e9f7f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }

.site-header {
  height: 72px;
  padding: 0 clamp(20px, 6vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e9ecf2;
  background: rgba(255, 255, 255, .92);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 19px;
  letter-spacing: -.8px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
}
.brand-mark svg {
  width: 21px;
  fill: none;
  stroke: white;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-nav { display: flex; gap: 32px; margin-left: auto; margin-right: auto; }
.main-nav a, .footer-links a {
  color: #626c7d;
  text-decoration: none;
  font-size: 13px;
  transition: color .18s ease;
}
.main-nav a:hover, .footer-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 10px 14px;
  border: 1px solid #dce2ed;
  border-radius: 9px;
  color: #344054;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.nav-cta:hover { border-color: #b7c6eb; color: var(--blue); background: white; }
.nav-cta span { color: var(--blue); margin-left: 5px; }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 83px 28px 55px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  column-gap: clamp(42px, 7vw, 96px);
}
.hero-copy { max-width: 530px; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #53617d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36a77e; box-shadow: 0 0 0 4px var(--mint); }
.hero h1, .section-heading h2, .links-heading h2, .bottom-cta h2 {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -2.3px;
}
.hero h1 { margin: 22px 0 17px; font-size: clamp(43px, 5.1vw, 64px); line-height: 1.04; font-weight: 820; }
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 450px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.shorten-card {
  width: 100%;
  padding: 25px;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(26, 39, 73, .075), 0 2px 6px rgba(26, 39, 73, .03);
}
.field-label { display: block; margin: 0 0 9px; color: #344054; font-size: 12px; font-weight: 700; }
.url-input-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid #dfe4ed;
  border-radius: 9px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.url-input-wrap:focus-within, .alias-input-wrap:focus-within, .domain-row select:focus {
  border-color: #7893e2;
  box-shadow: 0 0 0 3px rgba(49, 91, 214, .1);
}
.input-icon { width: 19px; flex-shrink: 0; fill: none; stroke: #8490a5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.url-input-wrap input, .alias-input-wrap input, .domain-row select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.url-input-wrap input::placeholder, .alias-input-wrap input::placeholder { color: #a0a8b6; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 15px; }
.alias-label { margin: 0; white-space: nowrap; }
.alias-label span { margin-left: 4px; color: #929aaa; font-weight: 450; }
.alias-input-wrap {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  color: #7c8799;
  font-size: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.alias-input-wrap span { white-space: nowrap; }
.alias-input-wrap input { width: 106px; font-size: 12px; }
.domain-row { display: grid; grid-template-columns: 1fr minmax(190px, 1.25fr); align-items: center; gap: 14px; }
.domain-row .field-label { margin: 0; }
.domain-row select {
  height: 39px;
  padding: 0 34px 0 11px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.domain-help { margin: 7px 0 0; color: #8a93a2; font-size: 10px; }
.domain-inventory { margin: 13px 0 17px; }
.domain-inventory summary { color: #52627e; font-size: 11px; font-weight: 650; cursor: pointer; list-style: none; }
.domain-inventory summary::-webkit-details-marker { display: none; }
.domain-inventory summary::after { content: "+"; float: right; color: var(--blue); font-size: 16px; line-height: 12px; }
.domain-inventory[open] summary::after { content: "−"; }
.domain-list {
  max-height: 220px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: auto;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfe;
}
.domain-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 6px; background: white; }
.domain-name { overflow: hidden; color: #39445a; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }
.domain-status { flex-shrink: 0; color: #8992a2; font-size: 9px; }
.domain-item.ready { border: 1px solid #d7eee3; background: #f5fbf7; }
.domain-item.ready .domain-status { color: #23865f; font-weight: 700; }
.primary-button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font: 700 14px Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.shorten-card > .primary-button { width: 100%; }
.primary-button:hover { transform: translateY(-1px); background: var(--blue-dark); box-shadow: 0 7px 16px rgba(49, 91, 214, .2); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-note { margin: 11px 0 0; color: #98a0ad; text-align: center; font-size: 10px; }
.form-message { margin-top: 10px; color: #bd4352; text-align: center; font-size: 12px; }
.form-message:empty { display: none; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid #dfe8ff; border-radius: 10px; background: #f3f6ff; animation: rise .22s ease-out; }
.result-card[hidden] { display: none; }
.result-copy { min-width: 0; }
.result-label { display: block; margin-bottom: 4px; color: #78839a; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.result-copy a { color: var(--blue); font-size: 14px; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.copy-button { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #c8d5f5; border-radius: 7px; background: white; color: #294aa5; font: 600 12px Inter, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.copy-button:hover { background: #f8faff; }
.copy-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-footnote { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; margin-top: -28px; color: #7e8798; font-size: 11px; }
.hero-footnote i { width: 3px; height: 3px; border-radius: 50%; background: #bac2cf; }
.tiny-shield { color: #32956f; font-size: 13px; }

.how-section, .links-section { max-width: 1110px; margin: 0 auto; padding: 61px 28px 0; }
.section-heading { text-align: center; }
.section-kicker { color: #78839a; font-size: 10px; }
.section-heading h2, .links-heading h2 { margin: 10px 0 7px; font-size: 31px; line-height: 1.2; }
.section-heading > p, .links-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 29px; }
.step-card { min-height: 155px; padding: 20px 21px 22px; border: 1px solid #e6e9f0; border-radius: 12px; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.step-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(34, 52, 98, .06); }
.step-number { display: flex; align-items: center; justify-content: space-between; color: #9aa2b2; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.step-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 16px; }
.icon-paste { background: #eef2ff; color: #5373d7; }
.icon-spark { background: #f3efff; color: #8b68d6; }
.icon-share { background: #eaf7f1; color: #49a37c; }
.step-card h3 { margin: 14px 0 7px; font-size: 14px; letter-spacing: -.2px; }
.step-card p { max-width: 270px; margin: 0; color: #7a8190; font-size: 11.5px; line-height: 1.65; }
.links-section { padding-top: 73px; }
.links-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.links-heading h2 { margin: 7px 0 5px; }
.link-count { margin-bottom: 3px; padding: 6px 10px; border-radius: 20px; background: #edf1fb; color: #53658f; font-size: 10px; font-weight: 700; }
.links-panel { min-height: 205px; border: 1px solid #e5e9f0; border-radius: 12px; background: white; }
.empty-state { padding: 31px 16px 28px; text-align: center; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: auto; border-radius: 13px; background: #f0f4ff; }
.empty-icon svg { width: 25px; fill: none; stroke: #6783d6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 12px 0 5px; font-size: 13px; }
.empty-state p { margin: 0 0 11px; color: #858c9a; font-size: 11px; }
.empty-state a { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.link-list { display: flex; flex-direction: column; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 14px 17px; border-bottom: 1px solid #eff1f5; }
.analytics-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 13px 17px 17px; border-bottom: 1px solid #eff1f5; background: #fafbfe; }
.analytics-panel[hidden] { display: none; }
.analytics-breakdown { min-width: 0; }
.analytics-breakdown h4 { margin: 0 0 8px; color: #53617d; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.analytics-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: #6d7688; font-size: 10px; }
.analytics-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-line strong { color: #344054; font-weight: 700; }
.analytics-empty { margin: 0; color: #929aaa; font-size: 10px; }
.link-row:last-child { border-bottom: 0; }
.link-main { min-width: 0; }
.link-short { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.link-destination { display: block; max-width: 620px; margin-top: 4px; overflow: hidden; color: #898f9e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.link-metric { color: #70788a; font-size: 10px; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; }
.icon-button { width: 31px; height: 29px; display: grid; place-items: center; border: 1px solid #e6e9ef; border-radius: 7px; background: white; color: #70788a; cursor: pointer; }
.icon-button:hover { border-color: #bfcae8; color: var(--blue); }
.icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.delete:hover { border-color: #edc2c5; color: #c44e5a; }
.privacy-note { margin: 12px 0 0; color: #969cab; font-size: 10px; }
.privacy-note span { margin-right: 4px; font-size: 15px; vertical-align: -1px; }
.bottom-cta { max-width: 1054px; margin: 72px auto 0; padding: 27px 30px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #e4e9f3; border-radius: 13px; background: #f0f4ff; }
.bottom-cta h2 { margin: 8px 0 0; font-size: 23px; letter-spacing: -1px; }
.bottom-cta .primary-button { height: 43px; padding: 0 19px; font-size: 12px; }
.site-footer { max-width: 1110px; margin: 31px auto 0; padding: 27px 28px; display: flex; align-items: center; gap: 15px; border-top: 1px solid #e8ebf1; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px; }
.footer-brand .brand-mark svg { width: 17px; }
.site-footer > p { margin: 0 auto 0 0; color: #9198a7; font-size: 10px; }
.footer-links { display: flex; gap: 19px; }
.footer-links a, .copyright { color: #858c9b; font-size: 10px; }
.copyright { margin-left: 13px; white-space: nowrap; }

.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal nav { margin-bottom: 28px; }
.legal nav a { color: var(--blue); text-decoration: none; font-size: 13px; }
.legal h1 { margin: 12px 0 20px; font-size: 42px; letter-spacing: -1.7px; }
.legal h2 { margin-top: 30px; font-size: 19px; letter-spacing: -.4px; }
.legal p, .legal li { color: #596579; font-size: 14px; line-height: 1.8; }
.legal a { color: var(--blue); }

@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 35px; max-width: 680px; padding-top: 63px; }
  .hero-copy { max-width: 590px; }
  .hero-footnote { grid-column: auto; flex-wrap: wrap; margin-top: -15px; }
}
@media (max-width: 700px) {
  .site-header { height: 65px; padding: 0 18px; }
  .main-nav { display: none; }
  .nav-cta { padding: 9px 11px; font-size: 11px; }
  .hero { padding: 56px 18px 36px; gap: 27px; }
  .hero h1 { font-size: clamp(38px, 10vw, 50px); letter-spacing: -1.8px; }
  .hero-description { font-size: 14px; }
  .shorten-card { padding: 19px 17px 16px; }
  .hero-footnote { justify-content: center; gap: 8px; font-size: 9px; }
  .how-section, .links-section { padding-right: 18px; padding-left: 18px; }
  .how-section { padding-top: 50px; }
  .section-heading h2, .links-heading h2 { font-size: 25px; }
  .steps-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 23px; }
  .step-card { min-height: unset; padding: 16px; }
  .step-card h3 { margin-top: 9px; }
  .step-card p { max-width: unset; }
  .links-section { padding-top: 56px; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px; }
  .analytics-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .link-metric { display: none; }
  .bottom-cta { margin: 54px 18px 0; padding: 22px 19px; gap: 15px; }
  .bottom-cta h2 { font-size: 19px; }
  .bottom-cta .primary-button { padding: 0 12px; white-space: nowrap; font-size: 10px; }
  .site-footer { margin: 25px 18px 0; padding: 22px 0; flex-wrap: wrap; gap: 11px; }
  .footer-links { gap: 13px; }
  .copyright { margin-left: auto; }
  .footer-brand { font-size: 15px; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: 35px; }
  .hero-footnote { max-width: 290px; }
  .form-options { align-items: flex-start; flex-direction: column; gap: 9px; }
  .alias-input-wrap { width: 100%; }
  .alias-input-wrap input { flex: 1; }
  .domain-row { grid-template-columns: 1fr; gap: 8px; }
  .domain-list { grid-template-columns: 1fr; }
  .copy-button { padding: 8px; }
  .copy-button span { font-size: 0; }
  .copy-button span::after { content: "Copy"; font-size: 12px; }
  .bottom-cta { align-items: flex-start; flex-direction: column; }
  .bottom-cta .primary-button { width: 100%; }
  .site-footer > p { display: none; }
  .footer-links { margin-left: auto; }
}
