/* CSS Variables */
:root {
    --color-white: #FFF;
    --color-gray: #C7C7C7;
    --color-dark-gray: #5C5C5C;
    --color-black: #000;
    --color-bg: #0C0C0C;
    --color-yellow: #FFD400;
    
    --font-serif: 'Lora', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro", system-ui, sans-serif;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 56px;
    --spacing-2xl: 80px;
    --spacing-3xl: 100px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    flex-shrink: 0;
}

.logo svg {
    display: block;
    width: 56px;
    height: 40px;
}

.brand-name {
    color: var(--color-white);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 41px;
    letter-spacing: 0.4px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav a,
.footer-nav a {
    color: var(--color-white);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.43px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav a:active,
.footer-nav a:active {
    opacity: 0.6;
}

@media (hover: hover) {
    .nav a:hover,
    .footer-nav a:hover {
        opacity: 0.7;
    }
}

/* Hero Section */
.hero {
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 82px);
}

.hero-title {
    color: var(--color-white);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-serif);
    font-size: 75px;
    font-weight: 700;
    line-height: 88px;
    letter-spacing: 0.4px;
    max-width: 1200px;
    margin-bottom: var(--spacing-md);
}

.bookmark-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0 var(--spacing-xs);
    width: 29px;
    height: 45px;
}

.underlined-text {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.underline-svg,
.underline-svg-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: -1;
}

.underline-svg {
    bottom: -10px;
}

.underline-svg-line {
    bottom: -7px;
}

.hero-description,
.solution-text,
.feature-detail-text,
.final-message-text {
    color: var(--color-gray);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.hero-description {
    color: var(--color-white);
    line-height: 22px;
    max-width: 550px;
    margin-bottom: var(--spacing-lg);
}

.feature-detail-text {
    text-align: left;
}

.final-message-text {
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: flex;
    padding: var(--spacing-xs) var(--spacing-sm);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--color-yellow);
    border: none;
    color: var(--color-black);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    min-height: 44px;
}

.cta-button:active {
    opacity: 0.6;
}

@media (hover: hover) {
    .cta-button:hover {
        opacity: 0.8;
    }
}

