:root {
    --color-bg: #fafafa;
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-border: #e0e0e0;
    --color-accent: #2d3c28;
    --color-link: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

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

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-modal.active {
    display: flex;
    opacity: 1;
}

.nav-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

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

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 1.5rem 0;
}

.nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.lookup-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.step.active {
    border-color: var(--color-accent);
    background: #f8f9f8;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--color-accent);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--color-text);
    font-weight: 500;
}

.lookup-container {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-with-button {
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

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

.autocomplete-item:hover {
    background: #f8f9f8;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #1f2a1f;
    border-color: #1f2a1f;
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f8f9f8;
}

.location-icon {
    font-size: 1rem;
}

.info-box {
    background: #f8f9f8;
    border-left: 3px solid var(--color-accent);
    padding: 1.25rem;
    border-radius: 0 4px 4px 0;
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.link-learn-more {
    color: var(--color-text);
    font-weight: 500;
}

.features {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-header {
    margin-bottom: 2rem;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.result-address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.result-details {
    margin-bottom: 2rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-item-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.result-item-value {
    font-size: 1rem;
}

.result-disclaimer {
    background: #f8f9f8;
    border-left: 3px solid var(--color-accent);
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-verify,
.btn-secondary-action,
.btn-report {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.btn-verify {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-verify:hover {
    background: #1f2a1f;
    border-color: #1f2a1f;
}

.btn-secondary-action {
    background: white;
    color: var(--color-text);
}

.btn-secondary-action:hover {
    background: #f8f9f8;
}

.btn-report {
    background: white;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.btn-report:hover {
    background: #f8f9f8;
    color: var(--color-text);
}

.error-message {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    padding: 1.25rem;
    color: #7f1d1d;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

.footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.acknowledgement {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.footer-note {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem 0;
    color: var(--color-text-muted);
}

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

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

.footer-links span {
    margin: 0 0.5rem;
}

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

.footer .credit a {
    color: var(--color-text);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.content-article {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 3rem;
}

.content-article h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.content-article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.cta-box {
    background: #f8f9f8;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.external-link {
    color: var(--color-text);
    font-weight: 500;
}

.evc-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.evc-code {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.evc-header h1 {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .lookup-section {
        padding: 0 1.5rem 3rem;
    }

    .lookup-container {
        padding: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .step-indicator {
        flex-direction: column;
        gap: 0.75rem;
    }

    .content-article {
        padding: 2rem 1.5rem;
    }

    .content-article h1 {
        font-size: 1.5rem;
    }

    .content-article h2 {
        font-size: 1.125rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result-actions {
        gap: 0.5rem;
    }
    
    .btn-verify,
    .btn-secondary-action,
    .btn-report {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
