/* =============================================
   ProtonLabs | n8n-Inspired Dark Theme
   ============================================= */

:root {
    --bg-primary: #0a0a10;
    --bg-secondary: #101018;
    --bg-card: #14141e;
    --bg-card-hover: #1a1a28;
    --bg-elevated: #1e1e2c;

    --text-primary: #f2f2f8;
    --text-secondary: #9e9eb8;
    --text-muted: #5e5e78;

    --accent: #FF6D5A;
    --accent-end: #FF3858;
    --accent-gradient: linear-gradient(135deg, #FF6D5A 0%, #FF3858 100%);

    --green: #34D399;
    --blue: #60A5FA;
    --purple: #A78BFA;
    --orange: #FBBF24;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(255, 109, 90, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 80px rgba(255,109,90,0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 16, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-mark {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
}

.logo-text { letter-spacing: -0.03em; }
.logo-highlight { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 22px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 16px rgba(255,109,90,0.3);
    transition: all var(--transition);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255,109,90,0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero .container {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: -300px; right: -200px;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255,109,90,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.04) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255,109,90,0.06);
    border: 1px solid rgba(255,109,90,0.12);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
}

.badge-pulse {
    width: 8px; height: 8px;
    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.4; transform: scale(0.7); }
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(255,109,90,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(255,109,90,0.45);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* Hero proof */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}

.proof-avatars { display: flex; }

.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }
.a1 { background: #6C5CE7; }
.a2 { background: #00B894; }
.a3 { background: #0984E3; }
.a4 { background: #E17055; }

.hero-proof p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-proof strong {
    color: var(--text-secondary);
}

/* Hero visual */
.hero-visual { position: relative; }

.hero-card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-float-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    animation: float-in 0.8s var(--ease) both;
}

.hfc-1 { animation-delay: 0.5s; }
.hfc-2 { animation-delay: 0.7s; }
.hfc-3 { animation-delay: 0.9s; }

@keyframes float-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-float-card:hover {
    border-color: var(--border-hover);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.hfc-icon { font-size: 0.5rem; }
.hfc-green { color: var(--green); }
.hfc-blue { color: var(--blue); }
.hfc-orange { color: var(--orange); }

.hfc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.hfc-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* =============================================
   PROOF BAR
   ============================================= */
.proof-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.proof-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-stat { text-align: center; }

.proof-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.proof-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.proof-divider {
    width: 1px; height: 40px;
    background: var(--border);
}

/* =============================================
   SECTION SHARED
   ============================================= */
section { padding: 110px 0; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,109,90,0.06);
    border: 1px solid rgba(255,109,90,0.1);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 16px auto 0;
}

/* =============================================
   FEATURED SERVICES (Homepage)
   ============================================= */
.services { background: var(--bg-secondary); }

.services::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.svc-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.svc-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.svc-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 18px;
    line-height: 1;
}

.svc-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.svc-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
}

.svc-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--transition);
}

.svc-cta:hover { gap: 10px; }

.svc-cta span {
    transition: transform var(--transition);
}

.svc-cta:hover span { transform: translateX(3px); }

.services-more {
    text-align: center;
    margin-top: 48px;
}

.services-more p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text .section-tag { margin-bottom: 18px; }

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-cards { display: flex; flex-direction: column; gap: 18px; }

.about-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.about-card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { background: var(--bg-secondary); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 18px;
    transition: opacity var(--transition);
}

.step-card:hover .step-num { opacity: 0.8; }

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   TESTIMONIAL
   ============================================= */
.testimonial-section { padding: 80px 0; }

.testimonial-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
}

.quote-icon {
    color: var(--accent);
    margin: 0 auto 24px;
    display: block;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 28px;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   WHY US / RESULTS
   ============================================= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.result-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-align: center;
}

.result-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.result-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,109,90,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-links a { font-size: 0.88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-loc { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

/* =============================================
   ANIMATIONS
   ============================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-animate="scale-in"] { transform: scale(0.85); }

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =============================================
   BREATHING ANIMATIONS
   ============================================= */

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.985); }
}

