/* ============================================
   ECG Landing Page - Minimal NieR-Inspired
   ============================================ */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;

    --text-primary: #e8e6e3;
    --text-secondary: #a09d98;
    --text-muted: #5a5855;

    --accent-warm: #c9b99a;
    --accent-glow: #d4c4a5;
    --accent-edge: #e8dcc4;

    --border-subtle: rgba(200, 185, 154, 0.1);
    --border-strong: rgba(200, 185, 154, 0.25);

    --font-display: 'Outfit', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --base-size: 14.4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: var(--base-size);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ============================================
   Background
   ============================================ */
#generative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 11, 0.7);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--accent-warm);
}

.brand-tag {
    font-size: 0.6rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: #7088a8;
    opacity: 0.7;
}

.nav-cta {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    padding: 0.5em 1em;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-warm);
    color: var(--bg-primary);
    border-color: var(--accent-warm);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

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

.hero-title {
    font-family: var(--font-display);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-small {
    display: block;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 200;
    color: var(--text-secondary);
}

.title-ecg {
    color: var(--accent-edge);
    font-weight: 300;
    text-shadow: 0 0 40px rgba(232, 220, 196, 0.15);
}





.hero-typed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    height: 1.5em;
}

.typed-prefix {
    color: var(--accent-warm);
    opacity: 0.6;
}

.typed-text {
    color: var(--text-secondary);
}

.typed-cursor {
    color: var(--accent-warm);
    animation: blink 1s step-end infinite;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1em 2.5em;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
    text-transform: lowercase;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-warm);
    color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(201, 185, 154, 0.1);
    animation: subtlePulse 6s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(201, 185, 154, 0.08);
    }

    50% {
        box-shadow: 0 2px 10px rgba(201, 185, 154, 0.12);
    }
}

.btn-primary:hover {
    background: var(--accent-glow);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(201, 185, 154, 0.18);
    color: #0a0a0b;
    animation: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover svg {
    transform: translateY(1px);
}

/* Download Button - Official Release Styling */
.btn-download {
    gap: 0.75rem;
}

.btn-download .btn-icon {
    opacity: 0.9;
}

.btn-download .btn-label {
    font-weight: 400;
}

.btn-download .btn-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 0.25em 0.6em;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    color: inherit;
    opacity: 0.65;
}

/* ============================================
   Capabilities
   ============================================ */
.capabilities {
    position: relative;
    z-index: 2;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cap-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    opacity: 0.5;
}

.cap-item {
    white-space: nowrap;
}

.cap-value {
    color: var(--accent-warm);
    opacity: 0.7;
}

.cap-dot {
    color: var(--text-muted);
    font-size: 0.5rem;
    opacity: 0.4;
}

/* ============================================
   Feature Showcase
   ============================================ */
.showcase {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 29, 0.3) 50%, transparent 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    animation: showcaseFadeIn 0.8s ease forwards;
}

.showcase-item:nth-child(1) {
    animation-delay: 0.5s;
}

.showcase-item:nth-child(2) {
    animation-delay: 0.65s;
}

.showcase-item:nth-child(3) {
    animation-delay: 0.8s;
}

.showcase-item:nth-child(4) {
    animation-delay: 0.95s;
}

@keyframes showcaseFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Geometric Art Container */
.geo-art {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature 1: Precision - Layered Squares */
.geo-control .geo-layer {
    position: absolute;
    border: 1px solid var(--accent-warm);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.geo-control .layer-1 {
    width: 60px;
    height: 60px;
    transform: rotate(0deg);
    animation: layerRotate1 12s ease-in-out infinite;
}

.geo-control .layer-2 {
    width: 45px;
    height: 45px;
    transform: rotate(15deg);
    animation: layerRotate2 12s ease-in-out infinite;
    opacity: 0.5;
}

.geo-control .layer-3 {
    width: 30px;
    height: 30px;
    transform: rotate(30deg);
    animation: layerRotate3 12s ease-in-out infinite;
    opacity: 0.7;
}

.geo-control .geo-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-warm);
    opacity: 0.8;
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes layerRotate1 {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(45deg);
    }
}

@keyframes layerRotate2 {

    0%,
    100% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-30deg);
    }
}

