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

:root {
    /* 60-30-10 Color Rule */
    --color-dominant: #E7E7E7; /* 60% - Background */
    --color-accent: #192F45; /* 10% - Actions, highlights */
    
    --primary-color: #192F45;
    --primary-dark: #152438;
    --accent-color: #192F45;
    --action-color: #192F45;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #ffffff;
    --white: #ffffff;
    --border-color: #d1d5db;
    --success-color: #10b981;
    
    /* Golden Ratio Typography Scale (φ = 1.618) */
    --phi: 1.618;
    --font-base: 1rem; /* 16px */
    --font-small: calc(var(--font-base) / var(--phi)); /* 0.618rem */
    --font-body: var(--font-base); /* 1rem */
    --font-h4: var(--font-base); /* 1rem */
    --font-h3: calc(var(--font-base) * var(--phi)); /* 1.618rem */
    --font-h2: calc(var(--font-base) * var(--phi) * var(--phi)); /* 2.618rem */
    --font-h1: calc(var(--font-base) * var(--phi) * var(--phi) * var(--phi)); /* 4.236rem */
    
    /* Line heights using golden ratio */
    --line-tight: 1.382; /* 1.618 - 0.236 */
    --line-normal: var(--phi); /* 1.618 */
    --line-relaxed: calc(var(--phi) * 1.236); /* ~2 */
}

body {
    font-family: 'Playfair Display', 'ui-serif', serif;
    color: var(--text-dark);
    font-size: var(--font-body);
    line-height: var(--line-normal);
    overflow-x: hidden;
    background: var(--color-dominant);
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 99999;
}

/* Hero Container (wraps navbar and hero section) */
.hero-container {
    margin: 15px;
    max-width: calc(100% - 30px);
    background: linear-gradient(180deg, #F0ECE6 0%, #E8E1D9 50%, #DED6CC 100%);
    border-radius: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    z-index: 1;
}


.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 1.5rem 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-size: var(--font-h3);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: var(--line-tight);
}

.logo:hover {
    opacity: 0.8;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: var(--action-color);
    color: var(--white);
    border: 1px solid var(--action-color);
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(25, 47, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #0f1f35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 47, 69, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 47, 69, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: var(--action-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatDevice {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-content {
    /* Removed display:flex override - using Tailwind grid instead */
    width: 100%;
    margin: 0;
}

.hero-text {
    text-align: left;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Badge Shimmer Effect */
.hero-text > div:first-child {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.hero-text > div:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-text h1 {
    font-size: clamp(calc(var(--font-h2) * 0.8), 6.5vw, var(--font-h1));
    font-weight: 800;
    margin-bottom: calc(var(--font-base) * var(--phi));
    line-height: var(--line-tight);
    color: #0f172a;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: var(--font-body);
    color: #4b5563;
    margin-bottom: calc(var(--font-base) * var(--phi) * var(--phi));
    line-height: var(--line-relaxed);
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-small);
    line-height: 1;
}

.hero-image {
    text-align: center;
    background: transparent;
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
    align-self: center;
    position: relative;
    z-index: 0;
}

.hero-image img {
    max-width: 740px;
    width: 100%;
    height: auto;
    filter: none;
    margin-top: 0;
    vertical-align: top;
    animation: floatDevice 6s ease-in-out infinite, fadeIn 1s ease-out;
}

@media (max-width: 768px) {
    .hero-image img {
        max-width: 360px;
    }
}

/* First Prototype Section */
.first-prototype {
    padding: 5rem 0;
    background: var(--color-dominant);
}

.first-prototype .container {
    text-align: center;
}

.first-prototype .prototype-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(25, 47, 69, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.first-prototype .prototype-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 1s;
}

.first-prototype .section-title {
    margin-bottom: 0;
}

.prototype-layout {
    text-align: left;
}

.prototype-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prototype-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    animation: floatDevice 6s ease-in-out infinite, fadeIn 1s ease-out;
}

.prototype-card {
    background: linear-gradient(135deg, rgba(240, 236, 230, 0.6) 0%, rgba(232, 225, 217, 0.6) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(25, 47, 69, 0.06);
    display: flex;
    align-items: center;
    min-height: 400px;
}

.prototype-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 300px;
}

.prototype-list li {
    font-size: var(--font-h3);
    font-weight: 500;
    color: var(--text-dark);
    padding: 1.5rem 0;
    position: relative;
    padding-left: 2.75rem;
    line-height: var(--line-normal);
}

.prototype-list li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    font-size: 2rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--color-dominant);
}

