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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.25rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.subtle {
    color: #666;
    font-weight: 400;
    opacity: 0.8;
}

.nav-links a.subtle:hover {
    color: #1a1a1a;
    opacity: 1;
}

.dropbtn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
}

.nav-auth {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-login {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.nav-signup {
    color: #fff;
    background: #1a1a1a;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-signup:hover {
    background-color: #333;
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 4rem;
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    padding: 0;
}

.hero-content {
    text-align: left;
    max-width: 540px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin: 2.5rem 0;
    line-height: 1.6;
    text-align: left;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #1a1a1a;
    text-decoration: none;
    border-radius: 2rem;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #333;
}

.no-card {
    color: #666;
    font-size: 0.875rem;
}

/* Template card styles */
.template-card {
    text-align: left;
    background: transparent;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 0;
}

.template-card:hover {
    transform: translateY(-8px);
}

.template-card img {
    width: 100%;
    height: auto;
    display: block;
}

.template-info {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0.5rem;
}

.template-author {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.template-year {
    font-size: 0.75rem;
    color: #666;
}

.template-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    padding: 0 1.5rem 1.5rem;
}

/* iPhone styles */
.iphone-container {
    max-width: 375px;
    margin: 0 auto;
    padding-bottom: 0;
    position: relative;
    top: 2rem;
}

.iphone-frame {
    background: #ffffff;
    border-radius: 48px;
    box-shadow: 0 0 0 10px #1a1a1a;
    position: relative;
    aspect-ratio: 9/19.5;
    overflow: hidden;
    margin-bottom: -200px;
}

.iphone-frame::before,
.iphone-frame::after {
    display: none;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.status-bar {
    position: relative;
    height: 44px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

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

.signal {
    display: flex;
    gap: 1px;
    align-items: flex-end;
    height: 12px;
}

.signal i {
    width: 3px;
    background: #1a1a1a;
    border-radius: 1px;
}

.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 10px; }

.wifi {
    width: 15px;
    height: 12px;
}

.battery {
    font-size: 13px;
}

/* iMessage styles */
.imessage-sim {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    height: calc(100% - 44px);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.chat-header {
    padding: 8px 16px;
    border-bottom: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.back-button {
    display: none;
}

.contact-name {
    font-size: 18px;
    text-align: center;
}

#chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    height: calc(100% - 44px);
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.9375rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    word-wrap: break-word;
    transform-origin: center;
}

.left {
    align-self: flex-start;
    background: #e5e5ea;
    color: black;
    border-radius: 18px 18px 18px 4px;
}

.right {
    align-self: flex-end;
    background: #007aff;
    color: white;
    border-radius: 18px 18px 4px 18px;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* Features section */
.features {
    background: #f8f8f8;
    padding: 6rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:nth-child(even) {
    transform: translateX(50px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        text-align: center;
        font-size: 3.5rem;
    }

    .hero-subtitle {
        text-align: center;
    }

    .cta-section {
        align-items: center;
    }

    .nav-links {
        display: none;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .container {
        padding: 6rem 1.5rem 2rem;
    }

    .hero-image {
        padding: 1rem;
    }

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

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

.signup-form {
    background: #f8f8f8;
    padding: 6rem 2rem;
    text-align: center;
}

.signup-form h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.form-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
}

.signup-form-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e5ea;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #333;
}

.form-footer {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.875rem;
}

.confirmation-message {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-message p {
    font-size: 1.125rem;
    color: #1a1a1a;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .signup-form {
        padding: 4rem 1.5rem;
    }
    
    .signup-form h2 {
        font-size: 2rem;
    }
    
    .form-subtitle {
        font-size: 1.125rem;
    }
}

.success-message {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.success-message h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.success-message p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-message a {
    color: #007bff;
    text-decoration: none;
}

.success-message a:hover {
    text-decoration: underline;
}

.success-message .cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #1a1a1a;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.success-message .cta-button:hover {
    background-color: #333;
    text-decoration: none;
}

.subscription-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.subscription-option {
    flex: 1;
    position: relative;
}

.subscription-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.subscription-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e5e5ea;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 120px;
    position: relative;
}

.subscription-option input[type="radio"]:checked + label {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
    box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 4px rgba(26, 26, 26, 0.1);
}

.subscription-option label:hover {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #1a1a1a;
}

.subscription-option .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subscription-option .period {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
}

.subscription-option .savings {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .subscription-options {
        flex-direction: column;
    }
    
    .subscription-option label {
        height: 100px;
    }
} 