/* ═══════════════════════════════════════════
   VIBE Studio — Style System
   ═══════════════════════════════════════════ */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #f5f5f5;
    --text-muted: #888888;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-secondary: #22d3ee;
    --border: #27272a;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Custom Cursor ─────────────────────── */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: var(--accent-glow);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
}

/* ─── Loader ────────────────────────────── */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-inner {
    text-align: center;
}

.loader-line {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loader-line-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ─── Navigation ────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.nav-cta:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
}

/* ─── Hero ──────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-eyebrow .line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-eyebrow .text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.title-line {
    overflow: hidden;
}

.title-line span {
    display: inline-block;
}

.hero-title .title-line span {
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -0.03em;
}

.hero-title .outline {
    -webkit-text-stroke: 2px var(--text);
    color: transparent;
    font-weight: 700;
}

.hero-title .accent-text {
    color: var(--accent);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

.btn-secondary {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--accent);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

@media (max-width: 768px) {
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero-scroll-indicator { display: none; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ─── Marquee ───────────────────────────── */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
}

.marquee-track .dot {
    color: var(--accent);
    font-size: 0.5rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Sections Common ───────────────────── */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
}

.section-title .title-line span {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
}

/* ─── Work / Portfolio ──────────────────── */
.work {
    padding: 8rem 3rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: transform 0.5s var(--ease-out), border-color 0.3s;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.work-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card-bg {
    transform: scale(1.05);
}

.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card-img img {
    transform: scale(1.05);
}

.work-card-info {
    padding: 1.5rem;
}

.work-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.work-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-card-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .work { padding: 4rem 1.5rem; }
    .work-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Services ──────────────────────────── */
.services {
    padding: 8rem 3rem;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding-left 0.3s var(--ease-out);
}

.service-item:first-child {
    border-top: 1px solid var(--border);
}

.service-item:hover {
    padding-left: 1rem;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--accent);
    min-width: 2rem;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.service-item:hover .service-content h3 {
    color: var(--accent);
}

.service-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.service-arrow {
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out), color 0.3s;
}

.service-item:hover .service-arrow {
    transform: translate(5px, -5px);
    color: var(--accent);
}

@media (max-width: 768px) {
    .services { padding: 4rem 1.5rem; }
    .service-item { flex-wrap: wrap; }
}

/* ─── Stats ─────────────────────────────── */
.stats {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stats { padding: 4rem 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Testimonials ──────────────────────── */
.testimonials {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

@media (max-width: 768px) {
    .testimonials { padding: 4rem 1.5rem; }
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* ─── About ─────────────────────────────── */
.about {
    padding: 8rem 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about { padding: 4rem 1.5rem; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── Process ───────────────────────────── */
.process {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process { padding: 4rem 1.5rem; }
    .process-steps { grid-template-columns: 1fr; }
}

/* ─── Pricing ───────────────────────────── */
.pricing {
    padding: 8rem 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-secondary);
    transition: transform 0.4s var(--ease-out), border-color 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-secondary) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-tier {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.price-currency {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.btn-pricing:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.btn-pricing-featured {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-pricing-featured:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

@media (max-width: 768px) {
    .pricing { padding: 4rem 1.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ─── CTA Section ───────────────────────── */
.cta-section {
    padding: 10rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-title .title-line span {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 450px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .cta-section { padding: 6rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* ─── Footer ────────────────────────────── */
.footer {
    padding: 4rem 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo .accent {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a, .footer-col p {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { gap: 2rem; }
}

/* ─── Utility ───────────────────────────── */
.accent-text { color: var(--accent); }

/* Visibility for GSAP animations */
.title-line span,
.work-card,
.service-item,
.process-step,
.stat-item {
    will-change: transform, opacity;
}
