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

:root {
    --ticker-height: 32px;
    --navbar-height: 72px;
    --header-offset: calc(var(--ticker-height) + var(--navbar-height));
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 112px;
    }
}

html {
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #111827;
    padding-top: var(--header-offset);
}

.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #030712;
    color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: var(--ticker-height);
    padding: 0;
    border-bottom: 1px solid #374151;
    z-index: 1100;
    font-size: 0.9rem;
}

.ticker-item {
    margin: 0 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: calc(var(--ticker-height) + 1px);
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #374151;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #60a5fa;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}

/* Animations Section - Side by Side */
.animations-section {
    width: 100%;
    background: #030712;
    padding: 0;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.animations-container {
    display: flex;
    width: 100%;
    min-height: 70vh;
    height: 70vh;
    min-height: 500px;
}

.animation-panel {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: #030712;
}

.animation-panel.animation-left {
    border-right: 1px solid #1f2937;
}

.animation-panel.animation-right {
    border-left: 1px solid #1f2937;
}

#interestRateCanvas,
#sofrCurveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.hero-overlay-content .hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff96, #40c8e0, #b4c8dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-overlay-content .animation-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff96, #40c8e0, #b4c8dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-overlay-content .hero-subtitle {
    font-size: 1.5rem;
    color: #d1d5db;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.curve-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff96;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* Legacy classes for backward compatibility */
.animated-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #030712;
    margin-top: var(--header-offset);
}

.sofr-curve-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: #030712;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-offset));
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

section {
    scroll-margin-top: var(--header-offset);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.greeting {
    font-size: 1.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-company {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #d1d5db;
    border: 2px solid #6b7280;
}

.btn-secondary:hover {
    background: #374151;
    border-color: #9ca3af;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Sections */
section.content-section {
    padding: 80px 0;
}

section.content-section:nth-of-type(even) {
    background: #1f2937;
}

section.content-section:nth-of-type(odd) {
    background: #111827;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Prototypes Section */
.prototype-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3rem;
    align-items: stretch;
}

.prototype-description,
.prototype-cta-card {
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.prototype-description h3,
.prototype-cta-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.prototype-description p,
.prototype-cta-card p {
    color: #9ca3af;
    line-height: 1.7;
}

.prototype-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1.75rem;
}

.prototype-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
}

.prototype-icon {
    font-size: 2rem;
    line-height: 1;
}

.prototype-list h4 {
    font-size: 1.2rem;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.prototype-cta-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.prototype-badge {
    align-self: center;
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prototype-cta-card .btn {
    align-self: center;
    min-width: 220px;
}

.prototype-note {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #6b7280;
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(168, 85, 247, 0.6));
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.course-subtitle {
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-description {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #6b7280;
    font-size: 1.2rem;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #6b7280 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star.three-quarter {
    position: relative;
    display: inline-block;
    color: #6b7280; /* base gray */
}

.star.three-quarter::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 75%;
    overflow: hidden;
    color: #fbbf24; /* yellow/gold */
}

.rating-text {
    color: #d1d5db;
    font-weight: 600;
}

.students {
    color: #9ca3af;
    font-size: 0.9rem;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.course-features li::before {
    content: "•";
    color: #60a5fa;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.course-footer {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1.75rem;
    display: flex;
    justify-content: center;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.course-actions .btn {
    min-width: 180px;
    text-align: center;
}


.pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sale-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
}

.original-price {
    color: #6b7280;
    text-decoration: line-through;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.about-text p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #6b7280;
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #9ca3af;
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: #111827;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #374151;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #6b7280;
    transform: translateY(-4px);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.project-card p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.project-card .btn {
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    background: #f59e0b;
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.coming-soon {
    background: #10b981;
}

.varfe-section {
    margin-top: 3rem;
}

.varfe-card {
    background: linear-gradient(135deg, #1e3a8a, #7c3aed);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.varfe-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.varfe-card p {
    color: #e5e7eb;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #030712;
    padding: 3rem 0;
    border-top: 1px solid #374151;
}

.footer-content {
    text-align: center;
    color: #9ca3af;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-address {
    font-weight: 600;
    margin-bottom: 2rem !important;
}

.footer-map {
    max-width: 800px;
    margin: 0 auto;
}

.footer-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animations-container {
        flex-direction: column;
        height: auto;
    }

    .animation-panel {
        width: 100%;
        height: 50vh;
        min-height: 400px;
    }

    .animation-panel.animation-left {
        border-right: none;
        border-bottom: 1px solid #1f2937;
    }

    .animation-panel.animation-right {
        border-left: none;
        border-top: 1px solid #1f2937;
    }

    .hero-overlay-content .animation-title {
        font-size: 1.5rem;
    }

    .curve-label {
        font-size: 0.9rem;
    }

    .animated-hero {
        height: 50vh;
        min-height: 400px;
    }

    .sofr-curve-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-overlay-content .hero-title {
        font-size: 2.5rem;
    }

    .hero-overlay-content .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        display: none;
    }

    .section-header h1 {
        font-size: 2.4rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .prototype-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prototype-description,
    .prototype-cta-card {
        padding: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .varfe-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .course-card,
    .feature-card,
    .project-card {
        margin: 0 10px;
    }

    .prototype-cta-card .btn {
        width: 100%;
    }

    .course-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
