/* ==========================================================================
   ElevenDown — Home Page Styles
   Theme: Modern Explorer / Technical Wilderness
   ========================================================================== */

/* ===== Section Spacing ===== */
#home,
#services,
#pricing,
#workflow,
#blog {
    padding-block: var(--section-pad, 100px);
}

/* ===== Hero Section ===== */
#home {
    position: relative;
}

/* Hero glow backdrop */
#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(217, 161, 114, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#home > * {
    position: relative;
    z-index: 1;
}

/* Oversized hero heading */
#home h1,
.hero-title {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

/* ===== Buttons ===== */
/* Primary — Solid accent */
.btn-primary,
a[href*="schedule"].bg-sky-600,
a.bg-sky-600,
button.bg-sky-600 {
    background: var(--accent) !important;
    color: #000 !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(217, 161, 114, 0.25);
    transition: all 0.35s var(--ease-smooth);
    will-change: transform, box-shadow;
}

.btn-primary:hover,
a[href*="schedule"].bg-sky-600:hover,
a.bg-sky-600:hover,
button.bg-sky-600:hover {
    background: #e8b88a !important;
    box-shadow: 0 8px 32px rgba(217, 161, 114, 0.4);
    transform: translateY(-3px);
}

.btn-primary:active,
a[href*="schedule"].bg-sky-600:active,
a.bg-sky-600:active,
button.bg-sky-600:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(217, 161, 114, 0.3);
}

/* Secondary — Outline with glow on hover */
.btn-secondary,
a.glass-card.hover\:bg-white\/10,
.workflow-cta-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.35s var(--ease-smooth);
    will-change: transform, box-shadow;
}

.btn-secondary:hover,
a.glass-card.hover\:bg-white\/10:hover,
.workflow-cta-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 24px rgba(217, 161, 114, 0.15);
    transform: translateY(-3px);
}

.btn-secondary:active,
a.glass-card.hover\:bg-white\/10:active,
.workflow-cta-btn:active {
    transform: translateY(-1px);
}

/* ===== Marquee Animation ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* ===== Service Card ===== */
a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ===== Blog Card Links ===== */
#blog a.glass-card,
a.glass-card.group {
    text-decoration: none;
    color: inherit;
}

.service-card {
    border-radius: var(--radius-lg, 20px);
    transition: all 0.45s var(--ease-smooth, cubic-bezier(0.25, 0.46, 0.45, 0.94));
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card:hover {
    border-color: var(--border-hover) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45),
                0 0 40px var(--accent-glow, rgba(217, 161, 114, 0.08));
    transform: translateY(-8px);
}

.service-card:hover .arrow-icon {
    transform: translateX(6px);
    color: var(--accent);
    transition: transform 0.3s var(--ease-smooth);
}

/* Service card icon containers — warm accent on hover */
.service-card:hover [class*="group-hover:bg-"] {
    background: var(--accent) !important;
}

/* ===== Pulse Glow — Warm ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(217, 161, 114, 0.2),
                    0 0 40px rgba(217, 161, 114, 0.06);
    }
    50% {
        box-shadow: 0 0 30px rgba(217, 161, 114, 0.35),
                    0 0 60px rgba(217, 161, 114, 0.1);
    }
}

.dashboard-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== Scan Effect — Warm ===== */
@keyframes scan-line {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scan-effect::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(217, 161, 114, 0.6), transparent);
    animation: scan-line 4s ease-in-out infinite;
}

/* ===== Data Flow ===== */
@keyframes data-flow {
    0% { transform: translateY(0) scaleY(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-20px) scaleY(1); opacity: 0; }
}

.data-particle {
    animation: data-flow 2s ease-in-out infinite;
}

/* ===== Rotate Slow ===== */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* ===== Pulse Ring ===== */
@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

/* ===== Shake ===== */
@keyframes shake {
    0%, 100% { transform: rotate(2deg) translateX(0); }
    25% { transform: rotate(2deg) translateX(-2px); }
    75% { transform: rotate(2deg) translateX(2px); }
}

.dashboard-container:hover {
    animation: shake 0.5s ease-in-out;
}

/* ===== Number Tick ===== */
@keyframes number-tick {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.stat-number {
    animation: number-tick 2s ease-in-out infinite;
}

/* ===== Progress Bar ===== */
@keyframes progress-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-animate {
    animation: progress-bar 2s ease-out forwards;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .dashboard-float {
        transform: rotate(0deg) !important;
    }

    #home,
    #services,
    #pricing,
    #workflow,
    #blog,
    #team {
        padding-block: 60px;
    }

    /* Hero grid: single column on mobile */
    #home .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Pricing: no scale on mobile */
    #pricing .md\:scale-110 {
        transform: none !important;
    }

    /* Footer grid */
    footer .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
    footer .md\:col-span-1 {
        grid-column: span 2 !important;
    }

    /* Workflow CTA buttons: stack */
    #workflow .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    #workflow .flex.flex-col.sm\:flex-row a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Service cards: tighter padding */
    .glass-card.rounded-2xl.p-7 {
        padding: 1.25rem !important;
    }

    /* Blog cards: tighter */
    #blog .glass-card .p-5 {
        padding: 1rem !important;
    }
}

