:root {
    --primary: #000000;
    --primary-light: #2c2c2c;
    --secondary: #666666;
    --background: #ffffff;
    --surface: #f5f5f5;
    --border: #e0e0e0;
    --success: #10b981;
    --error: #ef4444;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Card */
.card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature {
    text-align: center;
}

.feature .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Screenshots */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.screenshots img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Form */
.address-form {
    margin-top: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-1px);
}

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

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.results {
    margin-top: 32px;
    padding: 24px;
    background: var(--surface);
    border-radius: 8px;
}

.success-message {
    margin-bottom: 24px;
}

.success-message h3 {
    color: var(--success);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.config-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.config-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.value-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.config-value {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    color: var(--primary);
}

.copy-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-light);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: var(--success);
}

/* Next Steps */
.next-steps {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.next-steps h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.next-steps a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.next-steps a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    margin-top: 24px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.error-message h3 {
    color: var(--error);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.error-message p {
    color: var(--text);
    margin: 0;
}

/* Documentation Links */
.docs-links {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.doc-link {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.doc-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.doc-link span {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.doc-link p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Requirements */
.requirements-list {
    padding-left: 24px;
    margin-top: 16px;
}

.requirements-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .screenshots {
        grid-template-columns: 1fr;
    }
}
