/* ============================================
   BUILD BEYOND HIGHTECH — Cyber Serif Style
   Emerald (#10b981) on Deep Black (#050505)
   Newsreader (serif) + Inter (sans) + Space Grotesk (tech)
   ============================================ */

:root {
    --bg: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: #0d0d0d;
    --text: #EBEBEB;
    --text-dim: rgba(235, 235, 235, 0.5);
    --text-muted: rgba(235, 235, 235, 0.25);
    --emerald: #10b981;
    --emerald-dim: rgba(16, 185, 129, 0.15);
    --emerald-glow: rgba(16, 185, 129, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.3);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-lg: 24px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.emerald { color: var(--emerald); }
em { font-family: 'Newsreader', Georgia, serif; font-style: italic; }

/* ============ LOADER ============ */
#loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px;
    transition: opacity 0.6s var(--ease);
}
.loader-bar { width: 160px; height: 1px; background: var(--border); }
.loader-fill { height: 100%; width: 0; background: var(--emerald); transition: width 0.15s; }
.loader-text { font-family: 'Space Grotesk'; font-size: 11px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }

/* ============ CURSOR SPOTLIGHT ============ */
.cursor-spotlight {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 1;
    transform: translate(-50%, -50%); transition: opacity 0.3s;
    will-change: transform;
}

/* ============ NAV ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 40px; transition: all 0.4s var(--ease);
}
nav.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner {
    max-width: 1200px; margin: 0 auto; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none;
    font-family: 'Space Grotesk'; font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--emerald);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--emerald); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 10px 24px; background: transparent; color: var(--emerald);
    border: 1px solid var(--emerald); border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--emerald); color: var(--bg); }

/* ============ HERO ============ */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; padding: 120px 40px 80px;
}
.hero-glow {
    position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-particles .dot {
    position: absolute; width: 2px; height: 2px;
    background: var(--emerald); border-radius: 50%; opacity: 0;
    box-shadow: 0 0 6px var(--emerald);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-label {
    display: inline-block; font-family: 'Space Grotesk'; font-size: 11px;
    font-weight: 600; letter-spacing: 0.2em; color: var(--emerald);
    padding: 8px 20px; border: 1px solid rgba(16,185,129,0.25);
    border-radius: 999px; background: var(--emerald-glow);
    margin-bottom: 40px; opacity: 0; transform: translateY(20px);
}
.hero-title {
    font-family: 'Newsreader', Georgia, serif; font-size: clamp(42px, 7vw, 88px);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
    margin-bottom: 28px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); }
.hero-title em { font-weight: 400; }
.hero-sub {
    font-size: 18px; color: var(--text-dim); line-height: 1.7;
    max-width: 560px; margin: 0 auto 44px;
    opacity: 0; transform: translateY(20px);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; opacity: 0; transform: translateY(20px); }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 36px; background: var(--emerald); color: var(--bg);
    font-weight: 700; font-size: 15px; border-radius: 999px;
    text-decoration: none; transition: all 0.3s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,0.35); }
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
    display: inline-flex; align-items: center; padding: 16px 36px;
    color: var(--text-dim); font-weight: 600; font-size: 15px;
    text-decoration: none; border: 1px solid var(--border); border-radius: 999px;
    transition: all 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }
.btn-lg { padding: 20px 48px; font-size: 17px; }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0;
}
.hero-scroll span { font-family: 'Space Grotesk'; font-size: 10px; color: var(--text-muted); letter-spacing: 0.2em; }
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--emerald), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; height: 20px; } 50% { opacity: 1; height: 40px; } }

/* ============ 3D SCENE ============ */
.scene-wrapper { position: relative; height: 500vh; background: var(--bg); }
.scene-pin { position: relative; width: 100%; height: 100vh; overflow: hidden; background: var(--bg); }
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 10; pointer-events: none;
}
.scene-overlay h2 {
    font-family: 'Newsreader', serif; font-size: clamp(32px, 5vw, 64px);
    font-weight: 700; letter-spacing: -0.02em; text-align: center;
    opacity: 0; line-height: 1.15;
    text-shadow: 0 0 40px rgba(0,0,0,0.95), 0 0 80px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,1);
    background: rgba(5,5,5,0.6);
    padding: 32px 48px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}
