/* ============================================================
   Domain Vault — Stylesheet
   Aesthetic: Dark luxury brokerage. Muted gold accents on deep
   charcoal. Clean typographic hierarchy. Quiet confidence.
   ============================================================ */

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

:root {
    --bg:          #0b0c10;
    --bg-raised:   #13141a;
    --bg-card:     #181920;
    --bg-hover:    #1e1f28;
    --border:      #2a2b35;
    --border-light:#3a3b48;
    --text:        #c9cad4;
    --text-muted:  #6e7082;
    --text-bright: #eeeef2;
    --accent:      #c9a84c;
    --accent-dim:  #9a7b2e;
    --accent-glow: rgba(201, 168, 76, 0.12);
    --green:       #3ecf8e;
    --red:         #ef4444;
    --blue:        #60a5fa;
    --radius:      6px;
    --radius-lg:   10px;
    --shadow:      0 2px 16px rgba(0,0,0,0.35);
    --transition:  0.2s ease;
    --font-body:   'DM Sans', -apple-system, sans-serif;
    --font-display:'Inter Tight', 'DM Sans', -apple-system, sans-serif;
    --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

/* ─── Noise texture overlay ──────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

body > * { position: relative; z-index: 1; }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─── Typography ─────────────────────────────────────────── */
.heading-xl {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.2;
}

.heading-md {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-bright);
    letter-spacing: 0.01em;
}

.label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.mono { font-family: var(--font-mono); font-size: 0.9em; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--green); }
.text-bright { color: var(--text-bright); }

/* ─── Hero Section (Landing Page) ────────────────────────── */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.hero .domain-name {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 500;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.hero .domain-name .tld {
    color: var(--accent);
}

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

.hero .price-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    padding: 12px 36px;
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius-lg);
    background: var(--accent-glow);
    margin-bottom: 24px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #d4b35a;
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #dc2626; }

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--accent-dim); }

.stat-card .stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ─── Metric bars ────────────────────────────────────────── */
.metric-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.metric-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ─── Domain Cards Grid ──────────────────────────────────── */
.section { padding: 48px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.domain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.domain-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.domain-card.featured {
    border-color: var(--accent-dim);
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.04));
}

.domain-card .card-name {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-bright);
    margin-bottom: 8px;
    word-break: break-all;
}

.domain-card .card-name .tld { color: var(--accent); }

.domain-card .card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.domain-card .card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.domain-card .card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.featured-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* ─── Inquiry Modal ──────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    margin: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 24px;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ─── Full Domain List (collapsible) ─────────────────────── */
.full-list-toggle {
    text-align: center;
    padding: 20px;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
}

.domain-table th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.domain-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.domain-table tr:hover { background: var(--bg-hover); }

.domain-table .name-cell {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.domain-table .name-cell a { color: var(--text-bright); }
.domain-table .name-cell a:hover { color: var(--accent); }

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

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.fade-up-d1 { animation-delay: 0.05s; }
.fade-up-d2 { animation-delay: 0.1s; }
.fade-up-d3 { animation-delay: 0.15s; }
.fade-up-d4 { animation-delay: 0.2s; }
.fade-up-d5 { animation-delay: 0.25s; }

/* ─── Toast notification ─────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    color: var(--green);
    font-size: 0.88rem;
    box-shadow: var(--shadow);
    z-index: 2000;
    animation: fadeUp 0.3s ease;
}

.toast.error { border-color: var(--red); color: var(--red); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .domain-grid { grid-template-columns: 1fr; }
    .modal { padding: 24px; }
    .domain-table { font-size: 0.8rem; }
    .domain-table th:nth-child(n+4),
    .domain-table td:nth-child(n+4) { display: none; }
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── Domain name & price — Inter Tight overrides ────────── */
.hero .domain-name {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero .price-tag {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.domain-card .card-price {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ─── Promotion Card ─────────────────────────────────────── */
.promo-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.06));
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition);
}

.promo-card:hover { border-color: var(--accent); }

.promo-card.has-image {
    grid-template-columns: 280px 1fr;
}

.promo-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.promo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .promo-card.has-image { grid-template-columns: 1fr; }
}
