:root {
    /* Instagram Brand Palette */
    --brand-gradient-start: #F58529;
    --brand-gradient-middle: #DD2A7B;
    --brand-gradient-end: #8134AF;
    --primary-blue: #0095F6;
    --link-blue: #00376B;
    --bg-light: #FAFAFA;
    --surface-white: #FFFFFF;
    --text-primary: #262626;
    --text-secondary: #8E8E8E;
    --divider: #DBDBDB;
    --radius-button: 8px;
    --radius-input: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--divider);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 935px; /* Instagram web max-width */
    margin: 0 auto;
    width: 100%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Video Section */
.phone-mockup {
    position: relative;
    width: 280px;
    border-radius: 40px;
    border: 8px solid #000;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
    aspect-ratio: 9/19.5;
}

.phone-mockup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Section */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    gap: 24px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--brand-gradient-start), var(--brand-gradient-middle), var(--brand-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Action Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--radius-button);
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 280px;
    font-size: 14px;
}

.download-btn:hover {
    background-color: #0085db;
}

.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--divider);
}

.divider::before { margin-right: 16px; }
.divider::after { margin-left: 16px; }

/* Beta Form */
.ios-beta-form {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ios-beta-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--divider);
    background-color: var(--bg-light);
    border-radius: var(--radius-input);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

input[type="email"]:focus {
    border-color: var(--text-secondary);
}

.beta-btn {
    background: linear-gradient(45deg, var(--brand-gradient-start), var(--brand-gradient-middle), var(--brand-gradient-end));
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-button);
    font-size: 14px;
    transition: all 0.2s;
}

.beta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.success-message {
    display: none;
    color: mediumseagreen;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    animation: fadeIn 0.5s ease;
}

/* Footer */
footer {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: auto;
}

footer a {
    color: var(--link-blue);
    text-decoration: none;
    margin: 0 8px;
}

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

/* Responsiveness */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        justify-content: center;
        gap: 80px;
    }

    .content-wrapper {
        text-align: left;
        align-items: flex-start;
    }
}