.scene-overlay p {
    font-size: 17px; color: var(--text-dim); margin-top: 16px; opacity: 0;
    text-shadow: 0 0 30px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,1);
}

/* ============ SERVICES ============ */
.services { padding: 160px 0; position: relative; }
.section-label {
    font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600;
    color: var(--emerald); letter-spacing: 0.2em; margin-bottom: 16px;
    display: block;
}
.section-title {
    font-family: 'Newsreader', serif; font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px;
}
.section-sub { font-size: 17px; color: var(--text-dim); line-height: 1.7; max-width: 560px; margin-bottom: 64px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 44px 36px;
    transition: all 0.5s var(--ease);
    opacity: 0; transform: translateY(40px);
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service-card.featured { border-color: rgba(16,185,129,0.2); }
.service-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.card-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(16,185,129,0.03) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}
@keyframes shimmer { 0% { background-position: 200% 200%; } 100% { background-position: -200% -200%; } }
.card-label {
    font-family: 'Space Grotesk'; font-size: 10px; font-weight: 600;
    color: var(--emerald); letter-spacing: 0.15em; margin-bottom: 20px; display: block;
}
.service-card h3 {
    font-family: 'Newsreader', serif; font-size: 28px; font-weight: 700;
    margin-bottom: 16px; letter-spacing: -0.01em;
}
.service-card p { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 28px; }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.card-features li {
    font-size: 13px; color: var(--text-dim); padding-left: 20px;
    position: relative;
}
.card-features li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--emerald); box-shadow: 0 0 8px var(--emerald);
}

/* ============ STATS ============ */
.stats { padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { text-align: center; opacity: 0; transform: translateY(30px); }
.stat-number {
    font-family: 'Space Grotesk'; font-size: clamp(40px, 5vw, 64px);
    font-weight: 700; color: var(--emerald); letter-spacing: -0.03em;
}
.stat-suffix { font-family: 'Space Grotesk'; font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--emerald); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.05em; }