@keyframes breathe-glow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes breathe-glow-hero {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

@keyframes breathe-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes breathe-border {
    0%, 100% { border-color: var(--border); }
    50% { border-color: var(--border-hover); }
}

@keyframes breathe-gradient {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@keyframes breathe-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

@keyframes breathe-icon {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.06) rotate(1deg); }
}

@keyframes breathe-stat {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-glow {
    animation: breathe-glow-hero 6s ease-in-out infinite;
}

.hero-glow-2 {
    animation: breathe-glow-hero 8s ease-in-out infinite 1s;
}

.cta-glow {
    animation: breathe-glow 7s ease-in-out infinite;
}

.hero h1,
.page-hero h1,
.contact-info h1 {
    animation: breathe 5s ease-in-out infinite;
}

.section-header h2,
.about-text h2,
.cta-content h2,
.contact-form-wrapper h2 {
    animation: breathe 6s ease-in-out infinite 0.5s;
}

.gradient-text {
    animation: breathe-gradient 4s ease-in-out infinite;
}

.hero-badge {
    animation: breathe-badge 4s ease-in-out infinite;
}

.section-tag {
    animation: breathe-badge 5s ease-in-out infinite 0.3s;
}

.svc-card {
    animation: breathe-border 5s ease-in-out infinite;
}

.svc-card:nth-child(1) { animation-delay: 0s; }
.svc-card:nth-child(2) { animation-delay: 0.5s; }
.svc-card:nth-child(3) { animation-delay: 1s; }
.svc-card:nth-child(4) { animation-delay: 1.5s; }

.svc-emoji {
    display: inline-block;
    animation: breathe-icon 4s ease-in-out infinite;
}

.svc-card:nth-child(1) .svc-emoji { animation-delay: 0.2s; }
.svc-card:nth-child(2) .svc-emoji { animation-delay: 0.7s; }
.svc-card:nth-child(3) .svc-emoji { animation-delay: 1.2s; }
.svc-card:nth-child(4) .svc-emoji { animation-delay: 1.7s; }

.hero-float-card {
    animation: breathe-float 4s ease-in-out infinite;
}

.hfc-1 { animation-delay: 0s; }
.hfc-2 { animation-delay: 0.6s; }
.hfc-3 { animation-delay: 1.2s; }

.proof-num {
    animation: breathe-gradient 5s ease-in-out infinite;
}

.proof-stat:nth-child(1) .proof-num { animation-delay: 0s; }
.proof-stat:nth-child(3) .proof-num { animation-delay: 0.4s; }
.proof-stat:nth-child(5) .proof-num { animation-delay: 0.8s; }
.proof-stat:nth-child(7) .proof-num { animation-delay: 1.2s; }

.step-card {
    animation: breathe-border 6s ease-in-out infinite;
}

.step-card:nth-child(1) { animation-delay: 0s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.8s; }
.step-card:nth-child(4) { animation-delay: 1.2s; }

.step-num {
    animation: breathe-stat 4s ease-in-out infinite;
}

.step-card:nth-child(1) .step-num { animation-delay: 0.2s; }
.step-card:nth-child(2) .step-num { animation-delay: 0.6s; }
.step-card:nth-child(3) .step-num { animation-delay: 1.0s; }
.step-card:nth-child(4) .step-num { animation-delay: 1.4s; }

.result-card {
    animation: breathe-border 5s ease-in-out infinite;
}

.result-card:nth-child(1) { animation-delay: 0s; }
.result-card:nth-child(2) { animation-delay: 0.5s; }
.result-card:nth-child(3) { animation-delay: 1s; }
.result-card:nth-child(4) { animation-delay: 1.5s; }

.result-icon {
    display: inline-block;
    animation: breathe-icon 5s ease-in-out infinite;
}

.result-card:nth-child(1) .result-icon { animation-delay: 0.3s; }
.result-card:nth-child(2) .result-icon { animation-delay: 0.8s; }
.result-card:nth-child(3) .result-icon { animation-delay: 1.3s; }
.result-card:nth-child(4) .result-icon { animation-delay: 1.8s; }

.about-card {
    animation: breathe-border 6s ease-in-out infinite;
}

.about-card:nth-child(1) { animation-delay: 0s; }
.about-card:nth-child(2) { animation-delay: 0.5s; }
.about-card:nth-child(3) { animation-delay: 1s; }

.about-card-icon {
    display: inline-block;
    animation: breathe-icon 5s ease-in-out infinite;
}

.testimonial-card {
    animation: breathe-border 7s ease-in-out infinite;
}

.quote-icon {
    animation: breathe-stat 5s ease-in-out infinite;
}

.logo-mark {
    animation: breathe-gradient 4s ease-in-out infinite;
}

.nav-cta {
    animation: breathe-gradient 3.5s ease-in-out infinite;
}

.btn-primary {
    animation: breathe-gradient 4s ease-in-out infinite;
}

.accordion-item {
    animation: breathe-border 6s ease-in-out infinite;
}

.accordion-item:nth-child(1) { animation-delay: 0s; }
.accordion-item:nth-child(2) { animation-delay: 0.3s; }
.accordion-item:nth-child(3) { animation-delay: 0.6s; }
.accordion-item:nth-child(4) { animation-delay: 0.9s; }
.accordion-item:nth-child(5) { animation-delay: 1.2s; }
.accordion-item:nth-child(6) { animation-delay: 1.5s; }
.accordion-item:nth-child(7) { animation-delay: 1.8s; }
.accordion-item:nth-child(8) { animation-delay: 2.1s; }

.accordion-emoji {
    display: inline-block;
    animation: breathe-icon 5s ease-in-out infinite;
}

.contact-detail {
    animation: breathe-border 6s ease-in-out infinite;
}

.contact-detail:nth-child(1) { animation-delay: 0s; }
.contact-detail:nth-child(2) { animation-delay: 0.4s; }
.contact-detail:nth-child(3) { animation-delay: 0.8s; }

.contact-detail-icon {
    animation: breathe-icon 5s ease-in-out infinite;
}

.contact-form-wrapper {
    animation: breathe-border 8s ease-in-out infinite;
}

.hero-grid-bg {
    animation: breathe-stat 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =============================================
   SERVICES PAGE — ACCORDION
   ============================================= */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.page-hero .hero-glow,
.page-hero .hero-grid-bg {
    position: absolute;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.accordion-section {
    padding: 40px 0 120px;
}

.accordion {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.accordion-item:hover {
    border-color: var(--border-hover);
}

.accordion-item.active {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 1px rgba(255,109,90,0.08), var(--shadow-sm);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
    transition: background var(--transition);
}

.accordion-trigger:hover {
    background: rgba(255,255,255,0.02);
}

.accordion-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-header {
    flex: 1;
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.accordion-header .acc-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.accordion-chevron {
    width: 24px; height: 24px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.accordion-body-inner {
    padding: 0 28px 28px;
    padding-left: 72px;
}

.accordion-body-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.accordion-body-inner .acc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(255,109,90,0.25);
}

.accordion-body-inner .acc-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,109,90,0.35);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    line-height: 1.1;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-detail:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-detail-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,109,90,0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail-content h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-detail-content p { font-size: 1rem; font-weight: 500; }
.contact-detail-content a { color: var(--accent); }
.contact-detail-content a:hover { text-decoration: underline; }

.contact-form-wrapper {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.contact-form-wrapper h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form-wrapper > p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.92rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,109,90,0.08);
}

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

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235e5e78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

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

.form-submit { margin-top: 6px; }
.form-submit .btn { width: 100%; justify-content: center; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual { display: none; }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }

    .proof-bar-inner { gap: 24px; }
    .proof-divider { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .accordion-body-inner { padding-left: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.85rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .section-header h2 { font-size: 1.6rem; }
}
