:root {
    --primary: #0066CC;
    --secondary: #00B4D8;
    --ocean-dark: #082f65;
    --ocean-mid: #0A4B78;
    --ocean-light: #33a0c9;
    --text-primary: #1A1A1A;
    --text-secondary: #666;
    --background: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: #082f65;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ocean-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-svg-component {
    position: absolute;
    inset: 0;
}

.hero-svg-component svg {
    width: 100%;
    height: 100%;
    transform: translate3d(
        var(--hero-parallax-x, 0px),
        calc(var(--hero-parallax-y, 0px) + var(--hero-parallax-scroll, 0px)),
        0
    ) scale(1.02);
    transform-origin: center center;
    transition: transform 250ms ease-out;
    will-change: transform;
}

.ocean-scene.is-ready .hero-svg-component svg {
    animation: hero-breathe 14s ease-in-out infinite;
}

.ocean-scene .hero-star {
    animation: hero-twinkle 4.5s ease-in-out infinite;
}

.ocean-scene .whale-section {
    transform-box: fill-box;
    transform-origin: center center;
    animation: whale-section-float 8s ease-in-out infinite;
    will-change: transform;
}

.ocean-scene .whale-cluster-secondary .whale-section {
    animation-duration: 10.5s;
}

.ocean-scene .whale-section-soft {
    animation-name: whale-section-sway;
}

.ocean-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 22, 43, 0.45) 0%,
        rgba(6, 22, 43, 0.35) 35%,
        rgba(6, 22, 43, 0.55) 100%
    );
    z-index: 1;
}

@keyframes hero-breathe {
    0%,
    100% {
        transform: translate3d(
            var(--hero-parallax-x, 0px),
            calc(var(--hero-parallax-y, 0px) + var(--hero-parallax-scroll, 0px)),
            0
        ) scale(1.02);
    }
    50% {
        transform: translate3d(
            var(--hero-parallax-x, 0px),
            calc(var(--hero-parallax-y, 0px) + var(--hero-parallax-scroll, 0px) - 8px),
            0
        ) scale(1.035);
    }
}

@keyframes hero-twinkle {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes whale-section-float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(-0.9deg);
    }
}

@keyframes whale-section-sway {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(0.7deg);
    }
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 47, 101, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.logo-image {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 180px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(to bottom, #F8FAFB, white);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-top: 64px;
}

.step {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(to bottom, #F8FAFB, white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.testimonial-author span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-mid) 50%, var(--ocean-light) 100%);
    color: white;
    text-align: center;
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 48px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-btn svg {
    flex-shrink: 0;
}

.download-btn div {
    text-align: left;
}

.download-btn small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.download-btn strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    margin-top: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

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

.social-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form .btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

.contact-form-status {
    margin-top: -8px;
    font-weight: 600;
}

.contact-form-status.success {
    color: #0f766e;
}

.contact-form-status.error {
    color: #b91c1c;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--ocean-dark);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

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

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

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 92vh;
    }

    .hero-content {
        padding: 104px 20px 132px;
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.12;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
        max-width: 90%;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-svg-component svg {
        transform: translate3d(
            calc(var(--hero-parallax-x, 0px) * 0.35 - 10%),
            calc((var(--hero-parallax-y, 0px) * 0.25) + var(--hero-parallax-scroll, 0px) * 0.3),
            0
        ) scale(1.22);
        transform-origin: center center;
    }

    .ocean-scene::after {
        background: linear-gradient(
            to bottom,
            rgba(6, 22, 43, 0.35) 0%,
            rgba(6, 22, 43, 0.4) 42%,
            rgba(6, 22, 43, 0.62) 100%
        );
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 88vh;
    }

    .hero-content {
        padding: 96px 16px 118px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-svg-component svg {
        transform: translate3d(
            calc(var(--hero-parallax-x, 0px) * 0.22 - 16%),
            calc((var(--hero-parallax-y, 0px) * 0.2) + var(--hero-parallax-scroll, 0px) * 0.24 + 10px),
            0
        ) scale(1.33);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ocean-scene.is-ready .hero-svg-component svg {
        animation: none;
    }

    .ocean-scene .hero-star {
        animation: none;
    }

    .ocean-scene .whale-section {
        animation: none;
    }
}
