/* xity.dev - Coastal Dark-Academia HUD City Dev */
/* Colors: #1a1a2e, #4a90d9, #e8b84b, #f5f0e8, #6c757d */
/* Font: Inter */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --accent-gold: #e8b84b;
    --warm-white: #f5f0e8;
    --muted-gray: #6c757d;
    --crystal-blue: #6ba3e0;
    --dark-panel: rgba(26, 26, 46, 0.85);
    --hud-border: rgba(74, 144, 217, 0.3);
    --hud-glow: rgba(74, 144, 217, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Watercolor Canvas Background */
#watercolor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Crystalline Overlay */
#crystalline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

#crystal-svg {
    width: 100%;
    height: 100%;
}

/* HUD Frame */
#hud-frame {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HUD Header */
#hud-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0.7) 80%, transparent 100%);
    border-bottom: 1px solid var(--hud-border);
}

.hud-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.hud-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a90d9;
}

.hud-dot.pulse {
    animation: dotPulse 2s ease-in-out infinite;
}

.hud-dot.pulse-alt {
    background: #e8b84b;
    animation: dotPulse 2s ease-in-out infinite 1s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.hud-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #6c757d;
    text-transform: uppercase;
}

.hud-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-x {
    color: #e8b84b;
    font-weight: 900;
    font-size: 24px;
}

.logo-ity {
    color: #f5f0e8;
}

.logo-dot {
    color: #4a90d9;
}

.logo-dev {
    color: #4a90d9;
    font-weight: 400;
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.hud-corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid #4a90d9;
    border-left: 2px solid #4a90d9;
}

.hud-corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid #4a90d9;
    border-right: 2px solid #4a90d9;
}

.hud-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #4a90d9;
    border-left: 2px solid #4a90d9;
}

.hud-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #4a90d9;
    border-right: 2px solid #4a90d9;
}

/* Main Content */
#hud-main {
    flex: 1;
    padding-top: 60px;
}

/* Variable Fluid Typography */
.fluid-heading {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-variation-settings: "wght" 900;
}

.fluid-subheading {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variation-settings: "wght" 700;
}

/* Hero Section */
#hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 40px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease-out forwards;
}

.hero-line-1 {
    color: #f5f0e8;
    animation-delay: 0.2s;
}

.hero-line-2 {
    color: #4a90d9;
    animation-delay: 0.5s;
}

.hero-line-3 {
    color: #e8b84b;
    animation-delay: 0.8s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    color: #6c757d;
    max-width: 600px;
    margin: 32px auto 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-hud-data {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 48px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    flex-wrap: wrap;
}

.hud-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border: 1px solid var(--hud-border);
    background: var(--dark-panel);
    position: relative;
}

.hud-data-item::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(74,144,217,0.1), transparent);
    pointer-events: none;
}

.data-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #4a90d9;
    text-transform: uppercase;
}

.data-value {
    font-size: 14px;
    font-weight: 700;
    color: #f5f0e8;
    font-variant-numeric: tabular-nums;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #4a90d9, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-text {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #6c757d;
}

/* Features Section */
#features-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-hud-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #4a90d9;
    text-transform: uppercase;
}

.hud-bracket {
    color: #e8b84b;
    font-size: 14px;
}

.section-title {
    color: #f5f0e8;
    margin-bottom: 60px;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    position: relative;
    background: var(--dark-panel);
    border: 1px solid var(--hud-border);
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.15), 0 0 80px rgba(232, 184, 75, 0.05);
    border-color: rgba(74, 144, 217, 0.5);
}

.card-hud-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90d9, #e8b84b, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .card-hud-border {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.card-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.card-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(74, 144, 217, 0.15);
}

.card-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e8b84b;
    padding: 3px 8px;
    border: 1px solid rgba(232, 184, 75, 0.3);
}

.card-version {
    font-size: 11px;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
}

/* Data Section */
#data-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.data-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .data-panels {
        grid-template-columns: 1fr;
    }
}

.data-panel {
    background: var(--dark-panel);
    border: 1px solid var(--hud-border);
    padding: 24px;
    position: relative;
}

.data-panel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90d9, transparent);
    opacity: 0.5;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #f5f0e8;
    text-transform: uppercase;
}

.panel-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e8b84b;
    padding: 2px 8px;
    border: 1px solid rgba(232, 184, 75, 0.3);
    background: rgba(232, 184, 75, 0.05);
}

.panel-chart {
    height: 120px;
    margin-bottom: 16px;
    position: relative;
}

.panel-chart canvas {
    width: 100%;
    height: 100%;
}

.panel-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #f5f0e8;
    font-variant-numeric: tabular-nums;
}

.stat-positive {
    color: #4a90d9;
}

.stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #6c757d;
    text-transform: uppercase;
}

/* About Section */
#about-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-paragraph {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.8;
    margin-top: 20px;
}

.about-paragraph:first-of-type {
    margin-top: 24px;
}

.crystal-model {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-crystal-svg {
    width: 100%;
    height: 100%;
}

/* CTA Section */
#cta-section {
    padding: 120px 24px;
    text-align: center;
    position: relative;
}

#cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a90d9, transparent);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-heading {
    color: #f5f0e8;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cta-btn-primary {
    background: #4a90d9;
    color: #1a1a2e;
}

.cta-btn-primary:hover {
    background: #5da0e6;
    box-shadow: 0 0 30px rgba(74, 144, 217, 0.3);
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: transparent;
    color: #f5f0e8;
    border: 1px solid var(--hud-border);
}

.cta-btn-secondary:hover {
    border-color: #e8b84b;
    color: #e8b84b;
    box-shadow: 0 0 20px rgba(232, 184, 75, 0.1);
    transform: translateY(-2px);
}

.btn-hud {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.6;
}

/* HUD Footer */
#hud-footer {
    position: relative;
    padding: 16px 24px;
    border-top: 1px solid var(--hud-border);
    background: rgba(26, 26, 46, 0.9);
}

.hud-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hud-footer-item {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #6c757d;
    text-transform: uppercase;
}

/* Section Animations */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Watercolor wash gradient overlays */
#hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(232, 184, 75, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(74, 144, 217, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

#features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(232, 184, 75, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Scanline effect for HUD feel */
#hud-frame::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(74, 144, 217, 0.008) 2px,
        rgba(74, 144, 217, 0.008) 4px
    );
    pointer-events: none;
    z-index: 99;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hud-status-bar {
        flex-direction: column;
        gap: 8px;
    }

    .hero-hud-data {
        gap: 12px;
    }

    .hud-data-item {
        padding: 8px 14px;
    }

    .hud-footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    #hud-header {
        padding: 8px 16px;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }
}
