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

:root {
    --brand-indigo: #201E70;       /* Pantone 2755 CV / CVU Deep Royal Navy */
    --brand-indigo-light: #2E2B96;
    --brand-indigo-rgb: 32, 30, 112;
    --brand-gold: #F29F05;         /* Pantone 130 CVU Warm Amber Gold */
    --brand-gold-hover: #D48E04;
    --brand-gold-rgb: 242, 159, 5;
    --brand-blue-light: #F0F5FF;
    --brand-blue-mid: #E0EBFF;
    --bg-light: #FAF9F6;
    --bg-panel: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --border-color-hover: #CBD5E1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(32, 30, 112, 0.03), 0 2px 4px -1px rgba(32, 30, 112, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(32, 30, 112, 0.05), 0 4px 6px -2px rgba(32, 30, 112, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(32, 30, 112, 0.08), 0 10px 10px -5px rgba(32, 30, 112, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-indigo);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation Header */
header {
    background-color: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-indigo);
    letter-spacing: -0.2px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-family: 'Open Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-indigo);
}

.btn-header {
    background-color: var(--brand-indigo);
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--brand-indigo);
}

.btn-header:hover {
    background-color: var(--brand-indigo-light);
    border-color: var(--brand-indigo-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--brand-indigo);
    color: #FFFFFF;
    border: 1px solid var(--brand-indigo);
}

.btn-primary:hover {
    background-color: var(--brand-indigo-light);
    border-color: var(--brand-indigo-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-panel);
    color: var(--brand-indigo);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--brand-gold);
    color: #FFFFFF;
    border: 1px solid var(--brand-gold);
}

