/* ═══════════════════════════════════════════════════════════
   OneData — AI-Powered Data Engineering SDLC Agents
   Professional Website Styles
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --accent: #f97316;
    --accent-light: #fdba74;
    --success: #10b981;
    --warning: #f59e0b;

    --bg-body: #fafafa;
    --bg-section: #ffffff;
    --bg-section-alt: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #fffbf7;
    --bg-elevated: #f3f4f6;

    --text-white: #0f172a;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;

    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(249, 115, 22, 0.35);
    --border-card: #e5e7eb;

    --gradient-brand: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-brand-rev: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --gradient-surface: linear-gradient(180deg, rgba(249, 115, 22, 0.04) 0%, transparent 100%);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.12);
    --shadow-glow-accent: 0 0 30px rgba(249, 115, 22, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);
}

/* ═══ RESET ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity var(--transition);
}

.nav-brand:hover {
    opacity: 0.9;
}

.nav-brand .brand-mark {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-white);
    background: rgba(249, 115, 22, 0.06);
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
    transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35) !important;
    background: var(--primary-dark) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-body);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../assets/hero-bg.jpg') center/cover no-repeat;
    background-image: -webkit-image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg'));
    background-image: image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.03;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 55%);
    animation: heroFloat 25s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, -2%) scale(1.03); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-full);
    padding: 0.45rem 1.3rem;
    font-size: 0.82rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-badge .badge-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.hero .hero-title-sub {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.powered-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.powered-item img {
    height: 22px;
    width: auto;
    opacity: 0.8;
}

.powered-item span {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    background: var(--primary-dark);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-white);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(249, 115, 22, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */

section {
    padding: 6.5rem 2rem;
    position: relative;
    background: var(--bg-section);
}

.section-alt {
    background: var(--bg-section-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(249, 115, 22, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   LIFECYCLE SECTION
   ═══════════════════════════════════════════════════════════ */

.lifecycle-image {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    max-width: 960px;
    margin: 0 auto;
}

.lifecycle-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   AGENTS SECTION
   ═══════════════════════════════════════════════════════════ */

.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.agent-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition);
}

.agent-card:hover .card-accent {
    opacity: 1;
}

.agent-card .agent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agent-card .agent-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.agent-card .agent-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
}

.agent-card .agent-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.agent-card .features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
}

.agent-card .features-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.agent-card .features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   VALIDATION SECTION
   ═══════════════════════════════════════════════════════════ */

.validation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.val-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.val-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.val-card .val-icon {
    width: 42px;
    height: 42px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.val-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.val-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   ARCHITECTURE / SHOWCASE
   ═══════════════════════════════════════════════════════════ */

.architecture-section {
    text-align: center;
}

.architecture-image {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    max-width: 960px;
    margin: 0 auto 3rem;
}

.architecture-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   SKILLS/RULES/TOOLS PILLARS
   ═══════════════════════════════════════════════════════════ */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.pillar-card .pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    color: #fff;
}

.pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
}

.pillar-card .pillar-items {
    list-style: none;
    margin-top: 1.25rem;
    text-align: left;
    padding: 0;
}

.pillar-card .pillar-items li {
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pillar-card .pillar-items li:last-child {
    border-bottom: none;
}

.pillar-card .pillar-items li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   CAPABILITIES
   ═══════════════════════════════════════════════════════════ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cap-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.cap-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.cap-item .cap-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.08);
    border-radius: var(--radius-sm);
}