.subtext,
.final-subtext {
    color: var(--color-gray);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.subtext {
    margin-top: var(--spacing-sm);
    line-height: 20px;
}

.app-preview {
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview img {
    max-width: 30%;
    height: auto;
    display: block;
}

/* Problem Section */
.problem-section {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.problem-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
}

.problem-title,
.solution-title,
.feature-detail-title,
.final-message-title {
    color: var(--color-white);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: 0.4px;
}

.problem-title {
    text-align: left;
}

.solution-title,
.final-message-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.problem-icon {
    height: 88px;
    width: auto;
    flex-shrink: 0;
}

/* Features Section */
.features-section {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 32px auto 0;
}

.feature-card {
    display: flex;
    height: 489px;
    width: 236px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: #FFFFFF;
    padding: 16px;
    border-radius: 8px;
}

.feature-image {
    width: calc(100% + 32px);
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin: -16px -16px 0 -16px;
}

.feature-title {
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.feature-text {
    color: var(--color-dark-gray);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

/* Solution Section */
.solution-section,
.final-message-section {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.solution-section {
    margin-top: var(--spacing-2xl);
}

.final-message-section {
    margin-top: var(--spacing-3xl);
}

.solution-icon {
    width: auto;
    height: auto;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
}

/* Feature Detail Section */
.feature-detail-section {
    margin-top: var(--spacing-2xl);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.feature-detail-image {
    flex-shrink: 0;
    width: 230px;
}

.feature-detail-image img {
    width: 230px;
    height: 460px;
    display: block;
    object-fit: cover;
}

.feature-detail-content {
    flex: 0 0 478px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature-detail-icon {
    width: auto;
    height: auto;
    max-width: 100px;
}

.final-cta {
    margin-bottom: var(--spacing-xs);
}

/* Footer */
.footer {
    margin-top: var(--spacing-xl);
    padding: 0 20px 30px;
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Safe area for iPhone with notch */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(20px, env(safe-area-inset-top));
    }
    
    .hero {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* Responsive Design */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .header {
        padding: 16px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .logo img {
        width: 40px;
        height: 29px;
    }
    
    .brand-name {
        font-size: 24px;
        line-height: 29px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .nav a {
        font-size: 14px;
        line-height: 18px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .bookmark-icon {
        height: 32px !important;
        width: auto;
        margin: 0 4px;
    }
    
    .underline-svg {
        bottom: -5px;
    }
    
    .underline-svg-line {
        bottom: -5px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 20px;
        max-width: 100%;
        padding: 0 16px;
    }

    .problem-section {
        padding: 0 16px;
        margin-top: 24px;
    }
    
    .problem-content {
        gap: 16px;
    }
    
    .problem-title {
        font-size: 24px;
        line-height: 28px;
        text-align: left;
    }
    
    .problem-icon {
        height: 56px;
    }
    
    .app-preview {
        margin-top: 16px;
    }
    
    .app-preview img {
        max-width: 90%;
    }
    
    .features-section {
        flex-direction: column;
        padding: 0 16px;
        align-items: center;
        margin-top: 24px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: auto;
    }
    
    .feature-image {
        max-height: 200px;
    }
    
    .solution-section {
        margin-top: 60px;
    }
    
    .solution-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .solution-icon {
        max-width: 80%;
    }
    
    .feature-detail-section {
        flex-direction: column;
        margin-top: 60px;
        padding: 0 16px;
        align-items: center;
    }
    
    .feature-detail-section:nth-of-type(even) .feature-detail-image {
        order: 1;
    }
    
    .feature-detail-section:nth-of-type(even) .feature-detail-content {
        order: 2;
    }
    
    .feature-detail-image {
        width: 100%;
        max-width: 280px;
    }
    
    .feature-detail-image img {
        width: 100%;
        height: auto;
    }
    
    .feature-detail-content {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .feature-detail-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .final-message-section {
        margin-top: 60px;
    }
    
    .final-message-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .footer {
        margin-top: 40px;
    }
    
    .footer-nav {
        gap: 16px;
    }
    
    .footer-nav a {
        font-size: 14px;
        line-height: 18px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .logo img {
        width: 48px;
        height: 34px;
    }
    
    .brand-name {
        font-size: 28px;
        line-height: 34px;
    }
    
    .hero-title {
        font-size: 56px;
        line-height: 64px;
    }
    
    .bookmark-icon {
        width: 24px;
        height: 37px;
        margin: 0 6px;
    }
    
    .problem-title,
    .solution-title,
    .feature-detail-title,
    .final-message-title {
        font-size: 32px;
        line-height: 36px;
    }
    
    .problem-icon {
        height: 72px;
    }
    
    .app-preview img {
        max-width: 60%;
    }
    
    .features-section {
        padding: 50px 30px;
    }
    
    .feature-card {
        width: 200px;
        height: 420px;
    }
    
    .feature-detail-section {
        margin-top: 70px;
    }
    
    .feature-detail-image {
        width: 200px;
    }
    
    .feature-detail-image img {
        width: 200px;
        height: 400px;
    }
    
    .feature-detail-content {
        flex: 0 0 400px;
    }
}

/* Terms Page Styles */
.terms-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.terms-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 48px;
    text-align: center;
}

.terms-content {
    font-size: 16px;
    line-height: 1.6;
}

.terms-content h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.terms-content h4 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-content p {
    margin-bottom: 16px;
}

.terms-content ul,
.terms-content ol {
    margin-bottom: 16px;
    padding-left: 32px;
}

.terms-content li {
    margin-bottom: 8px;
}

.terms-content ol {
    list-style-type: decimal;
}

.terms-content ul {
    list-style-type: disc;
}

.contact-email {
    color: var(--color-yellow);
    font-weight: 500;
}

.contact-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-dark-gray);
}

/* Mobile styles for terms */
@media (max-width: 767px) {
    .terms-section {
        padding: 32px 20px 64px;
    }
    
    .terms-title {
        font-size: 36px;
        margin-bottom: 32px;
    }
    
    .terms-content {
        font-size: 15px;
    }
    
    .terms-content h3 {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 12px;
    }
    
    .terms-content h4 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .terms-content ul,
    .terms-content ol {
        padding-left: 24px;
    }
}

