/* Font definitions */
@font-face {
    font-family: 'SF Pro Rounded';
    src: url('Fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('Fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('Fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-text: #262626;
    --color-badge-start: #fea455;
    --color-badge-end: #f07203;
    --color-badge-shadow: #de6b05;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-family: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    width: 49px;
    height: 49px;
    border-radius: 11px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.01em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Main Content */
.main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 4rem 8rem;
    min-height: calc(100vh - 120px);
}

/* Phone Container */
.phone-container {
    position: relative;
    width: 373px;
    height: 764px;
    flex-shrink: 0;
}

.phone-bezel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.demo-video {
    position: absolute;
    top: 2.5%;
    left: 5%;
    width: 90%;
    object-fit: cover;
    border-radius: 45px;
    z-index: 1;
    background: #000;
}

/* Content */
.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.headline {
    font-size: 78px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.headline-line {
    display: block;
}

.badge-wrapper {
    display: block;
    margin: -0.25em 0 -0.1em -0.4em;
}

.badge {
    display: inline-block;
    background: linear-gradient(to bottom, var(--color-badge-start), var(--color-badge-end));
    color: var(--color-white);
    font-size: 58px;
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 134px;
    border: 6.7px solid var(--color-white);
    box-shadow: 
        0px 69px 149px rgba(0, 0, 0, 0.03),
        0px 21px 45px rgba(0, 0, 0, 0.05),
        0px 9px 19px rgba(0, 0, 0, 0.06),
        0px 3px 7px rgba(0, 0, 0, 0.09);
    text-shadow: 0px 2.45px 2.45px var(--color-badge-shadow);
    letter-spacing: 0.58px;
    transform: rotate(-5deg);
    white-space: nowrap;
}

.app-store-link {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.app-store-badge {
    height: 56px;
    width: auto;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-value:hover {
    opacity: 0.7;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .main {
        gap: 3rem;
        padding: 2rem;
    }

    .phone-container {
        width: 300px;
        height: 614px;
    }

    .headline {
        font-size: 56px;
    }

    .badge {
        font-size: 42px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .main {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.5rem;
        min-height: auto;
        gap: 2rem;
    }

    /* Hide phone bezel on mobile */
    .phone-container {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 9 / 19.5;
    }

    .phone-bezel {
        display: none;
    }

    .demo-video {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 32px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    .content {
        align-items: center;
    }

    .badge-wrapper {
        margin-left: 0;
    }

    .headline {
        font-size: 52px;
        line-height: 1.45;
    }

    .badge {
        font-size: 38px;
        padding: 8px 20px;
        border-width: 5px;
    }

    .app-store-badge {
        height: 56px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 44px;
    }

    .badge {
        font-size: 32px;
        padding: 6px 16px;
    }
}

