/* URLTO homepage visual system v1
   Master reference: dark navy hero + restrained blue/violet accents + bright utility sections.
   Scoped to .home-shell so existing tools can migrate incrementally without regressions. */

.home-shell {
  --home-ink: #081326;
  --home-navy: #061225;
  --home-navy-soft: #0a1a33;
  --home-blue: #377dff;
  --home-cyan: #4dd6ff;
  --home-violet: #8b5cf6;
  --home-card: #ffffff;
  --home-soft: #f5f7fb;
  --home-border: #e7ebf2;
  --home-muted: #687386;
  background: #fff;
  color: var(--home-ink);
}

.home-shell .home-dark-zone {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(85, 94, 255, .19), transparent 28%),
    radial-gradient(circle at 24% 70%, rgba(28, 157, 255, .13), transparent 32%),
    linear-gradient(180deg, #071426 0%, #061123 68%, #07182d 100%);
  color: #fff;
}

.home-shell .home-dark-zone::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 26px;
  height: 130px;
  border-top: 1px solid rgba(104, 181, 255, .55);
  border-radius: 50% 50% 0 0;
  transform: rotate(-1.5deg);
  box-shadow:
    0 -8px 36px rgba(39, 124, 255, .18),
    0 -1px 0 rgba(116, 94, 255, .28);
  pointer-events: none;
}

.home-shell .site-header {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, .92);
}
.home-shell .site-header nav { color: rgba(255, 255, 255, .86); }
.home-shell .site-header nav > a:focus-visible,
.home-shell .site-header .language-menu-trigger:focus-visible {
  outline: 2px solid #9ec9ff;
  outline-offset: 4px;
  border-radius: 8px;
}

.home-shell .brand {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: .045em;
}

