* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
header {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
  color: #666;
}

.nav-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.nav-btn.active {
  background: #1a1a1a;
  color: white;
}

/* Main Content */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.intro p {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

/* Main Box */
.main-box {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

/* Forms */
.input-wrap {
  margin-bottom: 1.5rem;
}

.input-wrap label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.light {
  color: #999;
  font-weight: 400;
}

input[type="url"],
input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #fafafa;
}

input:focus {
  outline: none;
  border-color: #1a1a1a;
  background: white;
}

.helper {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: #999;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Result Box */
.result-box {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.success-msg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f0fdf4;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.success-msg > div {
  flex: 1;
}

.result-label {
  font-size: 0.875rem;
  color: #166534;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.result-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  color: #166534;
  font-weight: 600;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  background: white;
  border: 1px solid #22c55e;
  color: #22c55e;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: #22c55e;
  color: white;
}

/* Error */
.error-msg {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 1rem;
  background: #fef2f2;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  align-items: flex-start;
}

.x {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.error-msg div {
  color: #991b1b;
  font-weight: 500;
}

/* Info Blocks */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.block {
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 600;
}

.block p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Stats Box */
.stats-box {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.stats-header {
  margin-bottom: 1.5rem;
}

.stats-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.stats-title span {
  font-family: 'Space Grotesk', monospace;
  color: #666;
  font-weight: 500;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  background: #fafafa;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.stat-row.big {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.stat-name {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.stat-data {
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
}

.long-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  max-width: 60%;
}

.short-url {
  font-family: 'Space Grotesk', monospace;
}

.clicks {
  font-size: 1.75rem;
  color: #22c55e;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid #e5e5e5;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

footer p {
  color: #666;
  font-size: 0.95rem;
}

footer a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

footer a:hover {
  border-bottom-color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
  .intro h1 {
    font-size: 2.25rem;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .main-box {
    padding: 1.75rem;
  }

  .info-blocks {
    grid-template-columns: 1fr;
  }

  .success-msg {
    flex-direction: column;
  }

  .copy-btn {
    align-self: flex-start;
  }

  .stat-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .long-url {
    max-width: 100%;
  }

  .stat-data {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }

  .intro h1 {
    font-size: 1.875rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .main-box {
    padding: 1.5rem;
  }
}