/* ============================================
   Arco AI Showcase - Presentation Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --slide-w: 1920px;
    --slide-h: 1080px;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0a1a;
    font-family: var(--font);
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
}

/* ---- Progress Bar ---- */
#progress-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    z-index: 100; background: rgba(255,255,255,0.05);
}
#progress-fill {
    height: 100%; width: 10%; background: linear-gradient(90deg, #6366f1, #a78bfa);
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    border-radius: 0 2px 2px 0;
}

/* ---- Slide Navigation ---- */
#slide-nav {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#nav-dots { display: flex; flex-direction: column; gap: 10px; }
.nav-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2);
    background: transparent; cursor: pointer; padding: 0;
    transition: all 0.3s ease; position: relative;
}
.nav-dot:hover {
    border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1);
    transform: scale(1.3);
}
.nav-dot.active {
    border-color: #818cf8; background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,0.4);
}
.nav-dot::after {
    content: attr(title); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; font-size: 11px; color: rgba(255,255,255,0.6);
    background: rgba(15,15,30,0.9); padding: 4px 10px; border-radius: 6px;
    pointer-events: none; opacity: 0; transition: opacity 0.2s;
    font-family: var(--font);
}
.nav-dot:hover::after { opacity: 1; }

/* ---- Slides ---- */
.slide {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), visibility 0.6s;
}
.slide.active {
    opacity: 1; visibility: visible;
}