.cap-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.cap-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════════════════════ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.team-card {
    display: block;
    text-align: center;
    padding: 2.25rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.team-card .avatar {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.team-card .avatar.avatar-photo {
    background: none;
    overflow: hidden;
}

.team-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.team-card .email {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.team-card .email:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */

.cta-section {
    padding: 5rem 2rem;
    background: var(--bg-section-alt);
}

.cta-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border-card);
    background: var(--bg-section);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-brand .brand-mark {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    color: #fff;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-powered img {
    height: 18px;
    width: auto;
    opacity: 0.7;
}

.footer-powered strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
    .agents-grid {
        grid-template-columns: 1fr 1fr;
    }
    .capabilities-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .validation-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .lifecycle-ring {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card .features-list {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .lifecycle-step .lc-arrow {
        display: none;
    }

    section {
        padding: 4.5rem 1.5rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .hero-title-sub {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ✦ ENHANCEMENT LAYER — MOTION, DEPTH & GLOW
   (Additive only — no content or layout structure changes)
   ═══════════════════════════════════════════════════════════ */

/* ─── Scroll progress bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(var(--scroll, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #f97316, #fb923c, #fdba74);
    background-size: 200% 100%;
    animation: progressShimmer 3s linear infinite;
    z-index: 1100;
    will-change: transform;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

@keyframes progressShimmer {
    to { background-position: 200% 0; }
}

/* ─── Hero: animated aurora + orbs + spotlight ─── */
.hero-aurora {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(249, 115, 22, 0.14), transparent 60%),
        radial-gradient(35% 45% at 80% 25%, rgba(251, 146, 60, 0.12), transparent 60%),
        radial-gradient(45% 40% at 60% 80%, rgba(253, 186, 116, 0.1), transparent 60%);
    filter: blur(40px);
    animation: auroraDrift 22s ease-in-out infinite;
    will-change: transform;
}

@keyframes auroraDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(3%, -2%, 0) scale(1.06); }
    66%      { transform: translate3d(-2%, 2%, 0) scale(0.98); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    z-index: 0;
    will-change: transform;
}

.hero-orb-1 {
    width: 380px; height: 380px;
    top: 8%; left: 10%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb-2 {
    width: 320px; height: 320px;
    bottom: 6%; right: 12%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.3), transparent 70%);
    animation: orbFloat 24s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 260px; height: 260px;
    top: 45%; right: 30%;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.25), transparent 70%);
    animation: orbFloat 20s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -50px); }
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
                rgba(249, 115, 22, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ─── Hero content entrance choreography ─── */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: heroRise 0.85s var(--ease) forwards;
}
.hero-content > .hero-badge      { animation-delay: 0.05s; }
.hero-content > h1               { animation-delay: 0.15s; }
.hero-content > .hero-title-sub  { animation-delay: 0.27s; }
.hero-content > .hero-subtitle   { animation-delay: 0.39s; }
.hero-content > .hero-actions    { animation-delay: 0.51s; }
.hero-content > .hero-powered    { animation-delay: 0.63s; }

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

/* Animated gradient shimmer on the subtitle — disabled for solid orange theme */
.hero .hero-title-sub {
    animation: none;
}

.hero-badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ─── Nav link animated underline ─── */
.nav-menu a:not(.nav-cta) {
    position: relative;
}
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--transition);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a.active:not(.nav-cta)::after {
    transform: scaleX(1);
}

/* ─── Section labels: subtle shine ─── */
.section-label {
    position: relative;
    overflow: hidden;
}
.section-label::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(251, 146, 60, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: labelSweep 4.5s ease-in-out infinite;
}
@keyframes labelSweep {
    0%, 60%, 100% { transform: translateX(-120%); }
    80% { transform: translateX(120%); }
}

/* ─── Interactive cards: cursor glow + lift + animated border ─── */
.agent-card, .val-card, .pillar-card, .cap-item, .team-card {
    --cx: 50%;
    --cy: 50%;
    transition: transform 0.35s var(--ease), border-color var(--transition), box-shadow var(--transition);
    will-change: transform;
}

.agent-card::after,
.val-card::after,
.pillar-card::after,
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--cx) var(--cy),
                rgba(249, 115, 22, 0.1), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 0;
}
.agent-card:hover::after,
.val-card:hover::after,
.pillar-card:hover::after,
.team-card:hover::after {
    opacity: 1;
}

