/* ═══════════════════════════════════════
   Vibe My Code — styles.css
   ═══════════════════════════════════════ */

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

:root {
    --bg-primary: #08090d;
    --bg-secondary: #0d0f15;
    --bg-card: #111320;
    --bg-card-hover: #161930;
    --accent: #00e5a0;
    --accent-dim: #00c98b;
    --accent-glow: rgba(0, 229, 160, 0.15);
    --accent-secondary: #6366f1;
    --accent-secondary-glow: rgba(99, 102, 241, 0.12);
    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa8;
    --text-muted: #5a5f7a;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 229, 160, 0.2);
    --font-display: 'Exo 2', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* ── SELECTION ── */
::selection { background: var(--accent); color: var(--bg-primary); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* ── NAVIGATION ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
nav.scrolled { padding: 0.75rem 0; background: rgba(8, 9, 13, 0.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex; align-items: center; gap: 0.6rem;
}
.logo-img {
    height: 56px;
    width: auto;
}
.logo-img svg {
    height: 100%;
    width: auto;
    display: block;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.25s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: all 0.3s;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}
.hero-glow-1 { top: -200px; right: -100px; background: var(--accent); }
.hero-glow-2 { bottom: -300px; left: -200px; background: var(--accent-secondary); opacity: 0.1; }

.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    animation: fadeInUp 0.8s ease both;
}
.hero-badge .pulse {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), #4ade80, var(--accent-secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.03);
}

.hero-stats {
    display: flex; gap: 3rem; margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION COMMONS ── */
section { padding: 7rem 0; position: relative; }
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.7;
}

/* ── SERVICES / OFFER STACK ── */
#services { background: var(--bg-secondary); }
.services-header { margin-bottom: 4rem; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.tier-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.tier-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.tier-card:hover::before { opacity: 1; }
.tier-card.featured {
    border-color: var(--border-accent);
    background: linear-gradient(180deg, rgba(0,229,160,0.04), var(--bg-card));
}
.tier-card.featured::before { opacity: 1; }
.tier-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.tier-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}
.tier-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.tier-timeline {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tier-features li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.tier-features li::before {
    content: '→';
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}
.tier-cta {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.tier-card .tier-cta {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.tier-card .tier-cta:hover { background: rgba(255,255,255,0.08); }
.tier-card.featured .tier-cta {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
}
.tier-card.featured .tier-cta:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

/* ── PROCESS ── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.process-grid .full-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.process-step {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s;
}
.process-step:hover { border-color: rgba(255,255,255,0.1); }
.step-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.step-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── TECH STACK ── */
#stack { background: var(--bg-secondary); }
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 4rem;
}
.stack-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.stack-item:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.stack-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.stack-techs {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* ── WHY US ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.why-card {
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s;
}
.why-card:hover { border-color: rgba(255,255,255,0.1); }
.why-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.why-icon.green { background: var(--accent-glow); }
.why-icon.purple { background: var(--accent-secondary-glow); }
.why-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.why-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-glow), transparent);
}
.cta-section .section-title { margin-left: auto; margin-right: auto; }
.cta-section .section-desc { margin: 0 auto 2.5rem; text-align: center; }
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-title {
    max-width: 600px;
    margin: 0 auto 1rem;
}
.cta-desc {
    max-width: 500px;
}
.cta-form {
    display: flex; gap: 0.75rem;
    max-width: 480px; margin: 0 auto;
    position: relative; z-index: 2;
}
.cta-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--accent); }
.cta-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: none; border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .tiers-grid { grid-template-columns: 1fr; max-width: 500px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-grid .full-row { grid-template-columns: 1fr 1fr; }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .process-grid { grid-template-columns: 1fr; }
    .process-grid .full-row { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .cta-form { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    section { padding: 5rem 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-stats { gap: 1.25rem; }
    .stack-grid { grid-template-columns: 1fr; }
}
