/* CSS Variables based on the palette */
:root {
    /* Primary Brand Colors (from sheep-logo.svg) */
    --pink-primary: #f775a9;
    --pink-dark: #e5608f;
    --pink-darker: #d04a78;
    --pink-light: #ffe4ec;
    --pink-lighter: #faa8c8;

    /* Accent Colors */
    --mint: #e8f5e9;
    --blue-light: #a8d4f0;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(
        180deg,
        var(--pink-light) 0%,
        var(--white) 100%
    );
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-header {
    text-align: center;
    margin-bottom: 60px;
}

.hero-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.hero-header .highlight {
    color: var(--pink-darker);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.hero-signup {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-phone {
    display: flex;
    justify-content: center;
}

/* Signup Form */
.signup-form {
    max-width: 480px;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
}

.form-group input[type="email"]:focus {
    border-color: var(--pink-primary);
    box-shadow: 0 0 0 4px rgba(247, 117, 169, 0.15);
}

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

.btn-primary {
    padding: 16px 32px;
    background: var(--pink-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary:hover {
    background: #e5608f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 117, 169, 0.35);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Success Message */
.success-message {
    background: var(--mint);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 480px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.success-message h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.success-message p {
    color: var(--gray-600);
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    position: relative;
    transition:
        width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        aspect-ratio 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-container {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
}

.phone-mockup .screenshot {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

/* Zoomed phone state - wider aspect ratio */
.phone-mockup.zoomed {
    width: 340px;
    aspect-ratio: 9 / 14;
}

/* Screenshot zoom states - scale up and pan to section */
.phone-mockup .screenshot.zoom-weekly {
    transform: scale(1.6) translateY(-28%);
}

.phone-mockup .screenshot.zoom-likes {
    transform: scale(1.6) translateY(-3%);
}

.phone-mockup .screenshot.zoom-matches {
    transform: scale(1.6) translateY(-10%);
}

/* Philosophy Pills */
.philosophy-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    cursor: default;
}

.pill[data-zoom]:not([data-zoom="none"]) {
    cursor: pointer;
}

.pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pill[data-zoom]:not([data-zoom="none"]):hover {
    transform: translateY(-3px) scale(1.02);
}

.pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

.pill-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pill-content strong {
    font-weight: 600;
    font-size: 0.95rem;
}

.pill-content span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Gradient variations using the palette + pink-purple gradient */
.pill-gradient-1 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.pill-gradient-2 {
    background: linear-gradient(135deg, var(--pink-primary) 0%, #e879a9 100%);
}

.pill-gradient-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.pill-gradient-4 {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.pill-gradient-5 {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.pill-gradient-6 {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--mint) 0%, var(--blue-light) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pink-darker);
}

.cta-section > .container > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.cta-section .signup-form {
    margin: 0 auto;
}

.cta-section .form-group {
    justify-content: center;
}

.cta-section .success-message {
    margin: 0 auto;
    background: var(--white);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--gray-900);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo .logo-img {
    height: 32px;
}

.footer-text {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-header h1 {
        font-size: 2.75rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-signup {
        order: 2;
        align-items: center;
    }

    .hero-phone {
        order: 1;
    }

    .hero-phone .phone-mockup {
        width: 240px;
    }

    .philosophy-pills {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .pill {
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-header h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .btn-primary {
        width: 100%;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .hero-phone .phone-mockup {
        width: 220px;
    }

    .philosophy-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .pill {
        border-radius: 16px;
        padding: 14px 18px;
    }

    .pill-content span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.875rem;
    }

    .form-group input[type="email"],
    .btn-primary {
        padding: 14px 20px;
    }
}