.section-title {
    text-align: center;
    font-size: var(--font-h2);
    font-weight: 700;
    margin-bottom: calc(var(--font-base) * var(--phi) * var(--phi));
    line-height: var(--line-tight);
    color: var(--color-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

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

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

.feature-card h3 {
    font-size: var(--font-h3);
    font-weight: 600;
    margin-bottom: calc(var(--font-base) * var(--phi));
    line-height: var(--line-tight);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: var(--font-body);
    line-height: var(--line-normal);
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--color-dominant);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: var(--font-h3);
    font-weight: 600;
    margin-bottom: calc(var(--font-base) * var(--phi));
    line-height: var(--line-tight);
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    font-size: var(--font-body);
    line-height: var(--line-normal);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--color-dominant);
}

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

.testimonial-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ */
.faq {
    padding: 5rem 0;
    background: var(--color-dominant);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.03);
}

.faq-question h3 {
    font-size: var(--font-body);
    font-weight: 600;
    line-height: var(--line-tight);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--color-dominant);
    color: #0f172a;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-h2);
    font-weight: 700;
    margin-bottom: calc(var(--font-base) * var(--phi));  
    line-height: var(--line-tight);
}

.cta-content > p {
    font-size: var(--font-body);
    margin-bottom: calc(var(--font-base) * var(--phi) * 1.382);
    line-height: var(--line-normal);
    opacity: 0.9;
}

.cta-note {
    margin-top: calc(var(--font-base) * var(--phi));
    font-size: var(--font-small);
    line-height: var(--line-normal);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--color-dominant);
    color: #0f172a;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: var(--font-body);
    margin-bottom: calc(var(--font-base) * var(--phi));
    line-height: var(--line-tight);
}

.footer-section p {
    color: rgba(0, 0, 0, 0.7);
    font-size: var(--font-body);
    line-height: var(--line-normal);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #0f172a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-bottom p {
    color: rgba(15, 23, 42, 0.7);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #0f172a;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.4s ease;
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-dark);
    background: #f8fafc;
    padding: 3rem 2rem;
    border-radius: 8px;
    width: 80%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-text { text-align: left; }
    .hero-buttons, .hero-features { justify-content: flex-start; }
    
    .hero-text h1 {
        font-size: var(--font-h2);
    }
    
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero-buttons, .hero-features { justify-content: flex-start; }
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu li:not(:last-child) {
        display: none;
    }
    
    .hero-text h1 {
        font-size: var(--font-h3);
    }
    
    .hero-subtitle {
        font-size: var(--font-body);
    }
    
    .section-title {
        font-size: var(--font-h3);
    }
    
    .first-prototype {
        padding: 4rem 0;
    }
    
    .prototype-layout {
        gap: 2rem;
        margin-top: 2rem !important;
    }
    
    .prototype-img {
        max-width: 350px;
    }
    
    .prototype-card {
        padding: 1.5rem;
    }
    
    .first-prototype .prototype-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .prototype-list li {
        font-size: var(--font-body);
        padding: 0.4rem 0;
        padding-left: 2.5rem;
    }
    
    .prototype-list li::before {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .steps-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: var(--font-h3);
    }
    
    /* Video Modal Mobile */
    .video-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .video-modal-close {
        top: -2.5rem;
        font-size: 2.5rem;
    }
    
    .video-placeholder {
        width: 90%;
        padding: 2rem 1rem;
    }
    
    .video-placeholder p {
        font-size: 0.875rem;
    }
}

