/* BSD Macao - Style */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-terminal: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --gradient-start: #f97316;
    --gradient-end: #ef4444;
    --border-color: #27272a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.terminal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.daemon {
    margin-right: 0.25rem;
}

.macao {
    color: var(--accent-orange);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn.primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background: var(--bg-terminal);
    border-color: var(--accent-orange);
}

/* Terminal */
.terminal {
    background: var(--bg-terminal);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.terminal-header {
    background: #2a2a3e;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    margin-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.line {
    white-space: nowrap;
    overflow: hidden;
}

.prompt {
    color: var(--accent-green);
}

.cmd {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.output.success {
    color: var(--accent-green);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.delayed-1 { animation-delay: 0.5s; }
.delayed-2 { animation-delay: 0.7s; }
.delayed-3 { animation-delay: 0.9s; }
.delayed-4 { animation-delay: 1.2s; }
.delayed-5 { animation-delay: 1.8s; }
.delayed-6 { animation-delay: 2.2s; }
.delayed-7 { animation-delay: 2.8s; }
.delayed-8 { animation-delay: 3.2s; }
.delayed-9 { animation-delay: 3.8s; }
.delayed-10 { animation-delay: 4.2s; }
.delayed-11 { animation-delay: 4.6s; }
.delayed-12 { animation-delay: 5s; }

/* Tools Section */
.tools, .install-section, .about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
}

.tool-card.featured {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(168, 85, 247, 0.1));
}

.tool-card.coming-soon {
    opacity: 0.7;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.tool-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-terminal);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tag.coming {
    background: var(--accent-purple);
    color: white;
}

.install-box {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.install-box code {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.tool-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
}

.tool-link:hover {
    text-decoration: underline;
}

/* Install Steps */
.install-section p {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
}

.step-content code {
    background: var(--bg-terminal);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-green);
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-terminal {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Feedback Section */
.feedback-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.feedback-section p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input {
    flex: 1;
}

.feedback-form input,
.feedback-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: var(--text-secondary);
}

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

.feedback-form button {
    align-self: flex-start;
}

.feedback-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-status {
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.feedback-status.success {
    color: var(--accent-green);
}

.feedback-status.error {
    color: var(--accent-red);
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }
}
