@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg:        #070d0d;
    --surface:   #0d1a1a;
    --border:    #0f2e2a;
    --accent:    #00ffcc;
    --accent-dim:#00c9a0;
    --text:      #e8faf6;
    --muted:     #4d7a72;
    --warn:      #f59e0b;
    --radius:    5px;
}

html, body { height: 100%; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.nav-brand svg { color: var(--accent); }

.nav-links a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid rgba(0, 255, 204, 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius);
    transition: background 0.15s, border-color 0.15s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    background: rgba(0, 255, 204, 0.08);
    border-color: var(--accent);
}

/* ── Main layout ── */
.container {
    flex: 1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

/* ── Hero ── */
.hero { margin-bottom: 2.75rem; }

.hero-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.22rem 0.6rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 3px;
    background: rgba(0, 255, 204, 0.05);
}

.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 0.75rem;
    max-width: 520px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 460px;
    line-height: 1.65;
}

/* ── Form ── */
.form-wrap {
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.45rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.form-wrap:focus-within {
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.07);
}

.form-wrap input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0.5rem 0.75rem;
}

.form-wrap input[type="url"]::placeholder { color: var(--muted); }

.btn-shorten {
    background: var(--accent);
    color: #070d0d;
    border: none;
    border-radius: 4px;
    padding: 0.55rem 1.3rem;
    font-size: 0.825rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
}

.btn-shorten:hover { background: var(--accent-dim); }
.btn-shorten:active { transform: scale(0.98); }

/* ── Result box ── */
.result-box {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
}

.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.result-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--warn);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 3px;
    padding: 0.18rem 0.5rem;
    letter-spacing: 0.03em;
}

.result-expires {
    font-size: 0.72rem;
    color: var(--warn);
    font-weight: 500;
}

.result-url {
    font-size: 0.975rem;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.result-url a {
    color: var(--accent);
    text-decoration: none;
}

.result-url a:hover { text-decoration: underline; }

.result-note {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
}

.result-note a {
    color: var(--warn);
    font-weight: 600;
    text-decoration: none;
}

/* ── Benefits grid ── */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 3rem;
}

.benefit {
    background: var(--surface);
    padding: 1.25rem 1rem 1.2rem;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(0, 255, 204, 0.08);
    color: var(--accent);
}

.benefit-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: block;
}

.benefit-desc {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .navbar { padding: 0.875rem 1rem; }
    .container { padding: 2.5rem 1rem 2rem; }
    .hero h1 { font-size: 1.7rem; }
    .form-wrap { flex-direction: column; }
    .btn-shorten { width: 100%; padding: 0.7rem; text-align: center; }
    .benefits { grid-template-columns: 1fr; }
}
