/* =========================================================
   Varabit.top — Clean SaaS-style agency portfolio
   ========================================================= */

:root {
    --primary: #0099cc;
    --primary-dark: #007aa3;
    --primary-soft: #e6f6fb;
    --secondary: #cc99ff;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-dim: #475569;
    --text-mute: #94a3b8;
    --success: #16a34a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: white; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--text);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 153, 204, 0.18);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 32px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(40px, 6.5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-sub {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Notify form */
.notify {
    max-width: 460px;
    margin: 0 auto 64px;
}
.notify-field {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.notify-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.15);
}
.notify-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text);
    min-width: 0;
}
.notify-field input::placeholder { color: var(--text-mute); }
.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--font-sans);
    white-space: nowrap;
}
.notify-btn:hover { background: var(--primary-dark); }
.notify-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.notify-btn:hover svg { transform: translateX(2px); }
.notify-hint {
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 12px;
}
.notify-hint.success { color: var(--success); }
.notify-hint.error { color: #dc2626; }

/* Countdown */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    padding: 14px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.cd-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.cd-label {
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.cd-sep {
    font-size: 28px;
    color: var(--text-mute);
    font-weight: 300;
    margin-bottom: 18px;
}

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
    padding: 80px 0;
    background: var(--bg-soft);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 10px;
    margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.service-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
    padding: 80px 0 110px;
    background:
        radial-gradient(ellipse at top left, rgba(0, 153, 204, 0.06), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(204, 153, 255, 0.05), transparent 50%),
        var(--bg-soft);
    position: relative;
}
.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #9966ff);
    border-radius: 0 0 4px 4px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #9966ff);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}
.stat:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.stat:hover::before {
    transform: scaleX(1);
}
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.12), rgba(204, 153, 255, 0.12));
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.stat:hover .stat-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), #9966ff);
    color: white;
}
.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}
.stat-num {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #0066cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    margin-left: 2px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--text);
    color: white;
    padding: 60px 0 28px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
    height: 32px;
    width: auto;
    display: block;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-socials a {
    display: inline-block;
    margin: 0;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s, border-color 0.2s;
}
.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 12px;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 1.8s ease-in-out infinite;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { padding: 70px 0 60px; }
    .hero-sub { font-size: 17px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat { padding: 28px 16px; }
    .stat-num { font-size: 38px; }
    .stat-icon { width: 44px; height: 44px; margin-bottom: 16px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 540px) {
    .container { padding: 0 20px; }
    .nav-cta { display: none; }
    .hero { padding: 50px 0 50px; }
    .hero-title { font-size: 38px; }
    .notify-field { flex-direction: column; padding: 8px; gap: 8px; }
    .notify-field input { width: 100%; padding: 12px; }
    .notify-btn { width: 100%; justify-content: center; padding: 12px; }
    .countdown { gap: 4px; }
    .cd-cell { min-width: 64px; padding: 12px 8px; }
    .cd-num { font-size: 28px; }
    .cd-sep { font-size: 20px; }
    .service-grid { grid-template-columns: 1fr; }
    .services, .work { padding: 60px 0; }
    .stats { padding: 60px 0 70px; }
    .stat-num { font-size: 32px; }
    .stat-label { font-size: 12px; }
}
