/* ============================================
   Surf Crew Landing Page
   Minimalist blue ocean theme + Hero mockups
   ============================================ */

:root {
    --blue-900: #0a1e2e;
    --blue-800: #0f2d42;
    --blue-700: #15405e;
    --blue-600: #1a5a82;
    --blue-500: #2680b0;
    --blue-400: #4da3d4;
    --blue-300: #8cc5e3;
    --blue-200: #c2e0f0;
    --blue-100: #e8f4fa;
    --blue-50: #f3f9fd;
    --white: #ffffff;
    --text: #0f2d42;
    --text-secondary: #4a7390;
    --text-light: #7da3b8;
    --accent: #2680b0;
    --green: #34a66c;
    --purple: #7c5cbf;
    --border: #dce9f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--blue-900);
    letter-spacing: -0.02em;
}

.nav-icon {
    width: 22px;
    height: 22px;
    color: var(--blue-500);
}

.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--blue-900);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--blue-700);
}

/* ============================================
   HERO with Phone Mockups
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 60%, var(--blue-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 140px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-100);
    border-radius: 6px;
    color: var(--blue-600);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-900);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.hero-form input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.hero-form input[type="email"]::placeholder {
    color: var(--text-light);
}

.hero-form input[type="email"]:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(38, 128, 176, 0.1);
}

.hero-form button {
    padding: 14px 24px;
    background: var(--blue-900);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hero-form button:hover {
    background: var(--blue-700);
}

.hero-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ---- Phone Mockups ---- */
.hero-phones {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 72px;
    padding: 0 20px;
    perspective: 1200px;
}

.phone-scene {
    position: relative;
    flex-shrink: 0;
}

.phone-scene-left {
    transform: rotate(-6deg) translateY(20px);
    animation: floatLeft 6s ease-in-out infinite;
}

.phone-scene-right {
    transform: rotate(6deg) translateY(0px);
    animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: rotate(-6deg) translateY(20px); }
    50% { transform: rotate(-6deg) translateY(10px); }
}

@keyframes floatRight {
    0%, 100% { transform: rotate(6deg) translateY(0px); }
    50% { transform: rotate(6deg) translateY(-10px); }
}