/* keep card content above the glow layer */
.agent-card > *,
.val-card > *,
.pillar-card > *,
.team-card > * {
    position: relative;
    z-index: 1;
}

.val-card, .pillar-card, .team-card {
    position: relative;
    overflow: hidden;
}

/* Agent cards: clean white surface */
.agent-card {
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.agent-card .card-accent {
    background: linear-gradient(90deg, transparent, #f97316, #fb923c, transparent);
    background-size: 200% 100%;
}
.agent-card:hover .card-accent {
    animation: accentSlide 2s linear infinite;
}
@keyframes accentSlide {
    to { background-position: 200% 0; }
}

/* Animated icon pop on hover */
.agent-card:hover .agent-icon,
.val-card:hover .val-icon,
.cap-item:hover .cap-icon {
    transform: translateY(-2px) scale(1.08);
    border-color: var(--primary);
}
.agent-icon, .val-icon, .cap-icon {
    transition: transform var(--transition), border-color var(--transition);
}

/* Pillar icon gentle float + glow */
.pillar-card:hover .pillar-icon {
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.25);
    transform: translateY(-3px) rotate(-4deg);
}
.pillar-card .pillar-icon {
    transition: transform var(--transition), box-shadow var(--transition);
}

/* Feature list items reveal on card hover */
.agent-card .features-list li {
    transition: color var(--transition), transform var(--transition);
}
.agent-card:hover .features-list li {
    color: var(--text-primary);
}
.agent-card .features-list li::before {
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.agent-card:hover .features-list li::before {
    opacity: 1;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

/* Avatar ring spin on hover */
.team-card .avatar {
    position: relative;
    transition: transform var(--transition);
}
.team-card:hover .avatar {
    transform: scale(1.06);
}
.team-card .avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f97316, #fb923c, #fdba74, #f97316);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
    animation: spin 4s linear infinite;
}
.team-card:hover .avatar::before { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Buttons: sheen sweep ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 130%; }

.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* CTA box ambient glow */
.cta-box {
    background: #ffffff;
}
.cta-box::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.06) 40%, transparent 72%);
    animation: ctaPulse 6s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

/* Lifecycle image: subtle float + glow frame */
.lifecycle-image {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.lifecycle-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.12);
}

/* ─── Back to top ─── */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 1050;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-3px);
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

/* ─── Reveal: richer staggered variants ─── */
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }

/* Stagger children inside a revealed grid */
.reveal.visible .agent-card,
.reveal.visible .cap-item { animation: cardIn 0.6s var(--ease) backwards; }

/* ─── Floating animation utility for powered logos ─── */
.powered-item img,
.footer-powered img {
    transition: transform var(--transition), opacity var(--transition);
}
.powered-item:hover img,
.footer-powered:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   ✦✦ PREMIUM MOTION TIER
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero particle constellation canvas ─── */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
}

/* ─── Trailing cursor follower (desktop / fine pointer only) ─── */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    will-change: transform;
}
.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(249, 115, 22, 0.45);
    transition: opacity 0.3s var(--ease), width 0.25s var(--ease),
                height 0.25s var(--ease), border-color 0.25s var(--ease),
                background 0.25s var(--ease);
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }

