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

:root {
    --bg: #111113;
    --bg-surface: #1a1a1e;
    --bg-card: #222228;
    --text: #e8e8ec;
    --text-muted: #9898a0;
    --accent: #6c8cff;
    --accent-hover: #8aa4ff;
    --border: #2a2a30;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Nav */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

nav .nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

nav .nav-link:hover {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Cards */
.cards {
    padding: 2rem 0 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA */
.cta {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.form-page {
    padding: 4rem 0 2rem;
}

.form-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-page .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

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

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #1a2e1a;
    border: 1px solid #2d4a2d;
    color: #7ec87e;
}

.form-status.error {
    display: block;
    background: #2e1a1a;
    border: 1px solid #4a2d2d;
    color: #c87e7e;
}

/* Success View */
.success-view {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #1a2e1a;
    border: 2px solid #2d4a2d;
    color: #7ec87e;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-view h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-view p {
    color: var(--text-muted);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (min-width: 600px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        padding: 5rem 0 3rem;
    }

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