/* Variables */
:root {
    --bg: #000;
    --text: #fff;
    --text-muted: #888;
    --border: #1a1a1a;
    --card-bg: #0a0a0a;
    --input-bg: #111;
    --accent: #fff;
    --max-width: 800px;
}

[data-theme="light"] {
    --bg: #fff;
    --text: #000;
    --text-muted: #666;
    --border: #e5e5e5;
    --card-bg: #fafafa;
    --input-bg: #f5f5f5;
    --accent: #000;
}

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

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--text-muted);
}

.icon-sun { display: none; }
.icon-moon { display: inline; }

[data-theme="light"] .icon-sun { display: inline; }
[data-theme="light"] .icon-moon { display: none; }

/* Hero */
.hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.tagline {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 540px;
}

/* Sections */
.section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section p:last-child {
    margin-bottom: 0;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 4px;
}

.card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Approach List */
.approach-list {
    list-style: none;
    margin-top: 24px;
}

.approach-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.approach-list li:first-child {
    padding-top: 0;
}

.approach-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.approach-list strong {
    color: var(--text);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    margin-top: 32px;
    max-width: 480px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Submit Button */
.btn-submit {
    display: inline-block;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg);
    background-color: var(--text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.85;
}

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

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

/* Form Status */
.form-status {
    margin-top: 16px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    display: block;
    color: #22c55e;
}

.form-status.error {
    display: block;
    color: #ef4444;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-legal {
    font-size: 11px !important;
    opacity: 0.6;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}

/* Selection */
::selection {
    background-color: var(--text);
    color: var(--bg);
}