.home-shell .site-header nav a:hover { color: #fff; }
.home-shell .site-header .lang-switch {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.home-shell .hero {
  position: relative;
  z-index: 2;
  min-height: 610px;
  padding: 72px 0 88px;
}

.home-shell .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: #a7c9ff;
  font-size: .72rem;
  letter-spacing: .15em;
}

.home-shell .hero h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.home-shell .hero h1 .gradient-word {
  color: #8ccfff;
  background: linear-gradient(90deg, #55d7ff 0%, #7f8cff 52%, #bc75ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-shell .hero-copy {
  max-width: 680px;
  margin: 20px auto 28px;
  color: rgba(230, 238, 251, .73);
  line-height: 1.72;
}

.home-shell .hero-tool-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.home-shell .hero-tool-chips a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: rgba(239, 245, 255, .78);
  font-size: .76rem;
  font-weight: 650;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.home-shell .hero-tool-chips a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.home-shell .shortener-card {
  width: min(810px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.home-shell .shortener-card .url-row { gap: 8px; }
.home-shell .shortener-card input {
  min-height: 58px;
  border: 0;
  background: #f8faff;
}
.home-shell .shortener-card input:focus {
  box-shadow: inset 0 0 0 1px #8eb6ff, 0 0 0 3px rgba(69, 126, 255, .11);
}
.home-shell .shortener-card #submit-button {
  min-width: 142px;
  border-radius: 13px;
  background: linear-gradient(135deg, #356dff, #5a55f5 58%, #7c5cff);
  box-shadow: 0 9px 24px rgba(65, 91, 255, .28);
}
.home-shell .shortener-card #submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2f64ec, #4f49df 58%, #704fe5);
}
.home-shell .shortener-card .options,
.home-shell .shortener-card .status { color: #697386; }

.home-shell .home-metrics {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin-top: 34px;
  gap: 12px;
}
.home-shell .home-metric {
  padding: 15px 18px;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  color: #fff;
  backdrop-filter: blur(10px);
}
.home-shell .home-metric strong {
  color: #fff;
  font-size: 1.45rem;
}
.home-shell .home-metric span { color: rgba(222, 233, 248, .62); }
.home-shell .home-metrics:not([data-ready="true"]) strong { color: rgba(255,255,255,.62); }

.home-shell .home-light-zone {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 54%, #fff 100%);
}

.home-shell .home-section {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.home-shell .section-kicker {
  margin: 0 0 10px;
  color: #3976f6;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.home-shell .section-title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.home-shell .section-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-shell .home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.home-shell .home-tool-card {
  min-height: 210px;
  padding: 23px;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 42, 70, .045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.home-shell .home-tool-card:hover {
  transform: translateY(-3px);
  border-color: #cfdcff;
  box-shadow: 0 18px 42px rgba(35, 54, 88, .09);
}
.home-shell .tool-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 12px;
  background: #edf4ff;
  color: #2f70f1;
  font-size: 1rem;
  font-weight: 900;
}
.home-shell .home-tool-card:nth-child(2) .tool-icon { background: #f4ecff; color: #7c4ee9; }
.home-shell .home-tool-card:nth-child(3) .tool-icon { background: #fff1ea; color: #e96537; }
.home-shell .home-tool-card:nth-child(4) .tool-icon { background: #eafaf5; color: #168b6b; }
.home-shell .home-tool-card:nth-child(5) .tool-icon { background: #f1efff; color: #6557da; }
.home-shell .home-tool-card:nth-child(6) .tool-icon { background: #edf3ff; color: #3267d8; }
.home-shell .home-tool-card strong {
  display: block;
  font-size: 1.02rem;
}
.home-shell .home-tool-card p {
  min-height: 66px;
  margin: 10px 0 16px;
  color: var(--home-muted);
  font-size: .9rem;
  line-height: 1.62;
}
.home-shell .home-tool-card span {
  color: #356fe7;
  font-size: .86rem;
  font-weight: 800;
}

.home-shell .why-panel {
  padding-top: 26px;
  border-top: 1px solid var(--home-border);
}
.home-shell .why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 42, 70, .04);
  overflow: hidden;
}
.home-shell .why-item {
  min-height: 180px;
  padding: 28px 24px;
  text-align: center;
}
.home-shell .why-item + .why-item { border-left: 1px solid var(--home-border); }
.home-shell .why-dot {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #3674ec;
  font-weight: 900;
}
.home-shell .why-item:nth-child(2) .why-dot { background: #eafaf5; color: #17886a; }
.home-shell .why-item:nth-child(3) .why-dot { background: #f2edff; color: #7656dd; }
.home-shell .why-item:nth-child(4) .why-dot { background: #edf3ff; color: #3268d8; }
.home-shell .why-item strong { font-size: .98rem; }
.home-shell .why-item p {
  margin: 9px 0 0;
  color: var(--home-muted);
  font-size: .84rem;
  line-height: 1.62;
}

.home-shell .future-card {
  margin: 10px auto 76px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(118deg, #071426 0%, #0c2142 70%, #27245a 100%);
  color: #fff;
  box-shadow: 0 18px 50px rgba(10, 25, 50, .15);
}
.home-shell .future-card .eyebrow { color: #79baff; }
.home-shell .future-card h2 { color: #fff; }
.home-shell .future-copy p { color: rgba(226, 235, 249, .67); }
.home-shell .future-card .tool-link {
  margin-right: 16px;
  color: #8dc8ff;
}

.home-shell footer.trust-footer {
  width: 100%;
  min-height: 150px;
  padding: 34px max(18px, calc((100% - 1100px) / 2));
  border: 0;
  background: #071321;
  color: rgba(230, 237, 248, .6);
}
.home-shell .trust-footer a:hover { color: #fff; }

@media (max-width: 820px) {
  .home-shell .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-shell .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-shell .why-item + .why-item { border-left: 0; }
  .home-shell .why-item:nth-child(even) { border-left: 1px solid var(--home-border); }
  .home-shell .why-item:nth-child(n+3) { border-top: 1px solid var(--home-border); }
}

@media (max-width: 700px) {
  .home-shell .site-header > nav > a:not(.lang-switch) { display: none; }
  .home-shell .hero { min-height: 560px; padding: 56px 0 70px; }
  .home-shell .hero-tool-chips { gap: 6px; }
  .home-shell .hero-tool-chips a { padding: 6px 9px; font-size: .7rem; }
  .home-shell .shortener-card { padding: 9px; }
  .home-shell .shortener-card #submit-button { width: 100%; min-width: 0; }
  .home-shell .home-section { padding: 58px 0; }
  .home-shell .home-tools-grid { grid-template-columns: 1fr; }
  .home-shell .home-tool-card { min-height: 0; }
  .home-shell .home-tool-card p { min-height: 0; }
  .home-shell .future-card { margin-bottom: 54px; }
}

@media (max-width: 460px) {
  .home-shell .home-dark-zone::after { bottom: 18px; height: 86px; }
  .home-shell .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .home-shell .hero-copy { font-size: .97rem; }
  .home-shell .home-metrics { gap: 8px; }
  .home-shell .home-metric { padding: 13px 9px; }
  .home-shell .home-metric strong { font-size: 1.16rem; }
  .home-shell .home-section { width: min(100% - 24px, 1100px); }
  .home-shell .why-grid { grid-template-columns: 1fr; }
  .home-shell .why-item:nth-child(even) { border-left: 0; }
  .home-shell .why-item:nth-child(n+2) { border-top: 1px solid var(--home-border); }
  .home-shell footer.trust-footer { align-items: flex-start; }
}


.home-shell { overflow-x: clip; }
.home-shell .shortener-workbench,
.home-shell .url-row,
.home-shell .custom-address-field { min-width: 0; }
.home-shell .shortener-workbench input { min-width: 0; width: 100%; }

.home-shell .home-benefits {
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.home-shell .home-benefit {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  text-align: left;
}
.home-shell .home-benefit strong { display: block; color: #f7faff; font-size: .82rem; }
.home-shell .home-benefit span {
  display: block;
  margin-top: 4px;
  color: rgba(222,232,248,.62);
  font-size: .71rem;
  line-height: 1.45;
  word-break: keep-all;
}
.home-shell .qr-note {
  max-width: 180px;
  margin: 7px 0 0;
  color: rgba(220,231,248,.60);
  font-size: .67rem;
  line-height: 1.45;
}
.home-shell .future-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(226,235,249,.54) !important;
  font-size: .78rem;
}
@media (max-width: 700px) {
  .home-shell .home-benefits { grid-template-columns: 1fr; }
  .home-shell .qr-note { max-width: none; }
}