/* Extra small */
@media (max-width: 480px) {
    footer .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    footer .md\:col-span-1 {
        grid-column: span 1 !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
    }
    /* Why us section numbers */
    #team .text-2xl.leading-none {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   WORKFLOW TIMELINE SECTION — Warm Palette
   ========================================================================== */

/* Vertical glowing pipeline */
.wf-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(217, 161, 114, 0.1) 10%, rgba(217, 161, 114, 0.2) 50%, rgba(217, 161, 114, 0.1) 90%, transparent);
}

/* Animated energy pulse */
.wf-timeline-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    border-radius: 50%;
    animation: wf-energy-pulse 3.5s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes wf-energy-pulse {
    0%   { top: -60px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% + 60px); opacity: 0; }
}

/* Hexagonal node */
.wf-hex-node {
    width: 72px;
    height: 72px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    z-index: 2;
}

.wf-hex-node::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--bg);
    z-index: -1;
}

/* Outer hexagonal glow ring */
.wf-hex-outer {
    width: 90px;
    height: 90px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Timeline row */
.wf-row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 180px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease-smooth);
}

.wf-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.wf-row:nth-child(odd) {
    flex-direction: row;
}

.wf-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Content panel */
.wf-panel {
    flex: 1;
    max-width: calc(50% - 65px);
    padding: 28px 32px;
    border-radius: var(--radius-lg, 20px);
    background: var(--bg-surface, #1e1e1e);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.5s var(--ease-smooth);
    overflow: hidden;
}

/* Animated border gradient on hover */
.wf-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 20px);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--wf-color, var(--accent)) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wf-row:hover .wf-panel::before {
    opacity: 1;
}

.wf-row:hover .wf-panel {
    background: var(--bg-elevated, #1a1a1a);
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wf-row:hover .wf-hex-node {
    transform: scale(1.15) rotate(15deg);
}

.wf-row:hover .wf-hex-outer {
    opacity: 0.3;
    animation: wf-hex-spin 4s linear infinite;
}

@keyframes wf-hex-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Connector arm */
.wf-connector {
    width: 50px;
    height: 2px;
    position: relative;
    overflow: hidden;
}

.wf-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--wf-color, var(--accent)), transparent);
    animation: wf-connector-flow 2s ease-in-out infinite;
}

.wf-row:nth-child(even) .wf-connector::after {
    background: linear-gradient(270deg, var(--wf-color, var(--accent)), transparent);
}

@keyframes wf-connector-flow {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* Step number watermark */
.wf-step-number {
    position: absolute;
    top: -10px;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.04;
    pointer-events: none;
    transition: all 0.5s ease;
    font-family: var(--font-heading, 'Inter', sans-serif);
}

.wf-row:nth-child(odd) .wf-step-number { right: 20px; }
.wf-row:nth-child(even) .wf-step-number { left: 20px; }

.wf-row:hover .wf-step-number {
    opacity: 0.08;
    transform: scale(1.1);
}

/* Tag pills */
.wf-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    transition: all 0.3s ease;
}

.wf-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: wf-tag-blink 2s ease-in-out infinite;
}

@keyframes wf-tag-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Node center hub */
.wf-node-center {
    position: relative;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile responsive for workflow */
@media (max-width: 768px) {
    .wf-timeline-line {
        left: 28px;
    }

    .wf-row {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.5s ease, transform 0.5s ease !important;
    }

    .wf-row.visible {
        opacity: 1;
        transform: translateY(0) !important;
    }

    .wf-row, .wf-row:nth-child(even) {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 70px;
        min-height: auto;
        margin-bottom: 24px;
    }

    .wf-node-center {
        position: absolute;
        left: -6px;
        top: 20px;
        width: auto;
    }

    .wf-hex-node {
        width: 52px;
        height: 52px;
    }

    .wf-hex-outer { display: none; }
    .wf-connector { display: none; }

    .wf-panel {
        max-width: 100%;
        padding: 20px 24px;
    }

    /* Disable scale-on-hover for mobile (causes layout shifts) */
    .wf-row:hover .wf-panel {
        transform: none;
    }

    .wf-step-number {
        font-size: 4rem;
        right: 10px !important;
        left: auto !important;
    }
}

/* ===== CTA Button Enhancements ===== */
@keyframes button-subtle-pulse {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(217, 161, 114, 0.2);
    }
    50% {
        box-shadow: 0 15px 35px rgba(217, 161, 114, 0.35);
    }
}

.workflow-cta-btn {
    position: relative;
    overflow: hidden;
}

.workflow-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 161, 114, 0.15), transparent);
    transition: left 0.5s ease;
}

.workflow-cta-btn:hover::before {
    left: 100%;
}

/* ===== Pricing Section — Warm Accent ===== */
#pricing .border-sky-500,
#pricing .border-2.border-sky-500 {
    border-color: var(--accent) !important;
}

#pricing .bg-sky-500,
#pricing .bg-sky-600 {
    background-color: var(--accent) !important;
    color: #000 !important;
}

/* ===== Blog Cards ===== */
#blog a,
#blog article {
    transition: all 0.45s var(--ease-smooth);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#blog a:hover,
#blog article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

#blog a .arrow-icon,
#blog article .arrow-icon {
    transition: transform 0.3s var(--ease-smooth);
}

#blog a:hover .arrow-icon,
#blog article:hover .arrow-icon {
    transform: translateX(5px);
}

/* ===== Navigation — Warm Tint ===== */
nav .bg-sky-500 {
    background-color: var(--accent) !important;
}

nav a:hover {
    color: var(--accent) !important;
}

/* ===== Footer — Warm Accent Links ===== */
footer a:hover {
    color: var(--accent) !important;
}
