/* ═══════════════════════════════════════════════════════
   hashb.ink — Main Stylesheet
   ═══════════════════════════════════════════════════════ */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --primary:     #41aa28;
    --primary-d:   #2e8a1a;
    --primary-l:   #5fc943;
    --bg:          #090b12;
    --bg2:         #0f1118;
    --bg3:         #141824;
    --card:        #111520;
    --card2:       #161b27;
    --border:      rgba(255,255,255,.08);
    --border-g:    rgba(65,170,40,.22);
    --border-b:    rgba(65,84,241,.18);
    --muted:       #7a85b0;
    --body:        #c2c8e8;
    --white:       #f0f2ff;
    --blue:        #4154f1;
    --nav-h:       64px;
    --radius:      12px;
    --radius-lg:   18px;
    --shadow:      0 4px 24px rgba(0,0,0,.45);
    --shadow-lg:   0 12px 60px rgba(0,0,0,.55);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: .85em;
    background: rgba(255,255,255,.07);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--primary-l);
}

/* ── Layout ──────────────────────────────────────────── */
.container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}
.section      { padding-block: clamp(4rem, 8vw, 7rem); }
.section-alt  { background: var(--bg2); }

/* ── Typography ──────────────────────────────────────── */
.section-label {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--primary); background: rgba(65,170,40,.1);
    border: 1px solid var(--border-g); border-radius: 100px;
    padding: 3px 12px; margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800; color: var(--white);
    line-height: 1.15; margin-bottom: .75rem;
}
.section-sub {
    font-size: 1rem; color: var(--muted); max-width: 580px;
    margin-bottom: 3rem;
}
.text-green { color: var(--primary); }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    font-size: .9rem; font-weight: 600;
    padding: .7rem 1.5rem; border-radius: var(--radius);
    border: none; cursor: pointer; transition: background .18s, transform .12s, box-shadow .18s;
    box-shadow: 0 4px 20px rgba(65,170,40,.25);
    text-decoration: none;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(65,170,40,.35); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--body);
    font-size: .9rem; font-weight: 600;
    padding: .7rem 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--border); cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
    text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.2); color: var(--white); background: rgba(255,255,255,.04); }
.btn-lg { font-size: 1rem; padding: .85rem 2rem; border-radius: var(--radius-lg); }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    background: rgba(9,11,18,.88); backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.nav-inner {
    max-width: 1120px; margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
    font-size: 1.1rem; font-weight: 800; color: var(--primary);
    letter-spacing: -.3px; flex-shrink: 0;
    display: flex; align-items: center; gap: 6px;
}
.nav-logo img { flex-shrink: 0; }
.nav-logo span { color: var(--body); }
.nav-links {
    display: flex; align-items: center; gap: .25rem; flex: 1;
}
.nav-link {
    font-size: .875rem; font-weight: 500; color: var(--muted);
    padding: .4rem .75rem; border-radius: 8px;
    transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-actions {
    display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}
.btn-nav-login {
    font-size: .875rem; font-weight: 500; color: var(--muted);
    padding: .4rem .85rem; border-radius: 8px;
    border: 1px solid var(--border); transition: color .15s, border-color .15s;
}
.btn-nav-login:hover { color: var(--white); border-color: rgba(255,255,255,.2); }
.btn-nav-cta {
    font-size: .875rem; font-weight: 600; color: #fff;
    padding: .45rem 1.1rem; border-radius: 9px;
    background: var(--primary); border: none;
    transition: background .18s, transform .1s;
    box-shadow: 0 2px 12px rgba(65,170,40,.3);
}
.btn-nav-cta:hover { background: var(--primary-d); transform: translateY(-1px); }
.nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px; background: var(--body);
    border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    min-height: 100svh; display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 4rem;
    position: relative; overflow: hidden; text-align: center;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(65,170,40,.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 600; color: var(--muted);
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 100px; padding: 5px 14px; margin-bottom: 1.75rem;
}
.badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(65,170,40,.5); }
    50% { box-shadow: 0 0 0 5px rgba(65,170,40,0); }
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800; color: var(--white); line-height: 1.1;
    letter-spacing: -.5px; margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--muted);
    max-width: 560px; margin-inline: auto; margin-bottom: 2rem; line-height: 1.7;
}
.hero-sub strong { color: var(--white); }
.hero-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
}