@keyframes layerRotate3 {

    0%,
    100% {
        transform: rotate(30deg);
    }

    50% {
        transform: rotate(75deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* Feature 2: Flow - Streaming Lines */
.geo-extract .geo-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--accent-warm) 50%, transparent 100%);
    border-radius: 1px;
}

.geo-extract .stream-1 {
    left: 25px;
    height: 50px;
    opacity: 0.4;
    animation: streamFlow 2.5s ease-in-out infinite;
}

.geo-extract .stream-2 {
    left: 40px;
    height: 60px;
    opacity: 0.6;
    animation: streamFlow 2.5s ease-in-out infinite 0.3s;
}

.geo-extract .stream-3 {
    left: 55px;
    height: 45px;
    opacity: 0.3;
    animation: streamFlow 2.5s ease-in-out infinite 0.6s;
}

.geo-extract .geo-node {
    position: absolute;
    bottom: 10px;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent-warm);
    border-radius: 50%;
    opacity: 0.6;
    animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes streamFlow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.7;
    }
}

@keyframes nodeGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 185, 154, 0);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(201, 185, 154, 0.3);
    }
}

/* Feature 3: Adapt - Grid Pattern */
.geo-modes .geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 54px;
    height: 54px;
}

.geo-modes .grid-cell {
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent-warm);
    opacity: 0.2;
    transition: all 0.4s ease;
}

.geo-modes .grid-cell.active {
    background: var(--accent-warm);
    opacity: 0.4;
    animation: cellPulse 4s ease-in-out infinite;
}

.geo-modes .grid-cell:nth-child(2).active {
    animation-delay: 0.5s;
}

.geo-modes .grid-cell:nth-child(5).active {
    animation-delay: 1s;
}

.geo-modes .grid-cell:nth-child(6).active {
    animation-delay: 1.5s;
}

.geo-modes .grid-cell:nth-child(8).active {
    animation-delay: 2s;
}

@keyframes cellPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* Feature 4: Evolve - Concentric Rings */
.geo-evolve .geo-ring {
    position: absolute;
    border: 1px solid var(--accent-warm);
    border-radius: 50%;
    opacity: 0.3;
}

.geo-evolve .ring-1 {
    width: 60px;
    height: 60px;
    animation: ringExpand 4s ease-in-out infinite;
}

.geo-evolve .ring-2 {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    animation: ringExpand 4s ease-in-out infinite 0.5s;
}

.geo-evolve .ring-3 {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    animation: ringExpand 4s ease-in-out infinite 1s;
}

.geo-evolve .geo-core {
    width: 6px;
    height: 6px;
    background: var(--accent-warm);
    border-radius: 50%;
    opacity: 0.8;
}

@keyframes ringExpand {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Showcase Labels */
.showcase-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.label-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.label-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--accent-warm);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    opacity: 0.7;
}

/* Hover Effects */
.showcase-item:hover .geo-layer,
.showcase-item:hover .geo-stream,
.showcase-item:hover .grid-cell,
.showcase-item:hover .geo-ring {
    opacity: 0.8;
}

.showcase-item:hover .label-text {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .showcase {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .geo-art {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Access
   ============================================ */
.access {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    text-align: center;
}

.access-content {
    max-width: 400px;
    margin: 0 auto;
}

.access-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.access-form {
    display: inline-flex;
    align-items: stretch;
    margin-bottom: 1rem;
}

.access-input {
    width: 200px;
    height: 42px;
    padding: 0 1em;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.access-btn {
    height: 42px;
    padding: 0 1.2em;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: var(--accent-warm);
    color: var(--bg-primary);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.access-btn:hover {
    background: var(--accent-glow);
}

.access-input::placeholder {
    color: var(--text-muted);
}

.access-input:focus {
    outline: none;
    border-color: var(--accent-warm);
}

.access-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer .brand-text {
    font-size: 0.9rem;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .hero {
        min-height: 60vh;
        padding: 5rem 1.5rem 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cap-grid {
        gap: 2rem;
    }

    .access-form {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .access-input {
        width: 100%;
        max-width: 280px;
        border-right: 1px solid var(--border-subtle);
        border-radius: 4px;
    }

    .access-btn {
        border-radius: 4px;
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   Animations
   ============================================ */
.hero-content>* {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

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

.cap-line {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.4s;
}