.bg-decoration {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.slide-content {
    position: relative; z-index: 1;
    max-width: 1200px; width: 90%; padding: 40px;
}

.center-content {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ---- Typography ---- */
.hero-title {
    font-size: 80px; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a78bfa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1; margin-bottom: 20px;
    letter-spacing: -2px;
}
.hero-subtitle {
    font-size: 26px; color: rgba(255,255,255,0.6); font-weight: 300;
    margin-bottom: 40px; letter-spacing: 2px;
}
.hero-hint {
    font-size: 14px; color: rgba(255,255,255,0.25); margin-top: 60px;
    letter-spacing: 1px;
    animation: pulse-hint 2s ease-in-out infinite;
}
@keyframes pulse-hint {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

.section-title {
    font-size: 48px; font-weight: 700;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px; letter-spacing: -1px;
}
.section-desc {
    font-size: 18px; color: rgba(255,255,255,0.5); font-weight: 300;
    margin-bottom: 48px; letter-spacing: 0.5px;
}

/* ---- Tags ---- */
.hero-tags {
    display: flex; gap: 16px; margin-bottom: 20px;
}
.tag {
    padding: 8px 24px; border-radius: 100px;
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    font-size: 15px; font-weight: 500; color: #c7d2fe;
    letter-spacing: 1px;
}

/* ---- Logo ---- */
.logo-area { margin-bottom: 32px; }

/* ---- Pain Points Grid ---- */
.pain-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    margin-top: 20px;
}
.pain-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 36px 28px; text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.pain-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.3);
}
.pain-card h3 {
    font-size: 18px; font-weight: 600; margin-bottom: 12px;
}
.pain-card p {
    font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6;
}
.pain-card:nth-child(1) { border-top: 2px solid rgba(239,68,68,0.5); }
.pain-card:nth-child(1) h3 { color: #fca5a5; }
.pain-card:nth-child(2) { border-top: 2px solid rgba(251,146,60,0.5); }
.pain-card:nth-child(2) h3 { color: #fdba74; }
.pain-card:nth-child(3) { border-top: 2px solid rgba(167,139,250,0.5); }
.pain-card:nth-child(3) h3 { color: #c4b5fd; }
.pain-card:nth-child(4) { border-top: 2px solid rgba(59,130,246,0.5); }
.pain-card:nth-child(4) h3 { color: #93c5fd; }

/* ---- Two Column Layout ---- */
.two-col {
    display: flex; gap: 60px; align-items: center;
}
.col-text { flex: 1; }
.col-visual { flex: 1; display: flex; justify-content: center; }

/* ---- Feature List ---- */
.feature-list {
    list-style: none; padding: 0;
}
.feature-list li {
    font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.8;
    padding: 8px 0; display: flex; align-items: center; gap: 12px;
}
.feature-list code {
    background: rgba(99,102,241,0.15); padding: 2px 8px; border-radius: 4px;
    font-size: 13px; color: #a5b4fc;
}
.bullet {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.bullet.green { background: #10b981; }
.bullet.purple { background: #a78bfa; }
.bullet.indigo { background: #6366f1; }
.bullet.teal { background: #14b8a6; }
.bullet.orange { background: #fb923c; }

/* ---- SVG Visuals ---- */
/* ---- Architecture Diagram Hover ---- */
.arch-item {
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
    cursor: pointer;
}
.arch-item.arch-left:hover {
    transform: translateX(24px);
    filter: brightness(1.3);
}
.arch-item.arch-right:hover {
    transform: translateX(-24px);
    filter: brightness(1.3);
}

/* ---- Tool Tags ---- */
.tool-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: 28px;
}
.tool-tag {
    padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
    border: 1px solid; letter-spacing: 0.5px;
    animation: orbit-float 4s ease-in-out infinite;
    animation-delay: var(--orbit-delay, 0s);
}

/* ---- Loop Pulse Animation ---- */
.loop-pulse {
    animation: pulse-opacity 2s ease-in-out infinite;
}
.loop-dot {
    animation: loop-dot-move 2s ease-in-out infinite;
}
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
@keyframes loop-dot-move {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.8); }
}

/* ---- Orbit Animation ---- */
.orbit-item {
    animation: orbit-float 4s ease-in-out infinite;
    animation-delay: var(--orbit-delay, 0s);
}
@keyframes orbit-float {
    0%, 100% { transform: translate(0px, 0px); }
    25% { transform: translate(3px, -6px); }
    50% { transform: translate(-2px, -10px); }
    75% { transform: translate(-4px, -4px); }
}

.visual-svg { width: 100%; max-width: 450px; }
.arch-svg { width: 100%; max-width: 900px; }
.flow-svg { width: 100%; max-width: 900px; }
.arch-diagram { display: flex; justify-content: center; }
.tool-flow { display: flex; justify-content: center; }

/* ---- Security Layers ---- */
.security-layers {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    margin-top: 20px;
}
.security-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 40px 32px; text-align: center;
    width: 280px;
    transition: transform 0.3s, border-color 0.3s;
}
.security-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.3);
}
.security-icon { margin-bottom: 20px; }
.security-card h3 {
    font-size: 18px; font-weight: 600; color: #e2e8f0; margin-bottom: 12px;
}
.security-card p {
    font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6;
}
.security-arrow {
    font-size: 24px; color: rgba(255,255,255,0.15); font-weight: 300;
}

/* ---- CTA ---- */
.cta-features {
    display: flex; align-items: center; gap: 40px;
    margin: 40px 0;
}
.cta-item { text-align: center; }
.cta-number {
    display: block; font-size: 48px; font-weight: 800;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-label {
    font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 4px;
    display: block;
}
.cta-divider {
    width: 1px; height: 50px; background: rgba(255,255,255,0.1);
}
.cta-tagline {
    font-size: 16px; color: rgba(255,255,255,0.35); margin-top: 20px;
    letter-spacing: 1px;
}

/* ---- Animations ---- */
.anim-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1);
    transition-delay: var(--delay, 0s);
}
.slide.active .anim-fade-up {
    opacity: 1; transform: translateY(0);
}

/* ---- Particles ---- */
.particle {
    animation: float 6s ease-in-out infinite;
}
.p1 { animation-delay: 0s; }
.p2 { animation-delay: 1s; }
.p3 { animation-delay: 2s; }
.p4 { animation-delay: 3s; }
.p5 { animation-delay: 0.5s; }
.p6 { animation-delay: 2.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-15px); }
    75% { transform: translateY(-25px) translateX(5px); }
}

/* ---- Chart Bars Animation ---- */
.chart-bar {
    transform-origin: bottom;
    animation: grow-bar 1s cubic-bezier(0.4,0,0.2,1) forwards;
    opacity: 0;
}
.slide.active .chart-bar { opacity: 1; }
.bar1 { animation-delay: 0.8s; }
.bar2 { animation-delay: 0.9s; }
.bar3 { animation-delay: 1.0s; }
.bar4 { animation-delay: 1.1s; }
.bar5 { animation-delay: 1.2s; }
@keyframes grow-bar {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   Mobile Support - Rotate Prompt + Auto Scale
   ============================================ */
#rotate-prompt {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: #0a0a1a; color: #e2e8f0;
    flex-direction: column; align-items: center; justify-content: center;
    font-family: var(--font); text-align: center; gap: 16px;
}
#rotate-prompt .rotate-icon {
    font-size: 48px; animation: rotate-hint 2s ease-in-out infinite;
}
#rotate-prompt p { font-size: 16px; color: rgba(255,255,255,0.6); }
@keyframes rotate-hint {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

@media (max-aspect-ratio: 1/1) {
    #rotate-prompt { display: flex; }
}
