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

:root {
    --bg: #09090b;
    --bg-card: #111113;
    --bg-elevated: #18181b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: #27272a;
    --border-light: #1e1e21;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 0;
}
.btn-ghost:hover { color: var(--text); }
.btn-outline-sm {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-sm:hover { color: var(--text); border-color: var(--text-dim); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Nav ===== */
.nav {
    padding: 20px 0;
    position: relative;
    z-index: 10;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.logo, .logo-sm {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span, .logo-sm span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
}
.hero-sub {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== Services ===== */
.services {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.service {
    background: var(--bg);
    padding: 36px 32px;
    transition: background var(--transition);
}
.service:hover { background: var(--bg-card); }
.service-num {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.service h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.service p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ===== Social Proof ===== */
.proof {
    padding: 48px 0;
}
.proof-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.proof-item { text-align: center; }
.proof-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.proof-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}
.proof-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border);
}

/* ===== Work / Portfolio Teaser ===== */
.work {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}
.section-label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.work-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.work-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}
.work-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.work-image {
    width: 100%;
    height: 180px;
}
.work-image-1 { background: linear-gradient(135deg, #1a1f3a, #0f1428); }
.work-image-2 { background: linear-gradient(135deg, #1a2a1e, #0f180f); }
.work-image-3 { background: linear-gradient(135deg, #2a1f0e, #1a1208); }

.work-info { padding: 18px 20px; }
.work-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.work-info p { color: var(--text-dim); font-size: 0.82rem; }

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.contact-text > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}
.contact-link:hover { color: var(--accent); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}
.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--bg-card); }

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-left p { color: var(--text-dim); font-size: 0.78rem; }
.footer-right { display: flex; gap: 20px; }
.footer-right a {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-right a:hover { color: var(--text); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 1.8rem; }

    .services-grid { grid-template-columns: 1fr; }

    .proof-inner { flex-wrap: wrap; gap: 24px; }
    .proof-dot { display: none; }

    .work-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .work-grid { grid-template-columns: 1fr; }

    .contact-layout { grid-template-columns: 1fr; gap: 40px; }

    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-left { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-ghost { padding: 8px 0; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}
