/* ==========================================================================
   FORGEANDFLOW - GLOBAL STYLES
   ========================================================================== */

   :root {
    /* Color Palette */
    --primary: #111111;
    --secondary: #F7F6F3;
    --accent: #E6B85C;
    --supporting: #D8D8D8;
    --dark-surface: #1A1A1A;
    --border-color: rgba(216, 216, 216, 0.1);
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: initial; /* Handled by Lenis */
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--primary);
    color: var(--secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: none; /* Custom cursor */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

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

p {
    color: var(--supporting);
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    position: relative;
    overflow: hidden;
    width: 100%;
}

section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.25rem;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 100px;
    cursor: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.mobile-text { display: none; }

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(230, 184, 92, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-btn {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

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

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

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(230, 184, 92, 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, height 0.3s, background 0.3s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(230, 184, 92, 0.1);
    border-color: var(--accent);
}

/* Ambient Glow Backgrounds */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(230, 184, 92, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.glow-hero { top: -20%; left: -20%; }
.glow-system { top: 30%; right: -20%; background: radial-gradient(circle, rgba(230, 184, 92, 0.06) 0%, transparent 60%); }
.glow-footer { bottom: 0; left: 10%; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    background: radial-gradient(circle at 50% 0%, rgba(30,30,30,1) 0%, rgba(17,17,17,1) 50%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Hero Visual Flow */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 1.5rem;
    overflow: hidden;
}

.flow-item {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.flow-item:hover {
    border-color: rgba(230, 184, 92, 0.4);
    box-shadow: 0 0 30px rgba(230, 184, 92, 0.2), inset 0 1px 0 rgba(230, 184, 92, 0.3);
    color: var(--accent);
    transform: translateY(-2px);
}

.flow-item.highlight {
    background: rgba(230, 184, 92, 0.1);
    border-color: rgba(230, 184, 92, 0.4);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(230, 184, 92, 0.2), inset 0 1px 0 rgba(230, 184, 92, 0.3);
}

.flow-arrow {
    color: var(--accent);
    opacity: 0.8;
    animation: pulseArrow 1.5s infinite;
}

@keyframes pulseArrow {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 10px var(--accent); }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Approach Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: var(--dark-surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card ul li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.x-mark { color: #ff4a4a; font-weight: bold; }
.check-mark { color: var(--accent); font-weight: bold; }

.forge-card {
    background: linear-gradient(145deg, var(--dark-surface) 0%, rgba(230, 184, 92, 0.05) 100%);
    border-color: rgba(230, 184, 92, 0.2);
}

/* System Section */
.engine-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

.node {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    width: 300px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.node.glow-active, .node:hover {
    border-color: rgba(230, 184, 92, 0.4);
    box-shadow: 0 0 40px rgba(230, 184, 92, 0.2), inset 0 1px 0 rgba(230, 184, 92, 0.3);
    color: var(--accent);
    transform: scale(1.05);
}

.connector {
    width: 2px;
    height: 60px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.connector::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: dropGlow 1.5s ease-in-out infinite;
}

@keyframes dropGlow {
    0% { top: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.final-node {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    font-size: 1.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--dark-surface);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(230, 184, 92, 0.25) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(230, 184, 92, 0.15);
}

.service-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Results Section */
.results {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.metric-item h2 {
    font-size: 5rem;
    display: inline-block;
    margin-bottom: 0;
    color: var(--secondary);
}

.metric-item span {
    font-size: 3rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
}

.metric-item p {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Case Studies */
.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.case-item:nth-child(even) {
    direction: rtl;
}

.case-item:nth-child(even) .case-content {
    direction: ltr;
}

.real-case-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

.case-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.case-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.link-arrow {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow:hover {
    gap: 1rem;
}

/* Process */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.step-num {
    position: absolute;
    left: -4rem;
    top: 0;
    background: var(--primary);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.timeline-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Booking */
.booking-wrapper {
    background: linear-gradient(145deg, var(--dark-surface) 0%, rgba(26,26,26,1) 100%);
    border-radius: 24px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border: 1px solid var(--border-color);
}

.booking-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.booking-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info a:hover {
    color: var(--accent);
}

.calendly-mock {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.cal-header {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 2rem;
}

.cal-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.cal-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cal-day:hover {
    background: var(--dark-surface);
}

.cal-day.active {
    background: var(--accent);
    color: var(--primary);
    font-weight: bold;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

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

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

.footer-legal {
    font-size: 0.85rem;
    color: rgba(216, 216, 216, 0.5);
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Horizontal line */
.faq-icon::before {
    width: 14px;
    height: 2px;
}

/* Vertical line */
.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg) scaleY(0);
}

.faq-item.active .faq-icon::before {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    color: var(--supporting);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0 1.5rem 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    .hero-title { font-size: 4rem; }
    .comparison-grid, .case-item, .booking-wrapper {
        grid-template-columns: 1fr;
    }
    .case-item:nth-child(even) { direction: ltr; }
    .metrics-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .desktop-nav-btn {
        display: none;
    }

    .mobile-nav-btn {
        display: inline-flex;
        margin-top: 1rem;
    }

    .hamburger {
        display: flex;
    }
    .hero-title { font-size: 2.8rem; word-wrap: break-word; }
    .section-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    .hero-visual { gap: 1rem; }
    .flow-item { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .timeline { padding-left: 0; border-left: none; }
    .timeline-item { padding-top: 1rem; }
    .step-num { 
        position: relative; 
        left: 0; 
        display: inline-block; 
        margin-bottom: 1rem; 
        border-radius: 4px;
    }
    .booking-wrapper { padding: 2rem; }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .navbar { padding: 1rem 0; }
    .logo { font-size: 1.15rem; }
    .navbar .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
    .desktop-text { display: none; }
    .mobile-text { display: inline; }
    section { padding: 5rem 0; }
    .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .card { padding: 2rem; }
    .card h3 { font-size: 1.5rem; }
    .node { width: 100%; max-width: 300px; padding: 1.2rem 1.5rem; font-size: 1.1rem; }
    .service-card { padding: 2rem; }
    .metric-item h2 { font-size: 3rem; }
    .metric-item span { font-size: 1.8rem; }
    .case-content h3 { font-size: 1.8rem; }
    .booking-content h2 { font-size: 2.2rem; }
    .booking-wrapper { padding: 1.5rem; }
    .cal-grid { gap: 0.5rem; }
    .cal-day { width: 35px; height: 35px; font-size: 0.9rem; }
}
