@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-display: swap;
    src: url('assets/fonts/roboto-flex.woff2') format('woff2');
}

:root {
    /* Petriii! Brand Colors */
    --primary: #006da4;
    --primary-container: #d2e4ff;
    --on-primary: #ffffff;

    /* Emotional Palette */
    --deep-water-blue: #003049;
    --sunset-orange: #f77f00;
    --sunset-orange-container: #fcbf49;

    /* Material 3 Surface Palette (Light) */
    --surface: #fdfcff;
    --surface-variant: #dfe2eb;
    --surface-container: #f0f4f9;
    --surface-container-high: #e2e7ed;
    --surface-container-low: #f8fafc;

    /* Text */
    --on-surface: #1a1c1e;
    --on-surface-variant: #43474e;

    /* Shapes */
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Flex', sans-serif;
    background-color: var(--surface-container);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

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

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.btn {
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--sunset-orange);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(247, 127, 0, 0.3);
}

.btn-primary:hover {
    background-color: #d66d00;
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-content h1 {
    font-size: clamp(36px, 10vw, 84px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
    color: var(--sunset-orange-container);
}

.hero-content .subtitle {
    font-size: clamp(18px, 4vw, 26px);
    max-width: 950px;
    margin: 0 auto 48px;
    opacity: 1;
    font-weight: 450;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Showcase Section */
.feature-showcase {
    padding: 20px 0;
    background: var(--surface-container);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--on-surface);
    letter-spacing: -1px;
}

.section-header p {
    font-size: 20px;
    color: var(--on-surface-variant);
    max-width: 800px;
    margin: 0 auto;
}

.showcase-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.feature-info {
    flex: 1;
    margin-top: -100px;
}

.feature-description {
    display: none;
    animation: fadeIn 0.8s var(--transition);
}

.feature-description.active {
    display: block;
}

.feature-description h3 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-description p {
    font-size: 20px;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 12px;
    font-weight: 900;
}

/* Phone Mockup Slider */
.phone-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.phone-shadow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(40px);
    z-index: -1;
    transform: translateY(40px);
}

.phone-bezel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #000 50%, #2c2c2c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow:
        inset 0 0 2px 2px rgba(255, 255, 255, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #000;
    border-radius: 34px;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dynamic-island {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 100;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.dynamic-island::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 20px;
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 109, 164, 0.5);
}

.screen-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            transparent 45%,
            transparent 100%);
    pointer-events: none;
    z-index: 50;
}

.screenshot-reel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-reel::-webkit-scrollbar {
    display: none;
}

.screenshot-reel img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
    user-select: none;
}

/* Slider Controls */
.slider-controls {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-btn {
    background: var(--surface);
    border: 1px solid var(--surface-variant);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--surface-variant);
    border-radius: 50%;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--primary);
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-card {
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 100px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 109, 164, 0.2);
}

.download-card h2 {
    font-size: 56px;
    font-weight: 1000;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.download-card p {
    font-size: 24px;
    margin-bottom: 48px;
    opacity: 0.9;
}

.play-store-badge img {
    height: 80px;
    transition: var(--transition);
}

/* Emotional Break Section */
.emotional-break {
    padding: 60px 0;
    background-color: var(--deep-water-blue);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emotional-break::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(247, 127, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.emotional-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.emotional-content h3 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.emotional-content p {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
    font-style: italic;
}

.emotional-content strong {
    color: var(--sunset-orange-container);
    font-weight: 700;
    font-style: normal;
}

/* Testimonials Section */
.testimonials-section {
    padding: 20px 0;
    background-color: var(--surface-container-low);
}

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

.testimonial-card {
    background-color: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-variant);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 18px;
    color: var(--on-surface);
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.author-info p {
    font-size: 14px;
    color: var(--on-surface-variant);
}

/* Footer & Final CTA Refinements */
.download-card {
    background: linear-gradient(135deg, var(--deep-water-blue) 0%, #001d2d 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.3);
}

.download-card h2 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.footer {
    padding: 60px 0 40px;
    background-color: var(--surface-container-low);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
}

.footer-brand .footer-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.footer-brand .footer-logo span {
    color: var(--primary);
}

.footer-tagline {
    font-size: 16px;
    color: var(--on-surface-variant);
    max-width: 320px;
    line-height: 1.6;
}

.footer-nav h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    color: var(--on-surface);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--surface-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--on-surface-variant);
    font-size: 14px;
    opacity: 0.8;
}

.heart {
    display: inline-block;
    color: #e91e63;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .showcase-content {
        flex-direction: column-reverse;
        gap: 64px;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

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

/* Legal & Contact Page Styling */
.legal-page,
.contact-page {
    padding: 160px 0 100px;
    background-color: var(--surface);
}

.legal-content,
.contact-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-form-wrapper {
    background-color: var(--surface-container-low);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-variant);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 24px;
    }
}

.contact-form h1 {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.contact-form p.lead {
    font-size: 18px;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--on-surface);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-variant);
    background-color: var(--surface);
    color: var(--on-surface);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 109, 164, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Honeypot field */
.hp-field {
    display: none;
    visibility: hidden;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 40px;
    border: none;
    background-color: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    background-color: var(--deep-water-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 48, 73, 0.2);
}

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

/* Status Notifications */
.form-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-md);
    display: none;
    font-weight: 600;
    text-align: center;
}

.form-status.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading Spinner icon */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .spinner {
    display: block;
}

.legal-content h1 {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 60px 0 24px;
    color: var(--on-surface);
    border-bottom: 2px solid var(--surface-variant);
    padding-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--primary);
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

.legal-content ul {
    margin: 20px 0 20px 24px;
}

.legal-content li {
    margin-bottom: 12px;
    color: var(--on-surface-variant);
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--deep-water-blue);
    text-decoration: underline;
}