/* Global Reset & Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --border-color: #e0e0e0;
    --card-bg: #f9f9f9;
    --hover-bg: #f0f0f0;
    --sidebar-width: 300px;
    --spacing: 2rem;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --border-color: #333333;
    --card-bg: #0a0a0a;
    --hover-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Strict no rounded corners rule */
    border-radius: 0 !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand {
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.brand h1 {
    font-size: 2rem;
    letter-spacing: -1px;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    border: 1px solid var(--text-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.35rem 0;
    border-left: 2px solid transparent;
    padding-left: 0px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
    padding-left: 1rem;
    border-left-color: var(--text-color);
}

.sidebar-footer {
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.8s;
}

.contact-info small {
    display: block;
    color: #666;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-family: monospace;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 4rem 6rem;
    width: 100%;
    max-width: 1200px;
}

section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 70ch;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 400;
}

/* Trust Pillars (Overview) */
.trust-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.pillar {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.pillar:hover {
    background: var(--hover-bg);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.pillar h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pillar p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

[data-theme="dark"] .modal-icon img {
    filter: invert(1);
}

.modal-icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--text-color);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    font-weight: 600;
}

/* Services Table */
.services-table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    table-layout: fixed;
}

.services-table thead {
    background: var(--text-color);
    color: var(--bg-color);
}

.services-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.services-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: top;
    line-height: 1.5;
}

.services-table th:nth-child(1) {
    width: 18%;
}

.services-table th:nth-child(2) {
    width: 22%;
}

.services-table th:nth-child(3) {
    width: 60%;
}

.services-table td:nth-child(2) {
    white-space: nowrap;
}

.service-row {
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.service-row:hover {
    background-color: var(--hover-bg);
    transition: background-color 0.2s ease;
}

.provider-cell {
    vertical-align: middle;
}

.provider-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

[data-theme="dark"] .brand-icon {
    filter: invert(1);
}

.brand-icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    font-weight: bold;
    border: 1px solid var(--text-color);
    flex-shrink: 0;
}

/* Domain Registrars */
.registrar-list {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.registrar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.registrar-item:hover {
    background-color: var(--hover-bg);
}

.registrar-name {
    font-weight: 600;
    font-size: 1rem;
}

.registrar-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
}

.registrar-link:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Cards & Interactive Elements */
.card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: var(--card-bg);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    border-bottom-color: var(--text-color);
    padding-bottom: 0.5rem;
}

/* Lists */
.checklist, .crosslist {
    list-style: none;
    margin-top: 2rem;
}

.checklist li, .crosslist li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    opacity: 0.9;
}

.checklist li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.crosslist li::before {
    content: '\00d7';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

strong {
    color: var(--text-color);
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.step:hover {
    background-color: var(--hover-bg);
}

.step-number {
    font-family: monospace;
    font-size: 1.2rem;
    color: #444;
}

.step-content {
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 500;
}

.thank-you {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    position: relative;
}

.thank-you p {
    color: var(--bg-color);
    opacity: 1;
    max-width: 100%;
    margin-bottom: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: monospace;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.theme-toggle:hover {
    opacity: 1;
}

.mt-large {
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        padding: 1.5rem;
    }
    .main-content {
        margin-left: 240px;
        padding: 3rem;
    }
    .trust-pillars {
        grid-template-columns: 1fr;
    }
    .services-table th:nth-child(3),
    .services-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
    }

    .nav-links {
        display: none;
    }
    
    .sidebar-footer {
        margin-top: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .trust-pillars {
        grid-template-columns: 1fr;
    }

    .services-table {
        font-size: 0.8rem;
    }

    .services-table th,
    .services-table td {
        padding: 0.75rem;
    }

    .services-table th:nth-child(2),
    .services-table td:nth-child(2),
    .services-table th:nth-child(3),
    .services-table td:nth-child(3) {
        display: none;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }
}