/* Demo box */
.hero-demo { max-width: 620px; margin-inline: auto; }
.demo-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.demo-input-wrap {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .5rem .5rem 1rem;
    border-bottom: 1px solid var(--border);
}
.demo-icon { color: var(--muted); flex-shrink: 0; }
.demo-input {
    flex: 1; background: none; border: none; outline: none;
    font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--white);
    padding: .35rem 0;
}
.demo-input::placeholder { color: var(--muted); }
.btn-shorten {
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 600;
    padding: .55rem 1.25rem; border-radius: 9px; transition: background .18s;
    flex-shrink: 0;
}
.btn-shorten:hover { background: var(--primary-d); }
.demo-result {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; padding: .65rem 1rem;
}
.demo-short {
    font-family: 'Space Mono', monospace; font-size: .85rem; color: var(--primary); font-weight: 700;
}
.btn-copy {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(65,170,40,.1); color: var(--primary);
    border: 1px solid var(--border-g); border-radius: 7px;
    font-size: .78rem; font-weight: 600; padding: .35rem .75rem;
    cursor: pointer; transition: background .15s; font-family: 'DM Sans', sans-serif;
}
.btn-copy:hover { background: rgba(65,170,40,.18); }
.demo-note {
    font-size: .72rem; color: var(--muted); padding: 0 1rem .65rem;
    text-align: center;
}
.demo-note a { color: var(--primary); }
.demo-error { font-size: .8rem; color: #ef4444; padding: .5rem 1rem; }

/* ── Stats Strip ──────────────────────────────────────── */
.stats-strip {
    background: var(--bg2); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding-block: 2rem;
}
.stats-row {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stat-num  { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ── Steps ────────────────────────────────────────────── */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.step-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem 1.75rem; position: relative; overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.step-card:hover { border-color: var(--border-g); transform: translateY(-3px); }
.step-num {
    position: absolute; top: 1.25rem; right: 1.25rem;
    font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,.04);
    line-height: 1; user-select: none;
}
.step-icon { font-size: 2rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.step-card p  { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.step-card strong { color: var(--body); }

/* ── Features Grid ────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem;
}
.feature-card {
    background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.75rem; transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border-g); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.feature-card p  { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ── Branding Preview Callout ────────────────────────── */
.preview-callout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.preview-callout-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white);
    line-height: 1.2; margin-bottom: .75rem;
}
.preview-callout-content p { font-size: .95rem; color: var(--muted); line-height: 1.75; }
.og-preview-card {
    background: #1a1f2e; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden;
    max-width: 360px; box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.og-img-bar {
    height: 72px; background: rgba(65,170,40,.08);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.og-logo-circle { font-size: 2rem; }
.og-body { padding: .9rem 1rem; }
.og-domain { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.og-title  { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.og-desc   { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.og-preview-label { font-size: .72rem; color: var(--muted); margin-top: .85rem; text-align: center; }

/* ── CTA Section ──────────────────────────────────────── */
.cta-section { padding-block: clamp(4rem, 8vw, 7rem); }
.cta-box {
    background: linear-gradient(135deg, rgba(65,170,40,.08), rgba(65,84,241,.05));
    border: 1px solid var(--border-g); border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 4rem); text-align: center; max-width: 700px; margin-inline: auto;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.cta-box p  { color: var(--muted); margin-bottom: 1.75rem; }
.cta-sub    { font-size: .8rem; color: var(--muted); margin-top: .85rem; margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    background: var(--bg2);
}
.footer-inner {
    max-width: 1120px; margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    display: flex; gap: 3rem; align-items: flex-start; flex-wrap: wrap;
    padding-bottom: 2.5rem;
}
.footer-brand { flex: 0 0 auto; max-width: 220px; }
.footer-logo { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.footer-logo span { color: var(--body); }
.footer-tagline { font-size: .8rem; color: var(--muted); margin-top: .65rem; line-height: 1.6; }
.footer-tagline a { color: var(--primary); }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; min-width: 120px; }
.footer-col h4 {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    color: var(--white); margin-bottom: .25rem;
}
.footer-col a { font-size: .85rem; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    max-width: 1120px; margin-inline: auto;
    padding: 1.25rem clamp(1rem, 5vw, 2rem);
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
    font-size: .78rem; color: var(--muted);
}
.footer-bottom a { color: var(--primary); }
.footer-live { display: flex; align-items: center; gap: .4rem; font-size: .72rem; }
.live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
    animation: pulse 2s infinite;
}

/* ── 404 Page ──────────────────────────────────────────── */
.error-page {
    min-height: 100svh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 2rem;
}
.error-code { font-size: 6rem; font-weight: 800; color: rgba(255,255,255,.06); line-height: 1; }
.error-icon { font-size: 3rem; margin-bottom: 1rem; }
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.error-sub   { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; max-width: 380px; }
.error-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Scroll reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .btn-nav-login { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: var(--bg2); border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem; gap: .25rem; z-index: 999;
    }
    .nav-links.open .nav-link { font-size: 1rem; padding: .6rem .5rem; width: 100%; }
    .nav-links.open + .nav-actions .btn-nav-login { display: block; }

    .preview-callout { grid-template-columns: 1fr; gap: 2.5rem; }
    .stat-sep { display: none; }
    .stats-row { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; justify-content: center; }
    .demo-input-wrap { flex-wrap: wrap; }
    .btn-shorten { width: 100%; justify-content: center; }
}
