@font-face {
    font-family: 'Retro Future';
    src: url('fonts/Retro_Future.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow Night';
    src: url('fonts/Tomorrow_Night.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Direct Message';
    src: url('fonts/Direct_Message.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Coders Crux 2';
    src: url('fonts/Coder\'s Crux 2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Logic Loop';
    src: url('fonts/Logic_Loop.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Simple Script';
    src: url('fonts/Simple_Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inky Thin Pixels';
    src: url('fonts/Inky Thin Pixels.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #1b1b1b;
    --surface: #2a2a2a;
    --text: #e8e8e8;
    --text-muted: #a5a5a5;
    --primary: #fa5c5c;
    --primary-dark: #e54646;
    --shadow: rgba(0, 0, 0, 0.2);

    /* Font variables */
    --font-title: 'Inky Thin Pixels', 'Space Grotesk', sans-serif;
    --font-subtitle: 'Tomorrow Night', 'Inter', sans-serif;
    --font-body: 'Direct Message', 'Space Grotesk', monospace;
    --font-paragraph: 'Simple Script', sans-serif;
    --font-h3: 'Logic Loop', sans-serif;
}

/* Base styles */
html {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    text-rendering: optimizeLegibility;
}

/* Responsive improvements */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.feature {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: 2;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: normal;
    line-height: 1.6;
    padding: 0.2em 0;
    position: relative;
    z-index: 3;
    font-family: var(--font-h3);
    font-size: 1.25rem;
}

.feature p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0.5em 0;
    position: relative;
    z-index: 3;
    padding: 0.1em 0;
    font-family: var(--font-paragraph);
    font-size: 1.1rem;  /* Slightly larger for better readability */
}

/* Mobile improvements */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5em;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .feature {
        padding: 1.25rem;
    }

    .signup {
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0.75rem;
    }
}

/* Add minimum line height to ensure text doesn't clip */
p, h1, h2, h3, h4, h5, h6 {
    min-height: 1.2em;
    padding: 0.2em 0;
    text-rendering: geometricPrecision;
}

h1 {
    font-family: var(--font-subtitle);
    font-size: 3em;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: normal;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* Add specific styles for when title wraps (around 375px) */
@media screen and (max-width: 375px) {
    h1 {
        font-size: clamp(1.7em, 5vw, 2.7em);
        margin-bottom: 0.7rem;
    }

    /* Compensate for the increased line height */
    header {
        margin-bottom: calc(3rem - 0.5rem);
    }
}

h2, h4, h5, h6 {
    font-family: var(--font-subtitle);
    font-weight: normal;
    letter-spacing: 0;
    font-size: 1.25rem;
}

h3 {
    font-family: var(--font-h3);
    font-weight: normal;
    letter-spacing: 0;
    font-size: 1.25rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tagline {
    font-family: var(--font-subtitle);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 0.1em 0;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

.signup {
    background: var(--surface);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.signup h2 {
    margin-bottom: 1rem;
    font-weight: normal;
    position: relative;
    z-index: 3;
}

.signup p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
    font-family: var(--font-paragraph);
    position: relative;
    z-index: 3;
}

.signup iframe {
    margin: 0;
    display: block;
}

.signup form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
    background: var(--background);
    color: var(--text);
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-dark);
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.1em 0;
    font-family: var(--font-paragraph);
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    backface-visibility: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-paragraph);
    position: relative;
    z-index: 3;
} 