/*
Theme Name: Elevate Marine Dynamics Landing
Theme URI: https://elevatemarinedynamics.com
Author: Elevate Marine Dynamics Team
Description: High-performance coming soon landing page theme for Elevate Marine Dynamics.
Version: 1.1.2
*/

/* ==========================================================================
   Elevate Marine Dynamics - Design System & Modern Stylesheet
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('./assets/fonts/plus-jakarta-sans-latin.woff2?ver=1.1.2') format('woff2');
}

:root {
    --bg-dark: #070c14;
    --bg-card: rgba(15, 25, 42, 0.65);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary-cyan: #00f2fe;
    --primary-blue: #0066ff;
    --accent-glow: rgba(0, 242, 254, 0.25);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-phone: 44px;
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Lighting Background */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 102, 255, 0.05) 70%, transparent 100%);
    top: -150px;
    left: -100px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, rgba(0, 242, 254, 0.05) 70%, transparent 100%);
    bottom: -200px;
    right: -150px;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
    top: 40%;
    right: 25%;
}

/* Layout Wrapper */
.site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header / Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 2rem 0;
}

.brand {
    display: flex;
    align-items: center;
}

.official-logo-img {
    width: 115px;
    height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.35));
    transition: var(--transition-fast);
}

.official-logo-img:hover {
    transform: scale(1.03);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-cyan);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero Section */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.3));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    font-weight: 400;
    line-height: 1.7;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.input-wrapper:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}

.email-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: #040914;
    font-family: var(--font-stack);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-feedback {
    font-size: 0.85rem;
    min-height: 1.25rem;
    padding-left: 0.5rem;
}

.form-feedback.success {
    color: #34d399;
}

.form-feedback.error {
    color: #f87171;
}

.form-privacy {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: -0.45rem;
    padding-left: 0.5rem;
}

.visually-hidden,
.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pill svg {
    color: var(--primary-cyan);
}

/* Phone View Container & 3D Mockup */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.scroll-cue {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.45rem 1.1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 100px;
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-cyan);
    animation: cueBounce 2s infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

@keyframes cueBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(2px); }
}

.phone-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    animation: phoneFloat 6s ease-in-out infinite;
}

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

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(0, 102, 255, 0.15) 50%, transparent 80%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Smartphone Device Frame */
.smartphone-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 9 / 18.5;
    background: #03070d;
    border-radius: var(--radius-phone);
    border: 10px solid #1a2333;
    outline: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 242, 254, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Phone Notch / Dynamic Island */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.phone-camera {
    width: 9px;
    height: 9px;
    background: #0d1527;
    border-radius: 50%;
    border: 1px solid #1f2d47;
}

.phone-speaker {
    width: 35px;
    height: 4px;
    background: #1f2d47;
    border-radius: 2px;
}

/* Phone Screen & Video */
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.phone-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
}

.phone-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-poster,
.phone-video-element {
    transition: opacity 300ms ease;
}

.phone-poster {
    opacity: 1;
}

.phone-video-element {
    opacity: 0;
}

.phone-media.is-video-active .phone-poster {
    opacity: 0;
}

.phone-media.is-video-active .phone-video-element {
    opacity: 1;
}

/* Custom Overlay UI on Phone Screen */
.phone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 25%,
        transparent 65%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 5;
    padding: 2.5rem 1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.overlay-header, .overlay-footer {
    pointer-events: auto;
}

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

.phone-live-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sound-toggle-btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
    background: rgba(0, 242, 254, 0.3);
    border-color: var(--primary-cyan);
}

.video-control:disabled {
    cursor: default;
    opacity: 0.45;
}

.video-control:disabled:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.overlay-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.phone-caption {
    display: flex;
    flex-direction: column;
}

.caption-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.caption-sub {
    font-size: 0.65rem;
    color: var(--primary-cyan);
    font-weight: 500;
}

.phone-controls {
    display: flex;
    gap: 0.4rem;
}

.ctrl-btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.phone-home-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 10;
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

/* Desktop Grid Layout */
@media (min-width: 901px) {
    .hero-container {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
        align-items: center;
        padding: 2rem 0;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-visual {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .ambient-glow {
        filter: blur(72px);
        opacity: 0.34;
    }

    .glow-1,
    .glow-2 {
        width: 420px;
        height: 420px;
    }

    .glow-3 {
        display: none;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 0.5rem 0;
    }

    .hero-visual {
        width: 100%;
    }

    .phone-wrapper {
        animation: none;
    }

    .status-pill,
    .input-wrapper,
    .scroll-cue,
    .phone-live-tag,
    .sound-toggle-btn,
    .ctrl-btn {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hero-content {
        align-items: center;
    }

    .scroll-cue {
        display: inline-flex;
    }

    .hero-description {
        max-width: 100%;
    }

    .subscribe-form {
        width: 100%;
    }

    .feature-pills {
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-wrapper {
        padding: 0.85rem 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0 1rem 0;
    }

    .phone-wrapper {
        max-width: 250px;
    }

    .input-wrapper {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .email-icon {
        display: none;
    }

    .input-wrapper input {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