/* Ring grows + tints over interactive targets */
body.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.08);
}
body.cursor-hover .cursor-dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ─── Word-by-word headline reveal ─── */
.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.hero h1 .word-inner {
    display: inline-block;
    transform: translateY(115%) rotate(6deg);
    opacity: 0;
    animation: wordRise 0.85s var(--ease-spring) forwards;
}
@keyframes wordRise {
    to { transform: translateY(0) rotate(0); opacity: 1; }
}
/* When JS splits the headline, suppress the old block entrance for h1 */
.hero-content > h1.is-split {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ─── Rotating gradient border on agent cards ─── */
.agent-card {
    isolation: isolate;
}
.agent-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0%, rgba(249, 115, 22, 0.0) 55%,
        #f97316 75%, #fb923c 88%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2;
    pointer-events: none;
}
.agent-card:hover::before {
    opacity: 1;
    animation: borderSpin 4s linear infinite;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes borderSpin {
    to { --angle: 360deg; }
}

/* ─── Smoother, richer scroll reveals (scale + blur in) ─── */
.reveal {
    transform: translateY(38px) scale(0.985);
    filter: blur(6px);
    transition: opacity 0.7s var(--ease),
                transform 0.7s var(--ease-spring),
                filter 0.7s var(--ease);
}
.reveal.visible {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Auto-stagger grid children once their wrapper reveals */
.reveal.visible > .agents-grid > *,
.reveal.visible > .capabilities-grid > *,
.reveal.visible.agents-grid > *,
.reveal.visible.capabilities-grid > *,
.reveal.visible.pillars-grid > *,
.reveal.visible.validation-grid > *,
.reveal.visible.team-grid > * {
    animation: cardIn 0.6s var(--ease-spring) backwards;
}
.reveal.visible > *:nth-child(1),
.reveal.visible.agents-grid > *:nth-child(1) { animation-delay: 0.00s; }
.reveal.visible > *:nth-child(2) { animation-delay: 0.07s; }
.reveal.visible > *:nth-child(3) { animation-delay: 0.14s; }
.reveal.visible > *:nth-child(4) { animation-delay: 0.21s; }
.reveal.visible > *:nth-child(5) { animation-delay: 0.28s; }
.reveal.visible > *:nth-child(6) { animation-delay: 0.35s; }
.reveal.visible > *:nth-child(7) { animation-delay: 0.42s; }
.reveal.visible > *:nth-child(8) { animation-delay: 0.49s; }
.reveal.visible > *:nth-child(9) { animation-delay: 0.56s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(26px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Make the grids themselves reveal targets via JS (.reveal added) */
.agents-grid.reveal,
.capabilities-grid.reveal,
.pillars-grid.reveal,
.validation-grid.reveal,
.team-grid.reveal { transition-delay: 0s; }

/* ─── Section heading: gradient underline draws in ─── */
.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-brand);
    transition: transform 0.7s var(--ease-spring) 0.2s;
}
.reveal.visible .section-header h2::after,
.section-header.reveal.visible h2::after { transform: translateX(-50%) scaleX(1); }

/* ─── Hero parallax hook (JS sets --py = scrollY) ─── */
.hero-grid     { transform: translateY(calc(var(--py, 0) * 0.18px)); }
.hero-bg-image { transform: translateY(calc(var(--py, 0) * 0.28px)) scale(1.05); }
.hero-content  { transform: translateY(calc(var(--py, 0) * -0.06px)); }

/* ═══ Reduced motion: respect user preference ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-content > * { opacity: 1; transform: none; }
    .hero-aurora, .hero-orb { animation: none; }
    .hero-canvas { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
    .reveal { filter: none; transform: none; }
    .hero h1 .word-inner { transform: none; opacity: 1; animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   ✦✦✦ MULTI-PAGE LAYER
   Inner page heroes, breadcrumbs, clickable agent tiles,
   agent detail layouts, prev/next navigation.
   (Additive only — extends the existing design system)
   ═══════════════════════════════════════════════════════════ */

/* ─── Container variants ─── */
.container-narrow { max-width: 1060px; margin: 0 auto; }

/* ─── Active nav (path based) ─── */
.nav-menu a[aria-current="page"] {
    color: var(--text-white);
    background: rgba(249, 115, 22, 0.06);
}
.nav-menu a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }

/* ═══ INNER PAGE HERO ═══ */
.page-hero {
    position: relative;
    padding: 9.5rem 2rem 3.5rem;
    background: var(--bg-body);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 10%, transparent 75%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: heroFloat 22s ease-in-out infinite;
}
.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}
.page-hero .page-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.7;
}
.page-hero.text-center { text-align: center; }
.page-hero.text-center .page-lead { margin-left: auto; margin-right: auto; }

