@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(14,165,233,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 15px; font-weight: 800;
}
.logo span { color: var(--primary); }
nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
nav ul a {
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-sm); transition: all 0.18s;
}
nav ul a:hover { color: var(--primary); background: var(--primary-light); }

main { flex: 1; }

.hero {
  text-align: center; padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,165,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 50%, rgba(245,158,11,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 12px; font-weight: 600; padding: 5px 14px;
  border-radius: 999px; margin-bottom: 1.5rem;
  border: 1px solid rgba(14,165,233,0.2); letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--primary);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1.1rem; color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.subtitle {
  font-size: 1.1rem; color: var(--text-2); font-weight: 400;
  margin-bottom: 2.5rem; max-width: 480px; margin-left: auto;
  margin-right: auto; line-height: 1.6;
}

.shorten-card {
  max-width: 680px; margin: 0 auto; background: var(--surface);
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative;
}
.shorten-row { display: flex; gap: 0.75rem; }
.shorten-card input[type="url"] {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.875rem 1.1rem; font-size: 15px; font-family: inherit;
  color: var(--text); background: var(--bg); outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
.shorten-card input[type="url"]:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.12); background: white;
}
.shorten-card input::placeholder { color: var(--text-3); }
.btn-shorten {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: var(--radius-sm);
  padding: 0.875rem 1.75rem; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(14,165,233,0.35);
  letter-spacing: -0.01em;
}
.btn-shorten:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }
.btn-shorten:active { transform: translateY(0); }
.btn-shorten:disabled { background: linear-gradient(135deg,#94a3b8,#64748b); box-shadow: none; cursor: not-allowed; transform: none; }

.result-box {
  margin-top: 1rem; background: #f0fdf9;
  border: 1.5px solid #a7f3d0; border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; display: none;
}
.result-label {
  font-size: 11px; font-weight: 600; color: #059669;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.result-row { display: flex; align-items: center; gap: 0.75rem; }
.result-url {
  font-family: 'DM Mono', monospace; font-size: 15px; color: #065f46;
  text-decoration: none; flex: 1; word-break: break-all; font-weight: 500;
}
.result-url:hover { text-decoration: underline; }
.btn-copy {
  background: white; color: #059669; border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-sm); padding: 0.5rem 1rem; font-size: 13px;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.btn-copy:hover { background: #059669; color: white; border-color: #059669; }
.copy-msg { font-size: 12px; color: #059669; margin-top: 0.5rem; font-weight: 500; }

.error-box {
  margin-top: 0.75rem; background: #fef2f2; border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm); padding: 0.875rem 1.1rem;
  font-size: 14px; color: var(--danger); font-weight: 500; display: none;
}

.ad-section { max-width: 1160px; margin: 2.5rem auto; padding: 0 1.5rem; }
.ad-placeholder {
  background: var(--surface2); border: 1.5px dashed var(--border);
  border-radius: var(--radius); height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.ad-placeholder p { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.stats-bar { max-width: 680px; margin: 2rem auto 0; display: flex; justify-content: center; gap: 3rem; }
.stat { text-align: center; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

.features-section { max-width: 1160px; margin: 3rem auto 0; padding: 0 1.5rem 5rem; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 2.5rem;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.22s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transform: scaleX(0); transition: transform 0.22s; transform-origin: left;
}
.feature-card:hover { border-color: rgba(14,165,233,0.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 44px; height: 44px; background: var(--primary-light);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

footer { background: var(--text); color: #94a3b8; padding: 2.5rem 1.5rem; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 18px; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.03em; }
.footer-logo span { color: var(--primary); }
footer p { font-size: 13px; }
footer ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer ul a { color: #94a3b8; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.18s; }
footer ul a:hover { color: white; }

.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border-bottom: 1px solid var(--border); padding: 3.5rem 1.5rem 3rem; text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); margin-bottom: 0.5rem; }
.page-hero p { font-size: 15px; color: var(--text-2); }
.page-content { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem 5rem; }
.page-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.6rem; letter-spacing: -0.02em; }
.page-content p, .page-content li { font-size: 15px; line-height: 1.8; color: var(--text-2); }
.page-content ul { padding-left: 1.4rem; margin-top: 0.5rem; }
.page-content li { margin-bottom: 0.35rem; }
.page-content a { color: var(--primary); }
.page-content strong { color: var(--text); font-weight: 600; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg); outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.1); background: white;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: var(--radius-sm); padding: 0.9rem;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(14,165,233,0.3); letter-spacing: -0.01em;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.4); }
.success-msg {
  background: #f0fdf9; border: 1.5px solid #a7f3d0; border-radius: var(--radius-sm);
  padding: 0.875rem 1rem; font-size: 14px; color: #059669; font-weight: 600;
  display: none; margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .shorten-row { flex-direction: column; }
  .btn-shorten { width: 100%; }
  nav ul { display: none; }
  .stats-bar { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  footer ul { justify-content: center; }
}
.faq-section {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color 0.18s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.25s, color 0.18s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}