/* =========================================================
   domain — Swiss Typography Clean
   Helvetica** Inter** Mono** IBM Plex Mono** 400/500
   color-coded availability indicators (green dot
   ========================================================= */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: #111111;
    background-color: #FFFFFF;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* --- 12-Column Grid Container --- */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Hero Zone
   ========================================================= */
.hero {
    padding: 96px 0 80px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

.hero-left {
    grid-column: 1 / 8;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #111111;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #555555;
    margin-bottom: 40px;
    line-height: 1.5;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #111111;
    background: #FFFFFF;
    position: relative;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 16px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    padding: 14px 8px;
    background: transparent;
}

.search-input::placeholder {
    color: #CCCCCC;
}

.search-btn {
    border: none;
    background: #111111;
    color: #FFFFFF;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 28px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: #0066CC;
}

.search-result {
    margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    min-height: 20px;
}

.search-result .result-available {
    color: #43A047;
}

.search-result .result-taken {
    color: #E53935;
}

/* Hero Stats */
.hero-stats {
    grid-column: 9 / 13;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.stat-block {
    border-left: 2px solid #0066CC;
    padding-left: 16px;
}

.stat-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    color: #111111;
    font-feature-settings: 'tnum';
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* =========================================================
   Section Titles
   ========================================================= */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.globe-icon {
    flex-shrink: 0;
}

/* =========================================================
   TLD Directory Table
   ========================================================= */
.directory {
    padding: 80px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

.tld-table,
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-feature-settings: 'tnum';
}

.tld-table thead th,
.matrix-table thead th {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555555;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #111111;
    user-select: none;
}

.sortable {
    cursor: pointer;
    position: relative;
}

.sortable:hover {
    color: #0066CC;
}

.sort-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    color: #CCCCCC;
}

.sort-arrow::after {
    content: '\25B2\25BC';
    font-size: 8px;
    letter-spacing: -2px;
}

.sortable.asc .sort-arrow::after {
    content: '\25B2';
    color: #0066CC;
}

.sortable.desc .sort-arrow::after {
    content: '\25BC';
    color: #0066CC;
}

.tld-table tbody tr,
.matrix-table tbody tr {
    border-bottom: 1px solid #CCCCCC;
    transition: background-color 0.15s ease;
}

.tld-table tbody tr:nth-child(even),
.matrix-table tbody tr:nth-child(even) {
    background-color: #F5F5F5;
}

.tld-table tbody tr:hover,
.matrix-table tbody tr:hover {
    background-color: #E8F0FE;
}

.tld-table td,
.matrix-table td {
    font-size: 14px;
    padding: 14px 16px;
    color: #111111;
}

.domain-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: #0066CC;
}

.data-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-feature-settings: 'tnum';
}

.price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-feature-settings: 'tnum';
    color: #111111;
}

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 0;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.available {
    background-color: #43A047;
}

.status-dot.taken {
    background-color: #E53935;
}

/* =========================================================
   Comparison Matrix
   ========================================================= */
.comparison {
    padding: 80px 0;
    background-color: #F5F5F5;
    border-bottom: 1px solid #CCCCCC;
}

/* =========================================================
   Strategy Guide
   ========================================================= */
.strategy {
    padding: 80px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

.guide-list {
    counter-reset: guide;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #CCCCCC;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 32px;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 1;
    min-width: 56px;
    font-feature-settings: 'tnum';
}

.guide-content {
    flex: 1;
}

.guide-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.guide-text {
    font-size: 15px;
    color: #555555;
    line-height: 1.65;
}

/* =========================================================
   Tools Section
   ========================================================= */
.tools-section {
    padding: 80px 0;
    background-color: #F5F5F5;
    border-bottom: 1px solid #CCCCCC;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tool-card {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
}

.tool-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #CCCCCC;
}

.tool-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.tool-card-body {
    padding: 24px;
}

.tool-description {
    font-size: 14px;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.65;
}

.valuation-form {
    display: flex;
    gap: 0;
}

.tool-input {
    flex: 1;
    border: 2px solid #CCCCCC;
    border-right: none;
    padding: 12px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #111111;
    outline: none;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.tool-input:focus {
    border-color: #0066CC;
}

.tool-btn {
    border: 2px solid #111111;
    background: #111111;
    color: #FFFFFF;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tool-btn:hover {
    background: #0066CC;
    border-color: #0066CC;
}

.tool-result {
    margin-top: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    min-height: 20px;
}

.tool-result .valuation-high {
    color: #43A047;
    font-weight: 400;
}

.tool-result .valuation-medium {
    color: #0066CC;
    font-weight: 400;
}

.tool-result .valuation-low {
    color: #555555;
    font-weight: 400;
}

/* Expiring Domains List */
.expiring-list {
    display: flex;
    flex-direction: column;
}

.expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.expiring-item:last-child {
    border-bottom: none;
}

.expiring-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #0066CC;
}

.expiring-timer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #E53935;
    font-feature-settings: 'tnum';
}

/* =========================================================
   News & Trends
   ========================================================= */
.news-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #CCCCCC;
}

.news-item:last-child {
    border-bottom: none;
}

.news-marker {
    display: block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background-color: #E53935;
    margin-top: 8px;
}

.news-content {
    flex: 1;
}

.news-headline {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 6px;
}

.news-excerpt {
    font-size: 14px;
    color: #555555;
    line-height: 1.65;
}

.news-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #CCCCCC;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    padding: 64px 0 40px;
    background-color: #111111;
    color: #FFFFFF;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #CCCCCC;
    margin-bottom: 16px;
}

.footer-list {
    list-style: none;
}

.footer-link {
    font-size: 14px;
    color: #FFFFFF;
    padding: 4px 0;
    display: block;
    cursor: pointer;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #0066CC;
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 24px;
}

.footer-copy {
    font-size: 13px;
    color: #555555;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .hero-left {
        grid-column: 1 / -1;
    }

    .hero-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-title {
        font-size: 48px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    .news-date {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .directory,
    .comparison,
    .strategy,
    .tools-section,
    .news-section {
        padding: 48px 0;
    }

    .tld-table,
    .matrix-table {
        font-size: 12px;
    }

    .tld-table td,
    .matrix-table td,
    .tld-table thead th,
    .matrix-table thead th {
        padding: 10px 8px;
    }

    .guide-item {
        flex-direction: column;
        gap: 8px;
    }

    .guide-num {
        font-size: 24px;
    }

    .stat-number {
        font-size: 22px;
    }
}