/* ─── Breadcrumb ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb [aria-current] { color: var(--primary-dark); font-weight: 600; }

/* ═══ CLICKABLE AGENT TILES ═══ */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.tiles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.agent-tile {
    --cx: 50%; --cy: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.9rem 1.75rem;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), border-color var(--transition), box-shadow var(--transition);
    will-change: transform;
}
.agent-tile:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.agent-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--cx) var(--cy), rgba(249, 115, 22, 0.1), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 0;
}
.agent-tile:hover::after { opacity: 1; }
.agent-tile > * { position: relative; z-index: 1; }

.tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.agent-tile .agent-icon {
    width: 50px; height: 50px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--transition), border-color var(--transition);
}
.agent-tile:hover .agent-icon { transform: translateY(-2px) scale(1.08); border-color: var(--primary); }

.tile-phase {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.tile-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--gradient-brand);
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}
.agent-tile h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}
.agent-tile p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    flex-grow: 1;
}
.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tile-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.22rem 0.65rem;
}
.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.tile-cta svg { transition: transform var(--transition); }
.agent-tile:hover .tile-cta svg { transform: translateX(4px); }

/* Top accent line on tiles */
.agent-tile .card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f97316, #fb923c, transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2;
}
.agent-tile:hover .card-accent { opacity: 1; animation: accentSlide 2s linear infinite; }

/* ═══ AGENT DETAIL PAGE ═══ */
.agent-hero-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.agent-hero-icon {
    width: 76px; height: 76px;
    flex-shrink: 0;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}
.agent-hero-head .section-label { margin-bottom: 0.75rem; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}
.detail-main > h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin: 2.5rem 0 1rem;
}
.detail-main > h2:first-child { margin-top: 0; }
.detail-main > p { color: var(--text-primary); font-size: 0.98rem; line-height: 1.75; margin-bottom: 1rem; }

/* Big feature list */
.features-list-lg {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}
.features-list-lg li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
}
.features-list-lg li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
}
.features-list-lg li::after {
    content: '✓';
    position: absolute;
    left: 5px; top: 2px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
}

/* Pipeline step flow */
.pipeline-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0;
}
.pipeline-steps li {
    position: relative;
    counter-increment: step;
    padding: 0 0 1.5rem 3rem;
    border-left: 2px solid var(--border-card);
    margin-left: 0.9rem;
}
.pipeline-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pipeline-steps li::before {
    content: counter(step);
    position: absolute;
    left: -0.95rem; top: -0.2rem;
    width: 1.8rem; height: 1.8rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px var(--bg-section);
}
.pipeline-steps li strong {
    display: block;
    color: var(--text-white);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.pipeline-steps li span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Aside cards */
.detail-aside {
    display: grid;
    gap: 1.25rem;
    position: sticky;
    top: 96px;
}
.aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.aside-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
}
.aside-card h4:not(:first-child) { margin-top: 1.5rem; }
.aside-card ul { list-style: none; display: grid; gap: 0.55rem; }
.aside-card ul li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.aside-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
}
.aside-card code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.78rem;
    background: var(--bg-elevated);
    color: var(--primary-dark);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Scenario / meta rows */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.meta-row:last-child { border-bottom: none; }
.meta-row .meta-key { color: var(--text-secondary); }
.meta-row .meta-val { color: var(--text-white); font-weight: 600; text-align: right; }

/* Callout */
.callout {
    display: flex;
    gap: 0.9rem;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
}
.callout .callout-icon { font-size: 1.2rem; flex-shrink: 0; }
.callout p { font-size: 0.88rem; color: var(--text-primary); line-height: 1.6; margin: 0; }