.btn-gold:hover {
    background-color: var(--brand-gold-hover);
    border-color: var(--brand-gold-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-indigo), var(--brand-indigo-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.relative-section {
    position: relative;
    overflow: hidden;
}

/* Grid & Layout Helpers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0 100px;
}

.curve-bg-light {
    background: radial-gradient(circle at 90% 10%, var(--brand-blue-mid) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 10% 90%, rgba(29, 9, 120, 0.02) 0%, rgba(255, 255, 255, 0) 60%),
                var(--brand-blue-light);
}

.curve-bg-white {
    background: radial-gradient(circle at 10% 10%, rgba(29, 9, 120, 0.02) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 90% 90%, var(--brand-blue-mid) 0%, rgba(255, 255, 255, 0) 60%),
                var(--bg-panel);
}

.curved-panel {
    border-radius: 32px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    transition: var(--transition);
}

.curved-panel:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, var(--brand-blue-mid) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 20% 80%, rgba(29, 9, 120, 0.015) 0%, rgba(255, 255, 255, 0) 60%),
                linear-gradient(135deg, var(--brand-blue-light) 0%, var(--bg-light) 100%);
    padding-top: 180px;
    padding-bottom: 220px; /* Safe padding-bottom to fully clear the wave divider */
}

.hero .container {
    position: relative;
    z-index: 10; /* Stack layout content firmly above the wave overlay and particles */
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Layer directly on top of section background but behind text/grid */
    pointer-events: none;
    opacity: 1.0; /* Full opacity canvas layer */
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 6;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Elegant subtle wave curve height */
}

.hero-wave .shape-fill {
    fill: var(--bg-panel);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrap {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: none;
    transition: var(--transition);
}

.hero-img-wrap:hover {
    transform: scale(1.02);
}

/* Bento Cards Design System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bento-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.bento-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--brand-indigo);
    opacity: 0;
    transition: var(--transition);
}

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

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

.bento-card .icon-wrap {
    background-color: rgba(29, 9, 120, 0.04);
    color: var(--brand-indigo);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--brand-indigo);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid-2x2 {
        grid-template-columns: 1fr;
    }
    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .nav-links, .btn-header {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* New Premium Section 1 Hero Block */
.new-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(238, 171, 22, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
                linear-gradient(135deg, var(--brand-indigo) 0%, #08032E 100%);
    color: #FFFFFF;
    padding-top: 180px;
    padding-bottom: 220px;
    border-bottom: none;
}

.new-hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.new-hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.new-hero .new-hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 6;
}

.new-hero .new-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.new-hero .new-hero-wave .shape-fill {
    fill: var(--brand-blue-light); /* Blends perfectly into the top of Section 2 */
}

@media (max-width: 768px) {
    .new-hero {
        padding-top: 140px;
        padding-bottom: 180px;
    }
    .new-hero h1 {
        font-size: 38px;
    }
    .new-hero p {
        font-size: 16px;
    }
}

/* Hero Morph Flow Container */
.new-hero-flow {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin-top: 56px;
    perspective: 1000px;
    flex-wrap: wrap;
}

.flow-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: rgba(8, 3, 46, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.flow-card:hover {
    transform: translateY(-10px) rotateY(4deg);
    border-color: var(--brand-gold);
    box-shadow: 0 30px 60px rgba(238, 171, 22, 0.15);
}

.card-showcase:hover img {
    transform: scale(1.06);
}

.flow-card .card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
}

.flow-card .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.flow-card .dot.red { background: #FF5F56; }
.flow-card .dot.yellow { background: #FFBD2E; }
.flow-card .dot.green { background: #27C93F; }

.flow-card .card-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    margin-left: 8px;
}

.flow-card .card-body {
    padding: 24px;
    flex-grow: 1;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Card Figma Wireframe Styling */
.card-figma {
    border-color: rgba(43, 142, 241, 0.2);
}
.card-figma .wireframe-rect {
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 12px;
}
.card-figma .header-wire {
    height: 24px;
    background: rgba(255, 255, 255, 0.02);
}
.card-figma .wireframe-grid {
    display: flex;
    gap: 8px;
}
.card-figma .item-wire {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.01);
}
.card-figma .wireframe-cursor {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-figma .cursor-label {
    background: var(--brand-gold);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Card Code Styling */
.card-code {
    border-color: rgba(238, 171, 22, 0.15);
}
.terminal-code pre {
    margin: 0;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}
.terminal-code .code-kw { color: #FF79C6; }
.terminal-code .code-class { color: #50FA7B; }
.terminal-code .code-func { color: #8BE9FD; }
.terminal-code .code-val { color: #F1FA8C; }

/* Card Live Preview Styling */
.card-live {
    border-color: rgba(238, 171, 22, 0.3);
}
.live-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.live-dashboard .metric-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.live-dashboard .metric {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}
.live-dashboard .metric .label {
    display: block;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}
.live-dashboard .metric .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-gold);
}
.live-dashboard .live-chart {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.chart-svg {
    width: 100%;
    display: block;
}

.flow-card .card-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
}

.flow-card .info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.flow-card .info-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Card 1: Wireframe Cursor Float Loop */
@keyframes cursorMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-24px, -16px); }
    100% { transform: translate(0, 0); }
}
.wireframe-cursor {
    animation: cursorMove 7s ease-in-out infinite;
}

/* Card 2: Terminal Code Blinking Cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.terminal-code .code-cursor {
    color: #50FA7B;
    font-weight: bold;
    animation: blink 1.1s step-end infinite;
    margin-left: 2px;
}

/* Card 3: Live Dashboard Sweeping SVG Chart Draw */
@keyframes drawChart {
    0% { stroke-dashoffset: 240; opacity: 0; }
    10% { opacity: 1; }
    75% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 240; opacity: 0; }
}
.chart-svg path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawChart 7s ease-in-out infinite;
}

/* Card 3: Live Metric Value Gentle Pulse */
@keyframes metricPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); color: #FFF; text-shadow: 0 0 8px rgba(238, 171, 22, 0.4); }
}
.live-dashboard .metric .value {
    display: inline-block;
    animation: metricPulse 3.5s ease-in-out infinite;
}
