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

:root {
    --navy-dark: #1a237e;
    --navy-main: #283593;
    --blue-primary: #3f51b5;
    --blue-light: #7986cb;
    --blue-pale: #e8eaf6;
    --ocean-blue: #006064;
    --seafoam: #4db6ac;
    --cream: #f8f9fa;
    --white: #ffffff;
    --gold: #ffc107;
    --red-anchor: #d32f2f;
    --text-dark: #212121;
    --text-gray: #616161;
    
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Cabin', sans-serif;
    
    --shadow-light: 0 2px 8px rgba(26, 35, 126, 0.1);
    --shadow-medium: 0 4px 16px rgba(26, 35, 126, 0.15);
    --shadow-heavy: 0 8px 32px rgba(26, 35, 126, 0.2);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--blue-pale) 0%, var(--cream) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Background Pattern */
.anchor-pattern {
    position: fixed;
    top: 0;
    left: -100px;
    width: 120%;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(63, 81, 181, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 96, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(77, 182, 172, 0.02) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--navy-dark);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--navy-main);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
    position: relative;
}

.ship-wheel {
    font-size: 4rem;
    color: var(--red-anchor);
    margin-bottom: 1rem;
    display: inline-block;
    animation: spin-slow 30s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title {
    margin-bottom: 2rem;
}

.ahoy {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy-dark);
    text-shadow: 3px 3px 0px var(--gold);
    margin-bottom: 0.5rem;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--blue-primary);
    font-weight: 400;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-style: italic;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-signup {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--navy-main), var(--blue-primary));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--navy-dark), var(--navy-main));
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: white;
    color: var(--navy-main);
    border: 2px solid var(--blue-light);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background: var(--blue-pale);
    border-color: var(--navy-main);
    transform: translateY(-2px);
}

.btn-signup {
    background: linear-gradient(45deg, var(--seafoam), var(--ocean-blue));
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-medium);
}

.btn-signup:hover:not(:disabled) {
    background: linear-gradient(45deg, var(--ocean-blue), var(--navy-main));
    transform: translateY(-1px);
}

.btn-signup:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, var(--blue-pale), white);
}

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

.step {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--cream);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--red-anchor);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.step p {
    color: var(--text-gray);
    line-height: 1.5;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--blue-pale), white);
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

.feature h3 {
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.feature p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: white;
}

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

.testimonial {
    background: var(--blue-pale);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--blue-primary);
    box-shadow: var(--shadow-light);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--blue-light);
    font-family: serif;
}

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

.testimonial cite {
    color: var(--navy-main);
    font-weight: 600;
    font-style: normal;
}

/* Newsletter Signup Section */
.newsletter-signup {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-main));
    color: white;
    text-align: center;
}

.newsletter-signup h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-signup p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.promise {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 3rem !important;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.privacy-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.privacy-note a {
    color: var(--gold);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--navy-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-logo {
    font-size: 2rem;
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .ahoy {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"] {
        min-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ahoy {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    section {
        padding: 4rem 0 !important;
    }
}

/* Accessibility & Interactions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ship-wheel {
        animation: none;
    }
    
    .anchor-pattern {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus, input:focus, a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .anchor-pattern {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    .newsletter-signup {
        background: var(--blue-pale) !important;
        color: var(--text-dark) !important;
    }
}