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

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

.reg {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

:root {
    --color-primary: #011c4a;
    --color-secondary: #0a2c65;
    --color-accent: #ff5361;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;
    --color-text-cyan: #c4eef6;
    --color-blue: #60A5FA;
    --color-purple: #C084FC;
    --color-teal: #2DD4BF;
    --color-orange: #FB923C;
    --container-max-width: 1280px;
}

body {
    font-family: 'Satoshi', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--color-accent);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e64654;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 96px;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    top: -96px;
    right: -96px;
    width: 384px;
    height: 384px;
    background-color: rgba(17, 82, 212, 0.1);
    border-radius: 9999px;
    filter: blur(32px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-highlight {
    color: var(--color-cyan);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Dashboard Card */
.hero-dashboard {
    position: relative;
}

.dashboard-card {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.metric {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
}

.metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #3b82f6 100%);
    border-radius: 2px;
}

.dashboard-chart {
    height: 120px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    border-radius: 8px;
    position: relative;
}

.chart-placeholder {
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 25%, 
        rgba(59, 130, 246, 0.5) 50%, 
        rgba(59, 130, 246, 0.3) 75%, 
        transparent 100%
    );
}

/* Client Impact Section */
.client-impact {
    padding: 72px 0;
    background-color: var(--color-secondary);
}

.client-impact-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 52px;
    letter-spacing: -0.02em;
}

.client-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.impact-item {
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-item:first-child {
    padding-left: 0;
}

.impact-item:last-child {
    border-right: none;
    padding-right: 0;
}

.impact-stat {
    font-size: 72px;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.impact-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.impact-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.impact-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--color-primary);
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

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

.feature-card {
    background-color: var(--color-secondary);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon.blue {
    background-color: rgba(59, 130, 246, 0.1);
}

.feature-icon.purple {
    background-color: rgba(168, 85, 247, 0.1);
}

.feature-icon.teal {
    background-color: rgba(20, 184, 166, 0.1);
}

.feature-icon.orange {
    background-color: rgba(249, 115, 22, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Modules Section */
.modules {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.modules h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
}

.modules-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

.modules-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-tab {
    background-color: transparent;
    color: var(--color-text-muted);
    border: none;
    padding: 12px 16px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.module-tab:hover,
.module-tab.active {
    background-color: var(--color-secondary);
    color: white;
}

.modules-display {
    /* panels instead of simple items */
    display: block;
}

.module-panel {
    display: none;
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
}

.module-panel.active {
    display: block;
    animation: panelFadeIn 0.25s ease forwards;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.module-panel p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 16px;
}

.module-panel ul {
    list-style: disc;
    padding-left: 20px;
}

.module-panel ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* panel heading with icon */
.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pin-icon {
    font-size: 24px;
    color: var(--color-accent);
}

.panel-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--color-text);
}

.highlight-item .check {
    color: var(--color-accent);
    font-size: 16px;
}

@media (max-width: 768px) {
    .highlights {
        grid-template-columns: 1fr;
    }
}

.module-item {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
}

.module-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.module-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.module-badge.red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.module-badge.yellow {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.module-badge.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Video Gallery Section */
.video-gallery {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.video-gallery h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}

.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
}

.video-thumb {
    background-color: var(--color-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    text-align: center;
    overflow: hidden;
}

.video-thumb:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.video-thumb.active {
    border-color: var(--color-accent);
    background-color: rgba(255, 83, 97, 0.1);
}

.thumb-image {
    width: 100%;
    height: 75px;
    display: block;
    border-radius: 4px 4px 0 0;
    object-fit: cover;
}

.thumb-title {
    font-size: 11px;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player-container {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

#main-video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Value Proposition Section */
.value-proposition {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-cyan);
    margin-bottom: 8px;
}

.value-proposition h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 64px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 16px;
}

.value-item {
    display: flex;
    gap: 16px;
}

.value-number {
    font-family: 'Public Sans', sans-serif;
    font-size: 60px;
    font-weight: 900;
    line-height: 60px;
    color: var(--color-text-cyan);
    opacity: 0.5;
    flex-shrink: 0;
}

.value-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.value-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Workflow Section */
.workflow {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.workflow h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
}

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

.workflow-step {
    text-align: center;
}

.workflow-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.workflow-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--color-primary);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.4;
}

.btn-cta {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #e64654;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .client-impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-item {
        padding: 32px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .impact-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .features-grid,
    .value-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-content {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumb-image {
        height: 63px;
    }
    
    .thumb-title {
        font-size: 10px;
    }
}

/* Mobile video overlay */
.video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
}

.video-overlay.active {
    display: flex;
}

.video-overlay video {
    width: 100%;
    max-height: 100svh;
    outline: none;
}

.video-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Modal Styles */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: transparent;
    color: #ffffff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-body {
    padding: 0;
}

.modal-body .izertis-form-wrapper {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal.active .izertis-form-wrapper {
    animation: izertis-popup-fade-in 200ms ease-out;
}

@keyframes izertis-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-title {
    margin: 0 0 24px 0;
    padding-right: 32px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}

.hubspot-iframe {
    width: 100%;
    height: auto;
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

/* HubSpot v2 form styling inside the demo modal */
.modal-body .hs-form-field {
    margin-bottom: 16px;
}

.modal-body .hs-form-field > label,
.modal-body .hs-form-field legend,
.modal-body .hs-richtext,
.modal-body .hs-richtext p,
.modal-body .hs-form-booleancheckbox label,
.modal-body .hs-form-checkbox label,
.modal-body .hs-form-radio label {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
}

.modal-body .hs-form-field input[type="text"],
.modal-body .hs-form-field input[type="email"],
.modal-body .hs-form-field input[type="tel"],
.modal-body .hs-form-field input[type="number"],
.modal-body .hs-form-field textarea,
.modal-body .hs-form-field select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .hs-form-field input:focus,
.modal-body .hs-form-field textarea:focus,
.modal-body .hs-form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 83, 97, 0.25);
}

.modal-body .hs-error-msg,
.modal-body .hs-error-msgs label {
    color: #dc2626;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 2px;
}

.modal-body .hs-submit .hs-button {
    background-color: var(--color-accent);
    color: var(--color-text);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-body .hs-submit .hs-button:hover {
    background-color: #e64552;
}

.modal-body .hs-form-booleancheckbox input,
.modal-body .hs-form-checkbox input,
.modal-body .hs-form-radio input {
    margin-right: 8px;
}

.modal-body .hs-form a {
    color: var(--color-accent);
}