/* Code-path / variant cards */
.variant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.variant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.variant-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.variant-card .variant-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    background: rgba(249, 115, 22, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}
.variant-card h4 { font-size: 1rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.4rem; }
.variant-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Agent demo video ─── */
.agent-demo {
    margin: 2.75rem 0 1rem;
}
.agent-demo .demo-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.agent-demo .demo-head h2 {
    margin: 0;
}
.agent-demo .demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    background: rgba(249, 115, 22, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
}
.agent-demo .demo-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.agent-demo .demo-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.demo-frame {
    position: relative;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    background: #000;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.demo-frame video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

/* ─── Prev / Next agent navigation ─── */
.agent-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-card);
}
.agent-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.agent-nav a:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agent-nav a.next { text-align: right; align-items: flex-end; }
.agent-nav .nav-dir { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.agent-nav .nav-title { font-size: 1rem; font-weight: 600; color: var(--text-white); }
.agent-nav a:hover .nav-title { color: var(--primary-dark); }

/* ─── Mini agent rail (related agents) ─── */
.rail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.rail a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}
.rail a:hover { border-color: var(--border-hover); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rail a .rail-ic { font-size: 1.05rem; }

/* ─── Section CTA inline button row ─── */
.inline-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ─── Stat strip ─── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.stat-strip .stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.stat-strip .stat .num {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-strip .stat .label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ─── Responsive (multipage) ─── */
@media (max-width: 980px) {
    .tiles-grid, .variant-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-aside { position: static; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .tiles-grid, .tiles-grid.cols-2, .variant-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 8rem 1.5rem 3rem; }
    .agent-hero-head { flex-direction: column; gap: 1rem; }
    .agent-nav { grid-template-columns: 1fr; }
    .agent-nav a.next { text-align: left; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   ✦✦✦✦ PLAYBOOK LAYER
   Code blocks, folder trees, data tables, inline code.
   ═══════════════════════════════════════════════════════════ */

/* ─── Inline code chips (content only, not nav/pre) ─── */
.detail-main code,
.callout code,
.pb-table code,
.aside-card code,
.prose code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82em;
    background: var(--bg-elevated);
    color: var(--primary-dark);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    border: 1px solid var(--border);
}

/* ─── Terminal / code blocks ─── */
.code-card { margin: 1.5rem 0; }
.code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 0.55rem;
}
.code-label::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}
pre.codeblock {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    background: #0d1117;
    color: #d6deeb;
    border: 1px solid #1e2633;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.3rem;
    overflow-x: auto;
    white-space: pre;
    box-shadow: var(--shadow-sm);
}
pre.codeblock .cmt { color: #7f8ea3; }
pre.codeblock .tok { color: #f0883e; }
pre.codeblock code {
    background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}

/* ─── Data tables ─── */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.pb-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.88rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.pb-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border-card);
    white-space: nowrap;
}
.pb-table td {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: top;
    line-height: 1.55;
}
.pb-table td:first-child { font-weight: 650; color: var(--text-white); }
.pb-table tr:hover td { background: var(--bg-card-hover); }

/* ─── Layered pyramid (rule stack) ─── */
.stack {
    max-width: 720px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}
.stack-layer {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    text-align: center;
    padding: 0.9rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stack-layer:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stack-layer strong { display: block; font-size: 0.95rem; color: var(--text-white); }
.stack-layer span { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.15rem; }
.stack-layer.s1 { width: 55%; background: rgba(249, 115, 22, 0.1); border-color: rgba(249,115,22,0.25); }
.stack-layer.s2 { width: 70%; background: rgba(249, 115, 22, 0.06); }
.stack-layer.s3 { width: 85%; }
.stack-layer.s4 { width: 100%; background: var(--bg-section-alt); }

@media (max-width: 680px) {
    .stack-layer.s1, .stack-layer.s2, .stack-layer.s3, .stack-layer.s4 { width: 100%; }
}
