:root {
    --bg-color: #E8E8E8;
    --text-color: #111;
    --accent-color: #38BDF8; /* Light Modern Blue */
    --accent-dark: #0284C7;
    --grid-line: #CCC;
    --card-bg: #FFFFFF;
    --font-display: 'Pixelify Sans', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, .label, .value, .classification, .step-num, .card-meta {
    font-family: var(--font-display);
    text-transform: uppercase;
}

/* Header */
.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--text-color);
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--text-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.status-block {
    text-align: center;
}

.status-block .label {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.status-block .value {
    font-weight: 700;
    font-size: 1.2rem;
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--accent-dark);
    /* color: #0ea5e9; */
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hero */
.hero {
    margin-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text-main h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
}

.text-accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color); /* Outline style */
    position: relative;
}

.text-accent::before {
    content: 'NATION READY.';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
    /* Optional offset effect */
    transform: translate(4px, 4px);
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.arrow {
    width: 40px;
    height: 80px;
    background: var(--accent-color);
    clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%);
    animation: pulseArrow 2s infinite;
}

.arrow:nth-child(2) { animation-delay: 0.2s; }
.arrow:nth-child(3) { animation-delay: 0.4s; }
.arrow:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulseArrow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-subdata {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-top: 1px solid var(--grid-line);
    padding-top: 1rem;
}

.typewriter {
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

/* Marquee */
.separator-bar {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 0;
    margin: 4rem -2rem; /* bleed full width */
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-1deg);
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
}

.marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    border: 2px solid var(--text-color);
    padding: 2rem;
    background: #fff;
    transition: transform 0.2s;
    position: relative;
    box-shadow: 8px 8px 0 var(--accent-color);
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--accent-dark);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.5rem;
}

.card-meta {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

/* Visual Break */
.visual-break {
    position: relative;
    margin: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.glitch-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.visual-break:hover .glitch-image {
    filter: grayscale(0%) contrast(1);
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border: 2px solid var(--text-color);
}

/* Steps */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 6rem;
}

.step {
    flex: 1;
}

.step-num {
    font-size: 4rem;
    color: #ddd;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-arrow {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-arrows {
        display: none;
    }
    .steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* Footer */
.tech-footer {
    border-top: 2px solid var(--text-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* UI Mockup Styles */
.ui-mockup-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0, 0.2);
    color: #F0F0F0;
}

.ui-mockup-header {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ui-dots {
    display: flex;
    gap: 6px;
}

.ui-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.ui-address-bar {
    background: #000;
    flex: 1;
    padding: 4px 12px;
    border-radius: 4px;
    color: #666;
    font-size: 0.8rem;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ui-mockup-body {
    padding: 2rem;
    font-family: var(--font-display);
    position: relative;
    z-index: 2;
    text-align: left;
    background: #050505;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.dash-nav {
    display: flex;
    gap: 2rem;
    color: #666;
}

.dash-nav span.active {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dash-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dash-search {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #888;
    background: #050505;
}

.prompt-char {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.cursor-block {
    display: inline-block;
    width: 8px;
    background: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card {
    border: 1px solid #333;
    padding: 1rem;
    background: #0A0A0A;
}

.dash-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-avatar {
    width: 32px;
    height: 32px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
}

.dash-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #F0F0F0;
}

.role {
    font-size: 0.7rem;
    color: #666;
}

.dash-light {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
}

.dash-light.active {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.dash-status-text {
    font-size: 0.8rem;
    color: #CCC;
}

.dash-status-text.dim {
    color: #444;
}

.dash-activity {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.activity-header {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.activity-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #F0F0F0;
}

.activity-content p {
    font-size: 0.8rem;
    color: #888;
}

.ui-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}
