@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-800.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-dark: #1f1f24;
  --text: #1f1f24;
  --text-muted: #555;
  --accent: #2a7de1;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1f1f24;
    --text: #f5f5f7;
    --text-muted: #b3b3c2;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header,
.site-footer {
  text-align: center;
  padding: 1.5rem;
}

.site-logo {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 0.65rem;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1.05;
  color: var(--accent);
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-tagline {
  margin: 0.65rem auto 0;
  max-width: min(720px, 90vw);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 500;
}

.site-logo,
.site-logo__accent {
  background: none;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .site-logo,
  .site-logo__accent {
    background: linear-gradient(135deg, #2a7de1 0%, #1b4fc9 40%, #0e9aa7 100%);
  }

  .site-logo {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
  }

  .site-logo__accent {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
  }
}

.site-logo__accent {
  font-size: 1.1em;
  letter-spacing: 0.04em;
  position: relative;
}

.site-logo__accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 0.2rem;
  background: currentColor;
  opacity: 0.35;
  border-radius: 999px;
}

.site-logo__accent,
.site-logo span {
  display: inline-block;
}

@media (max-width: 520px) {
  .site-logo {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    gap: 0.35rem;
    letter-spacing: 0.008em;
  }

  .site-tagline {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
  }

  .site-logo__accent::after {
    bottom: -0.25rem;
  }
}

.site-main {
  flex: 1;
  width: min(900px, 92vw);
  margin: 0 auto 3rem;
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 600;
}

input,
select {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

#ip-input {
  border: 2px solid rgba(42, 125, 225, 0.65);
  background: rgba(42, 125, 225, 0.08);
  box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.08);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#ip-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(42, 125, 225, 0.12);
  box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.2);
}

#prefix-input {
  border: 2px solid rgba(42, 125, 225, 0.65);
  background: rgba(42, 125, 225, 0.08);
  box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.08);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#prefix-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(42, 125, 225, 0.12);
  box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.2);
}

button {
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(42, 125, 225, 0.35);
}

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

.result {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(42, 125, 225, 0.08);
}

.result strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.app-notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.tablet-stack {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .tablet-stack {
    grid-template-columns: 2fr 1fr;
  }
}

.info-panel {
  margin-top: 1.5rem;
}

.info-panel + .info-panel {
  margin-top: 1rem;
}

.feature-list,
.usage-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.feature-list li,
.usage-steps li {
  margin-bottom: 0.5rem;
}

.not-found {
  text-align: center;
  display: grid;
  gap: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(42, 125, 225, 0.35);
}

.button-link:focus-visible {
  outline: 3px solid rgba(42, 125, 225, 0.4);
  outline-offset: 3px;
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.faq details {
  background: rgba(42, 125, 225, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}
