/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { text-decoration: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --lime: #C8FF00;
  --lime-dark: #a8d900;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-1: #f5f5f7;
  --gray-2: #e8e8ec;
  --gray-3: #888;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-2);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.5px;
  color: var(--black); flex-shrink: 0;
}
.logo span {
  background: var(--black); color: var(--lime);
  padding: 2px 7px; border-radius: 5px;
}
.nav-menu {
  display: flex; align-items: center; gap: 32px;
}
.nav-menu a {
  color: #444; font-weight: 500; font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--black); }
.btn-nav {
  background: var(--black); color: var(--lime) !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 600 !important; font-size: 0.88rem !important;
  transition: var(--transition) !important;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; flex-direction: column;
  gap: 5px; transition: var(--transition);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,255,0,0.12) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--lime);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
  padding: 7px 14px; border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800; letter-spacing: -3px; line-height: 1.0;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.grad {
  background: linear-gradient(135deg, #C8FF00 0%, #90e000 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero > p {
  color: var(--gray-3); font-size: 1.1rem; max-width: 480px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

/* Shortener Box */
.shortener-box {
  width: 100%; max-width: 640px;
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.3s ease both;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.shortener-box:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(200,255,0,0.2), var(--shadow-lg);
}
.sb-inner { display: flex; gap: 8px; }
.url-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--black); padding: 14px 16px;
  min-width: 0;
}
.url-input::placeholder { color: #bbb; }
.shorten-btn {
  flex-shrink: 0;
  background: var(--black); color: var(--lime);
  border: none; border-radius: 12px;
  padding: 12px 22px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.shorten-btn:hover { background: #222; transform: scale(1.02); }
.shorten-btn:active { transform: scale(0.98); }
.btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(200,255,0,0.3); border-top-color: var(--lime);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.shorten-btn.loading .btn-label,
.shorten-btn.loading .btn-icon { display: none; }
.shorten-btn.loading .btn-spinner { display: block; }

/* Result Row */
.result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 4px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.result-row.show {
  max-height: 60px; opacity: 1; padding: 10px 12px 4px;
}
.result-url-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-check {
  width: 22px; height: 22px; background: #C8FF00;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; color: var(--black);
}
.result-url {
  color: var(--black); font-weight: 600; font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  flex-shrink: 0;
  background: var(--gray-1); color: var(--black);
  border: 1.5px solid var(--gray-2); border-radius: 8px;
  padding: 7px 16px; cursor: pointer; font-weight: 600; font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif; transition: var(--transition);
}
.copy-btn:hover { background: var(--black); color: var(--lime); border-color: var(--black); }
.copy-btn.copied { background: #C8FF00; color: var(--black); border-color: #C8FF00; }

/* Hero Chips */
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero-chips span {
  background: var(--gray-1); color: var(--gray-3);
  font-size: 0.78rem; font-weight: 500;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--gray-2);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--black); padding: 40px 24px;
}
.stat {
  flex: 1; min-width: 140px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
}
.stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800; letter-spacing: -1px;
  color: var(--lime);
}
.stat span { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* ===== FEATURES ===== */
.features { padding: 100px 24px; }
.feat-header {
  text-align: center; max-width: 600px; margin: 0 auto 60px;
}
.feat-tag {
  display: inline-block; background: rgba(200,255,0,0.15);
  color: #5a8a00; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.feat-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.feat-header p { color: var(--gray-3); font-size: 1rem; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feat-card {
  background: var(--white); border: 1.5px solid var(--gray-2);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition);
  cursor: default;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feat-icon {
  font-size: 2rem; margin-bottom: 16px;
  display: block;
}
.feat-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 8px;
}
.feat-card p { color: var(--gray-3); font-size: 0.9rem; line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
  background: var(--black); padding: 100px 24px; text-align: center;
}
.cta-section h2 {
  font-family: 'Syne', sans-serif; color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 12px;
}
.cta-section p { color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.cta-btn {
  display: inline-block; background: var(--lime); color: var(--black);
  padding: 16px 40px; border-radius: 12px; font-weight: 700;
  font-size: 1rem; font-family: 'Syne', sans-serif;
  transition: var(--transition);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,255,0,0.4); }

/* ===== FOOTER ===== */
footer {
  padding: 32px 24px;
  border-top: 1px solid var(--gray-2);
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
}
.footer-logo span { background: var(--black); color: var(--lime); padding: 2px 6px; border-radius: 4px; }
footer p { color: var(--gray-3); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-2);
    flex-direction: column; gap: 0; padding: 12px 0;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-menu a { padding: 14px 24px; width: 100%; border-radius: 0; }
  .btn-nav { margin: 8px 24px; width: calc(100% - 48px); text-align: center; border-radius: 10px !important; }

  .hero { padding-top: 100px; }
  .hero h1 { letter-spacing: -2px; }
  .shorten-btn { padding: 12px 16px; }
  .shorten-btn .btn-icon { display: none; }

  .stats-bar { gap: 0; }
  .stat-sep { display: none; }
  .stat { min-width: calc(50% - 1px); border-right: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(4) { border-right: none; }
  .stat:nth-child(2) { border-right: none; }

  .feat-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.6rem; letter-spacing: -2px; }
  .shortener-box { border-radius: 16px; }
  .sb-inner { flex-direction: column; }
  .shorten-btn { width: 100%; justify-content: center; border-radius: 10px; }
}