/* ============ TECH MARQUEE ============ */
.tech { padding: 160px 0; }
.tech-marquee { overflow: hidden; margin-top: 48px; position: relative; }
.tech-marquee::before, .tech-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.tech-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tech-marquee::after { right: 0; background: linear-gradient(90deg, transparent, var(--bg)); }
.marquee-track {
    display: flex; gap: 48px; animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-family: 'Space Grotesk'; font-size: 15px; font-weight: 500;
    color: var(--text-muted); white-space: nowrap;
    padding: 12px 24px; border: 1px solid var(--border); border-radius: 999px;
    transition: all 0.3s;
}
.marquee-track span:hover { color: var(--emerald); border-color: var(--border-hover); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ PROCESS ============ */
.process { padding: 160px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.process-step { opacity: 0; transform: translateY(30px); position: relative; }
.step-num {
    font-family: 'Space Grotesk'; font-size: 48px; font-weight: 700;
    color: var(--emerald); opacity: 0.15; line-height: 1;
}
.step-line {
    width: 40px; height: 1px; background: var(--emerald); opacity: 0.3;
    margin: 20px 0;
}
.process-step h3 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.process-step p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ============ CTA ============ */
.cta {
    padding: 200px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-family: 'Newsreader', serif; font-size: clamp(42px, 6vw, 80px);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
    margin-bottom: 24px; opacity: 0;
}
.cta-sub { font-size: 18px; color: var(--text-dim); margin-bottom: 44px; opacity: 0; }
.cta .btn-primary { opacity: 0; }

/* ============ HERO PROOF ============ */
.hero-proof {
    display: flex; align-items: center; gap: 14px;
    margin-top: 44px; opacity: 0; transform: translateY(20px);
    font-size: 14px; color: var(--text-dim);
}
.hero-proof strong { color: var(--text); }
.proof-avatars { display: flex; margin-left: 4px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text);
    border: 2px solid var(--bg); margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* ============ PROBLEM ============ */
.problem { padding: 120px 0; border-bottom: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.problem-stat { text-align: center; opacity: 0; transform: translateY(30px); }
.big-number {
    font-family: 'Space Grotesk'; font-size: clamp(48px, 6vw, 80px);
    font-weight: 700; color: var(--emerald); display: block; letter-spacing: -0.03em;
}
.problem-stat p { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin-top: 12px; }
.problem-question {
    font-family: 'Newsreader', serif; font-size: clamp(24px, 3vw, 36px);
    text-align: center; color: var(--text); opacity: 0;
}

/* ============ UPWORK BADGE ============ */
.upwork-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border: 1px solid rgba(20, 168, 0, 0.3);
    border-radius: 999px; background: rgba(20, 168, 0, 0.08);
    color: #14a800; font-size: 12px; font-weight: 600;
    text-decoration: none; transition: all 0.3s;
    font-family: 'Space Grotesk'; letter-spacing: 0.02em;
}
.upwork-badge:hover { background: rgba(20, 168, 0, 0.15); border-color: rgba(20, 168, 0, 0.5); }
.proof-divider { width: 1px; height: 20px; background: var(--border); }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 160px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 36px;
    opacity: 0; transform: translateY(30px);
    display: flex; flex-direction: column;
    transition: all 0.5s var(--ease);
}
.testimonial-card:hover { border-color: var(--border-hover); }
.stars { color: #fbbf24; font-size: 16px; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-card > p {
    font-size: 15px; color: var(--text-dim); line-height: 1.7;
    margin-bottom: 24px; flex: 1;
    font-style: italic;
}
.testimonial-author {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { display: block; font-size: 12px; color: var(--text-muted); }
.verified-badge {
    font-family: 'Space Grotesk'; font-size: 11px; color: #14a800;
    text-decoration: none; letter-spacing: 0.05em;
    opacity: 0.7; transition: opacity 0.3s;
}
.verified-badge:hover { opacity: 1; }

/* ============ PORTFOLIO ============ */
.portfolio { padding: 160px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.portfolio-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.5s var(--ease);
    opacity: 0; transform: translateY(40px);
}
.portfolio-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.portfolio-img {
    position: relative; height: 240px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.portfolio-badge {
    position: absolute; top: 16px; left: 16px;
    font-family: 'Space Grotesk'; font-size: 10px; font-weight: 600;
    color: var(--emerald); letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 12px; border: 1px solid rgba(16,185,129,0.3);
    border-radius: 999px; background: rgba(16,185,129,0.1);
}
.portfolio-preview {
    font-family: 'Newsreader', serif; font-size: 20px; color: rgba(255,255,255,0.7);
    text-align: center; padding: 0 40px; font-style: italic;
}
.portfolio-info { padding: 28px 32px; }
.portfolio-info h3 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.portfolio-info p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.portfolio-tags { display: flex; gap: 8px; }
.portfolio-tags span {
    font-family: 'Space Grotesk'; font-size: 11px; color: var(--text-muted);
    padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
}

/* ============ PRICING ============ */
.pricing { padding: 160px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
    position: relative; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 44px 36px;
    transition: all 0.5s var(--ease);
    opacity: 0; transform: translateY(40px);
    display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.pricing-card.featured { border-color: rgba(16,185,129,0.25); }
.pricing-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.price { margin: 20px 0 8px; }
.price-amount { font-family: 'Space Grotesk'; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.price-note { font-size: 13px; color: var(--text-muted); margin-left: 8px; }
.price-monthly { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; }
.pricing-cta {
    display: block; text-align: center; margin-top: auto; padding: 14px 28px;
    border: 1px solid var(--border); border-radius: 999px;
    color: var(--text); font-weight: 600; font-size: 14px;
    text-decoration: none; transition: all 0.3s var(--ease);
}
.pricing-cta:hover { border-color: var(--emerald); color: var(--emerald); }
.pricing-card.featured .pricing-cta { border: none; }

/* ============ CONTACT FORM ============ */
.cta-form { max-width: 640px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-input {
    width: 100%; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text); font-family: 'Inter'; font-size: 15px;
    outline: none; transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--emerald); }
.form-input::placeholder { color: var(--text-muted); }
.form-full { margin-bottom: 16px; }
.form-textarea { min-height: 120px; resize: vertical; margin-bottom: 24px; }
.form-submit { width: 100%; border: none; cursor: pointer; justify-content: center; font-family: 'Inter'; }

/* ============ FOOTER ============ */
footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-size: 14px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: var(--emerald); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .services-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .problem-grid { grid-template-columns: 1fr; gap: 32px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero { padding: 100px 24px 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-proof { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
