/*
 * Lyric Machine Promotional Website Stylesheet
 * Classic Mac System 7 aesthetic
 */

/* === ROOT VARIABLES === */
:root {
    --window-bg: #ffffff;
    --border-color: #000000;
    --title-bg: #000000;
    --title-fg: #ffffff;
    --button-bg: #dddddd;
    --button-border: #000000;
    --text-bg: #ffffff;
    --text-fg: #000000;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --section-alt-bg: #f5f5f5;
    --max-width: 1200px;
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Chicago", "Courier New", monospace;
    font-size: 15px;
    background-color: #c0c0c0;
    color: var(--text-fg);
    line-height: 1.7;
    padding-top: 60px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.2rem;
    font-weight: bold;
    line-height: 1.3;
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* === NAVIGATION === */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--title-bg);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--title-fg);
    font-weight: bold;
    font-size: 16px;
}

.logo {
    font-size: 20px;
}

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

.nav-link {
    color: var(--title-fg);
    font-size: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.btn-appstore {
    padding: 6px 14px;
    background-color: var(--button-bg);
    color: var(--text-fg);
    border: 2px solid var(--title-fg);
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-appstore:hover {
    background-color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* === CONTAINER === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 25px;
}

/* === WINDOW / TITLE BAR === */
.window {
    background-color: var(--window-bg);
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.title-bar {
    background-color: var(--title-bg);
    color: var(--title-fg);
    padding: 6px 12px;
    border-bottom: 2px solid var(--border-color);
}

.title {
    font-size: 14px;
    font-weight: bold;
}

.window-content {
    padding: 35px;
}

/* === SECTIONS === */
.section {
    padding: 50px 0;
}

.section-alt {
    background-color: var(--section-alt-bg);
}

/* === HERO SECTION === */
.hero {
    padding: 70px 0 50px;
}

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

.hero-content {
    padding: 70px 35px;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 19px;
    margin-bottom: 40px;
    color: #222;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Chicago", "Courier New", monospace;
    font-size: 15px;
    font-weight: bold;
    background-color: var(--button-bg);
    border: 2px solid var(--button-border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-fg);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.btn:hover {
    background-color: #eeeeee;
    transform: translateY(-1px);
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: var(--text-fg);
}

.btn:active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(1px, 1px);
}

.btn-primary {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background-color: #333;
    color: #fff;
}

.btn-secondary {
    background-color: var(--button-bg);
    color: var(--text-fg);
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.feature {
    padding: 24px;
    border: 2px solid #ddd;
    background-color: var(--text-bg);
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.feature p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin-top: 35px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    border: 2px solid var(--border-color);
    background-color: var(--text-bg);
    color: var(--text-fg);
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* === WARNING & DISCLAIMER BOXES === */
.warning {
    padding: 18px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    margin-top: 24px;
    line-height: 1.6;
}

.disclaimer-box {
    padding: 18px;
    background-color: #e8f4f8;
    border: 2px solid #0066cc;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer-box p {
    margin-bottom: 0;
}

/* === CONTACT INFO === */
.contact-info {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #ddd;
}

.contact-info h3 {
    margin-bottom: 18px;
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* === LEGAL PAGES === */
.page-section {
    padding: 70px 0 50px;
}

.legal-page .window-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    font-size: 14px;
    line-height: 1.85;
}

.legal-content h1 {
    font-size: 32px;
    margin-bottom: 14px;
}

.legal-content h2 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content ul {
    margin-left: 30px;
    margin-bottom: 18px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content hr {
    border: none;
    border-top: 2px solid #000;
    margin: 30px 0;
}

.legal-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.legal-acknowledgment {
    font-weight: bold;
    text-align: center;
    padding: 24px;
    background-color: #f5f5f5;
    border: 2px solid #000;
    margin-top: 35px;
    line-height: 1.6;
}

/* === FOOTER LINKS === */
.footer-links {
    margin-top: 10px;
    font-size: 11px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    background-color: var(--title-bg);
    color: var(--title-fg);
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-content a {
    color: #ccc;
}

.footer-content a:hover {
    color: #fff;
}

.footer-credit {
    font-style: italic;
    opacity: 0.8;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    body {
        font-size: 13px;
        padding-top: 0;
    }

    .nav-bar {
        position: relative;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 8px;
        font-size: 13px;
    }

    .btn-appstore {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }

    .hero {
        padding: 30px 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 15px;
    }

    .window-content {
        padding: 20px;
    }

    .section {
        padding: 30px 0;
    }

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

    .feature {
        padding: 15px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 16px; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .window-content {
        padding: 15px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === iOS OPTIMIZATIONS === */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: calc(60px + env(safe-area-inset-top, 0px));
    }

    .nav-bar {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
    .form-input {
        font-size: 16px !important;
    }
}

/* Touch-friendly interactions */
* {
    -webkit-tap-highlight-color: transparent;
}

.btn,
button,
a {
    touch-action: manipulation;
}
