/* Muzzle.cc - Dark & Edgy Theme */

:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #1a1a1a;
    --bg-input: #0d0d0d;
    --border: #333;
    --accent: #00e5ff;
    --accent-dim: #00b8cc;
    --text: #e0e0e0;
    --text-bright: #ffffff;
    --text-muted: #666;
    --danger: #ff3333;
    --success: #00ff88;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* Header / Branding */
.header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.1em;
    margin: 0;
}

.brand span {
    color: var(--success);
}

.brand::after {
    content: '_';
    animation: blink 1s step-end infinite;
    color: var(--success);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* Messages */
.message {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    position: relative;
}

.message-success {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.05);
    color: var(--success);
}

.message-success p {
    color: #eee;
}

.message-error {
    border-color: var(--danger);
    background: rgba(255, 51, 51, 0.05);
    color: var(--danger);
}

.message-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.message-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 150ms;
}

.message-close:hover {
    opacity: 1;
}

/* Address Display */
.addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .addresses {
        grid-template-columns: 1fr;
    }
}

.address-block label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.copy-link {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 0.5rem;
    transition: color 150ms;
}

.copy-link:hover {
    color: var(--accent);
}

.address {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    color: var(--success);
    word-break: break-all;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    min-height: calc(1.4em + 1.75rem + 2px); /* line-height + padding + border */
}

/* Make input.address look identical to div.address */
input.address {
    outline: none;
    transition: border-color 150ms, box-shadow 150ms;
    height: auto;
}

input.address:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

/* Form */
.form-section {
    margin-bottom: 2rem;
}

.form-section label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    resize: vertical;
    transition: border-color 150ms, box-shadow 150ms;
}

textarea:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

textarea::placeholder {
    color: var(--text-muted);
    transition: opacity 0.3s ease;
}


/* Buttons */
.button-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 1px solid;
    cursor: pointer;
    transition: all 150ms;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: transparent;
    border-color: var(--success);
    color: var(--success);
}

.btn-primary:hover {
    background: var(--success);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

/* Examples Section */
.examples {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.examples h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
}

.example {
    margin-bottom: 1.25rem;
}

.example h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 0 0 0.375rem 0;
}

.example code {
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    background: var(--bg-surface);
    border-left: 2px solid var(--border);
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    transition: border-color 150ms, color 150ms;
}

.example:hover code {
    border-color: var(--accent);
    color: var(--text);
}

/* Input field (for email entry) */
.input-field {
    width: 100%;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color 150ms, box-shadow 150ms;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* Use link */
.use-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 150ms;
}

.use-link:hover {
    color: var(--accent);
}

/* Confetti */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms;
}

.footer a:hover {
    color: var(--accent);
}

/* ========================================
   Homepage Styles
   ======================================== */

.hero {
    text-align: center;
    padding: 1rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.hero .brand {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 300;
    margin: 0 0 0.5rem 0;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Transformation Demo */
.transform-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (max-width: 700px) {
    .transform-demo {
        grid-template-columns: 1fr;
    }
    .transform-arrow {
        transform: rotate(90deg);
    }
}

.email-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.email-box-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-box.before {
    color: var(--text-muted);
    border-color: var(--danger);
    border-left-width: 3px;
}

.email-box.after {
    color: var(--text);
    border-color: var(--success);
    border-left-width: 3px;
}

.transform-arrow {
    font-size: 2rem;
    color: var(--success);
    text-align: center;
}

/* How it Works */
.how-it-works {
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.how-it-works h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 600px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.step {
    text-align: left;
}

.step-number {
    display: none;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border: 1px solid var(--success);
    color: #fff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.step h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Address Format Display */
.address-format {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0;
    text-align: center;
    margin-bottom: 3rem;
}

.address-row {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.address-row:last-child {
    border-bottom: none;
}

.address-format-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.address-row code {
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--text);
}

.address-row code.muzzle-addr {
    color: var(--success);
    font-size: 1.25rem;
}

.address-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: border-color 150ms, box-shadow 150ms;
}

.address-input:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.cta-row p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.cta-row .btn {
    display: inline-block;
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.cta-section .btn {
    display: inline-block;
    text-decoration: none;
}
