/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #111111; /* Slightly darker to match Gamma */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #ed7b30; /* Ennace Orange */
    --accent-glow: rgba(237, 123, 48, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Backgrounds */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-2 {
    bottom: 20%;
    right: -10%;
    background: radial-gradient(circle, #ff9d5c 0%, transparent 70%);
}

/* Layout */
.container {
    max-width: 1000px; /* Tighter width like Gamma docs */
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Typography & Components
   ========================================= */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}
.center-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(237, 123, 48, 0.1);
    border: 1px solid rgba(237, 123, 48, 0.3);
    color: #ffaa75;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.highlight {
    background-color: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.quote-box {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent);
    padding: 20px;
    font-size: 1.15rem;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}
.center-quote {
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    margin-top: 40px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

/* =========================================
   Sections
   ========================================= */
header {
    padding: 30px 0 80px; /* Increased bottom padding to add distance between logo and title */
}
.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 0 40px; /* Reduced top padding since title is at the very top */
}
.subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin: 0 0 50px;
}
.hero-social-proof .stars {
    color: #fbbf24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.hero-social-proof p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.video-container {
    padding: 10px;
    margin-bottom: 20px;
}

/* Scroll Down Arrow */
.scroll-arrow-container {
    text-align: center;
    margin: 20px 0 60px;
}
.bouncing-arrow {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Bracket Wrapper */
.bracket-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 50px; /* Space for the bracket */
    padding-right: 50px; /* Counter-balance to keep content centered */
}
.bracket-wrapper::before {
    content: '';
    position: absolute;
    top: 145px;
    bottom: 80px; /* Aligns exactly with the bottom of the cta-card */
    left: 20px;
    width: 20px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent); /* This forms a mathematically perfect top corner that points to the Problem section */
    border-bottom: 2px solid var(--accent); /* Bottom corner */
}

/* Timeline Sections */
.problem-section, 
.flipped-model-section, 
.results-section, 
.cta-section {
    padding: 80px 0;
    position: relative;
}

/* Horizontal ticks connecting to the vertical line */
/* The Problem section tick is handled by the border-top of the bracket-wrapper */
.flipped-model-section::before,
.results-section::before {
    content: '';
    position: absolute;
    top: 145px;
    left: -30px; /* 50px padding - 20px border-left = 30px distance */
    width: 20px; /* Reaches the vertical line */
    border-top: 2px solid var(--accent);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 80px; /* Aligns exactly with the top edge of the CTA glass card */
    left: -30px;
    width: 20px;
    border-top: 2px solid var(--accent);
}

@media (max-width: 1100px) {
    .bracket-wrapper { padding-left: 40px; padding-right: 40px; margin-left: 20px; margin-right: 20px; }
    .bracket-wrapper::before { left: 10px; }
    .flipped-model-section::before, .results-section::before, .cta-section::before { left: -30px; width: 20px; }
}
@media (max-width: 768px) {
    .bracket-wrapper { padding-left: 20px; padding-right: 20px; margin-left: 10px; margin-right: 10px; }
    .bracket-wrapper::before { left: 0px; }
    .flipped-model-section::before, .results-section::before, .cta-section::before { left: -20px; width: 10px; }
}
.pas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.problem-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Flipped Model Pipeline Visual */
.flipped-model-section {
    text-align: center;
}
.pipeline-diagram {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 80px auto 40px;
    max-width: 900px;
}
.pipeline-line {
    position: absolute;
    top: 40px; /* Aligned with center of the icons (80px / 2) */
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--glass-border) 0%, var(--accent) 50%, var(--glass-border) 100%);
    z-index: 1;
    border-radius: 4px;
}
.pipeline-node {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.node-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.pipeline-node:hover .node-icon-circle {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.node-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px 20px;
    border-radius: 12px;
    width: 100%;
}

/* Detailed Steps */
.detailed-steps-section {
    padding: 40px 0 80px;
}
.step-detail-card {
    margin-bottom: 40px;
}
.step-badge {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.checklist {
    margin-top: 30px;
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 12px;
}
.checklist ul {
    list-style: none;
    margin-top: 15px;
}
.checklist li {
    margin-bottom: 10px;
    color: var(--text-main);
}
.grid-checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-checklist h4 {
    color: var(--accent);
}

.filter-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.filter-col {
    padding: 25px;
    border-radius: 12px;
}
.success-bg {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.danger-bg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.filter-col ul {
    list-style: none;
    margin-top: 15px;
}
.filter-col li {
    margin-bottom: 10px;
    color: var(--text-main);
    padding-left: 20px;
    position: relative;
}
.success-bg li::before { content: '✓'; color: var(--success); position: absolute; left: 0; }
.danger-bg li::before { content: '✕'; color: var(--danger); position: absolute; left: 0; }

/* Results Section */
.results-section {
    text-align: center;
}
.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.stat {
    padding: 30px 20px;
}
.stat h3 {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1;
}

/* Before & After */
.before-after-section {
    padding: 80px 0;
}
.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.ba-card {
    padding: 40px;
    border-radius: 16px;
}
.danger-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.success-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.bullet-list-clean {
    list-style: none;
    margin-top: 20px;
}
.bullet-list-clean li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* CTA */
.cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(237, 123, 48, 0.1) 100%);
    padding: 60px 40px;
}
.cta-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    text-align: left;
}
.cta-step {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
}
.cta-sub {
    margin-bottom: 30px;
}
.calendar-embed-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 650px; /* Increased to ensure the booking form's submit buttons are not cut off */
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    color: #6b7280;
}

/* =========================================
   Animations & Responsive
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    .pas-grid, .grid-checklist, .filter-comparison, .results-stats, .ba-grid, .cta-steps { grid-template-columns: 1fr; }
    .results-stats { gap: 20px; }
    
    .pipeline-diagram { flex-direction: column; gap: 40px; }
    .pipeline-line { width: 4px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--glass-border) 0%, var(--accent) 50%, var(--glass-border) 100%); }
    .pipeline-node { padding: 0; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .glass-card { padding: 30px 20px; }
    .hero-social-proof { flex-direction: column; gap: 5px; }
    .calendar-embed-container { height: 600px; }
}