/* Phone glow effects */
.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.phone-glow-beach {
    background: linear-gradient(135deg, #4da3d4 0%, #8cc5e3 40%, #f0c27f 100%);
}

.phone-glow-dark {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 40%, #0f2d42 100%);
}

/* Phone frame */
.phone-frame {
    position: relative;
    z-index: 2;
    width: 260px;
    height: 520px;
    background: #000;
    border-radius: 36px;
    padding: 4px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

/* ---- Submit Report Screen (left phone) ---- */
.screen-submit {
    background: #f2f2f7;
    color: #000;
    display: flex;
    flex-direction: column;
}

.screen-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.screen-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px 10px;
}

.navbar-back {
    font-size: 13px;
    color: #007AFF;
}

.navbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.navbar-action {
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
}

.navbar-crew {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.navbar-add {
    display: flex;
    align-items: center;
}

.screen-form {
    flex: 1;
    overflow: hidden;
    padding: 0 0 10px;
}

.form-section-label {
    font-size: 10px;
    font-weight: 500;
    color: #6d6d72;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 14px 16px 4px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 0.5px solid #e5e5ea;
    font-size: 13px;
}

.form-row:first-of-type {
    border-radius: 10px 10px 0 0;
    margin: 4px 12px 0;
}

.form-row:last-of-type,
.form-row:only-of-type {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
    margin: 0 12px;
}

.form-row:only-of-type {
    border-radius: 10px;
    margin: 4px 12px 0;
}

.form-value {
    color: #8e8e93;
    font-size: 13px;
}

.form-value-blue {
    color: #007AFF;
    font-size: 13px;
}

.chevron {
    color: #c7c7cc;
    font-size: 14px;
}

.form-segmented {
    display: flex;
    gap: 2px;
    margin: 4px 12px 0;
    background: #e9e9eb;
    border-radius: 8px;
    padding: 2px;
    font-size: 9px;
}

.form-segmented span {
    flex: 1;
    text-align: center;
    padding: 5px 2px;
    border-radius: 6px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.form-segmented .seg-active {
    background: #fff;
    color: #000;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-textarea {
    margin: 4px 12px 0;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
    color: #000;
    line-height: 1.5;
    min-height: 48px;
}

/* ---- Feed Screen (right phone) ---- */
.screen-feed {
    background: #f2f2f7;
    color: #000;
    display: flex;
    flex-direction: column;
}

.screen-cards {
    flex: 1;
    overflow: hidden;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.report-card.card-highlight {
    box-shadow: 0 2px 8px rgba(124, 92, 191, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.card-spot {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.card-region {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 1px;
}

.card-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-epic {
    background: rgba(124, 92, 191, 0.15);
    color: #7c5cbf;
}

.badge-good {
    background: rgba(52, 166, 108, 0.15);
    color: #34a66c;
}

.badge-fair {
    background: rgba(200, 170, 40, 0.15);
    color: #b09020;
}

.card-conditions {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.card-time {
    font-size: 9px;
    color: #8e8e93;
    text-align: right;
}

/* Tab bar */
.screen-tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 16px;
    background: rgba(255,255,255,0.95);
    border-top: 0.5px solid #e5e5ea;
    backdrop-filter: blur(10px);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: #8e8e93;
}

.tab.active {
    color: #007AFF;
}

.tab svg {
    width: 18px;
    height: 18px;
}

/* Phone caption */
.phone-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

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

.section-alt {
    background: var(--blue-50);
}

.section-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--blue-500);
    margin-bottom: 12px;
}

.section-label-light {
    color: var(--blue-300);
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--blue-900);
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ---- Problem ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.problem-card {
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.problem-card:hover {
    border-color: var(--blue-200);
    box-shadow: 0 4px 20px rgba(10, 30, 46, 0.06);
}

.problem-card-highlight {
    background: var(--blue-900);
    border-color: var(--blue-900);
    color: white;
}

.problem-card-highlight .problem-icon svg {
    color: var(--blue-300);
}

.problem-card-highlight p {
    color: var(--blue-200);
}

.problem-icon {
    margin-bottom: 20px;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
    color: var(--blue-500);
}

.problem-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--blue-200);
    box-shadow: 0 4px 20px rgba(10, 30, 46, 0.06);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue-600);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--blue-900);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.step {
    text-align: center;
    padding: 0 12px;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--blue-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1rem;
    color: var(--blue-900);
    margin-bottom: 8px;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Ratings ---- */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.rating-card {
    text-align: center;
    padding: 28px 12px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.rating-card:hover {
    border-color: var(--blue-200);
}

.rating-good {
    border-color: var(--green);
    background: #f2faf6;
}

.rating-epic {
    border-color: var(--purple);
    background: #f6f3fb;
}

.rating-emoji {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}

.rating-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue-900);
    margin-bottom: 2px;
}

.rating-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- CTA ---- */
.cta {
    padding: 100px 0;
    background: var(--blue-900);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    color: var(--blue-300);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    justify-content: center;
}

.cta-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cta-form input[type="email"]::placeholder {
    color: var(--blue-400);
}

.cta-form input[type="email"]:focus {
    outline: none;
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.12);
}

.cta-form select {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--blue-300);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.cta-form select option {
    background: var(--blue-900);
    color: white;
}

.cta-form select:focus {
    outline: none;
    border-color: var(--blue-400);
}

.cta-form button {
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--blue-900);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-form button:hover {
    background: var(--blue-100);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Footer ---- */
.footer {
    padding: 32px 0;
    background: var(--blue-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.footer-logo .nav-icon {
    color: var(--blue-400);
}

.footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--blue-900);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 200;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Button loading ---- */
button.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-inner {
        padding: 120px 20px 40px;
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-form button {
        width: 100%;
    }

    .hero-phones {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        margin-top: 48px;
    }

    .phone-scene-left {
        transform: rotate(-3deg) translateY(0);
        animation: floatLeftMobile 6s ease-in-out infinite;
    }

    .phone-scene-right {
        transform: rotate(3deg) translateY(0);
        animation: floatRightMobile 6s ease-in-out infinite;
    }

    @keyframes floatLeftMobile {
        0%, 100% { transform: rotate(-3deg) translateY(0); }
        50% { transform: rotate(-3deg) translateY(-8px); }
    }

    @keyframes floatRightMobile {
        0%, 100% { transform: rotate(3deg) translateY(0); }
        50% { transform: rotate(3deg) translateY(-8px); }
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 56px auto 0;
    }

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

    .steps {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 56px auto 0;
        gap: 24px;
    }

    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input[type="email"],
    .cta-form select {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        padding: 110px 16px 32px;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .phone-glow {
        width: 260px;
        height: 400px;
    }
}
