:root {
    --bg: #060608;
    --bg1: #0c0d10;
    --bg2: #12131a;
    --bg3: #1a1b24;

    --line: #ffffff0f;
    --line2: #ffffff1a;

    --accent: #7fffb2;
    --accent2: #5de8ff;
    --accent-dim: #7fffb230;

    --text: #e8eaf0;
    --muted: #5a5d6e;
    --muted2: #3a3d4a;

    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
}

/* ======================================================
   Base
====================================================== */

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

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}


::selection {
    background-color: var(--accent);
    color: var(--muted2);
}
  
  /* Older Mozilla Firefox versions */
::-moz-selection {    
    background-color: var(--accent);
    color: var(--muted2);
}

/* ======================================================
   Open Popup Button
====================================================== */

.open-popup-btn {
    background: linear-gradient(135deg,
            var(--accent),
            var(--accent2));
    color: #04110a;
    border: none;
    height: 56px;
    padding: 0 28px;
    /* border-radius: 16px; */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px #7fffb240;
}

.custom-date-input::placeholder {
    color: var(--muted2);
    opacity: 1;
}

.custom-select {
    color: var(--muted2);
}

.custom-select:invalid {
    color: var(--muted2);
}
  
.custom-select option {
    color: var(--muted);
}

/* ======================================================
   Overlay
====================================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: #00000090;
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup-overlay:before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* ======================================================
   Popup Card
====================================================== */

.popup {
    width: 100%;
    max-width: 430px;
    background: linear-gradient(180deg,
            var(--bg2),
            var(--bg1));
    border: 1px solid var(--line2);
    border-radius: 1px;
    padding: 32px;
    position: relative;
    animation: popupShow .3s ease;
    box-shadow:
        0 30px 80px #00000090,
        0 0 40px #7fffb210;
}

/* Glow Border */

.popup::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(135deg,
            #7fffb240,
            #5de8ff20,
            transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* ======================================================
   Animation
====================================================== */

@keyframes popupShow {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

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

.accentColor {
    color: var(--accent);
}
/* input[type="date"] */
.custom-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}


/* ======================================================
   Close Button
====================================================== */

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line2);
    background: var(--bg3);
    color: var(--muted);
    cursor: pointer;
    transition: .2s;
}

.close-btn:hover {
    background: #1d2029;
    color: var(--text);
}

/* ======================================================
   Badge
====================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #7fffb212;
    border: 1px solid #7fffb225;
    color: var(--accent);
    font-size: 12px;
    font-family: var(--mono);
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ======================================================
   Text
====================================================== */

h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
}

/* ======================================================
   Inputs
====================================================== */

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
    font-family: var(--mono);
}

input,
select {
    width: 100%;
    height: 54px;
    border-radius: 3px;
    border: 1px solid var(--line2);
    background: var(--bg3);
    color: var(--text);
    padding: 0 16px;
    outline: none;
    transition: .25s;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 4px var(--accent-dim);
}

input::placeholder {
    color: var(--muted2);
}

/* ======================================================
   Button
====================================================== */

.book-btn {
    width: 100%;
    height: 56px;
    margin-top: 10px;
    border: none;
    border-radius: 3px;
    background:
        linear-gradient(135deg,
            var(--accent),
            var(--accent2));

    color: #04110a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px #7fffb240;
}

/* ======================================================
   Messages
====================================================== */

#result {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.success {
    color: var(--accent);
}

.error {
    color: #ff7d7d;
}

#noSlots {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #ff727210;
    border: 1px solid #ff727230;
    color: #ff9d9d;
    font-size: 14px;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 60px;
    border-bottom: 1px solid var(--line2);
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(12px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px
}

.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-decoration: none;
}

.nav-logo span {
    color: var(--muted)
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(127, 255, 178, 0.4)
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(127, 255, 178, 0)
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px
}

.nav-link {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.2s
}

.nav-link:hover {
    color: var(--text)
}

.nav-btn {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 7px 18px;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 500;
}

.nav-btn:hover {
    opacity: 0.85
}

/* SECTIONS */
section {
    position: relative;
    z-index: 1
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 48px 60px;
    border-bottom: 1px solid var(--line2);
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    min-width: 300px
}

.hero-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent)
}

.hero-h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-h1 strong {
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 40px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn-solid {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--bg);
    background: var(--accent);
    border: none;
    padding: 13px 28px;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: opacity 0.3s;
    transform: translate(.4s);
}

.btn-solid:hover {
    opacity: 0.85
}

.btn-outline {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line2);
    padding: 13px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--muted2);
    color: var(--text)
}

/* LIVE FEED */
.hero-right {
    width: 340px;
    flex-shrink: 0;
    border: 1px solid var(--line2);
    background: var(--bg1);
    font-family: var(--mono);
}

.feed-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feed-title {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.15em
}

.feed-live {
    font-size: 10px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px
}

.feed-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite
}

.feed-body {
    padding: 12px 0;
    height: 220px;
    overflow: hidden;
    position: relative
}

.feed-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(transparent, var(--bg1));
    pointer-events: none;
}

.feed-line {
    padding: 5px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: feedSlide 0.4s ease;
}

@keyframes feedSlide {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

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

.feed-time {
    font-size: 10px;
    color: var(--muted2);
    flex-shrink: 0;
    margin-top: 1px
}

.feed-msg {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5
}

.feed-msg .ok {
    color: var(--accent)
}

.feed-msg .info {
    color: var(--accent2)
}

.feed-msg .warn {
    color: #ffb86c
}

.feed-stats {
    border-top: 1px solid var(--line2);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line2);
}

.fstat {
    background: var(--bg1);
    padding: 10px 12px
}

.fstat-n {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent)
}

.fstat-l {
    font-size: 9px;
    color: var(--muted2);
    letter-spacing: 0.1em;
    margin-top: 2px
}

/* TICKER */
.ticker {
    border-top: 1px solid var(--line2);
    border-bottom: 1px solid var(--line2);
    overflow: hidden;
    height: 38px;
    background: var(--bg1);
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: tickerMove 25s linear infinite;
}

.ticker-item {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    padding: 0 32px;
    letter-spacing: 0.06em;
    border-right: 1px solid var(--line2);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
}

.ticker-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent)
}

@keyframes tickerMove {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ── PROJECTS ── */
.projects {
    padding: 80px 48px;
    border-bottom: 1px solid var(--line2)
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 48px;
}

.section-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: 0.15em
}

.section-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.01em
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line2)
}

.proj {
    background: var(--bg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.proj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj:hover {
    background: var(--bg1)
}

.proj:hover::before {
    transform: scaleX(1)
}

.proj-id {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.proj-badge {
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    background: var(--accent-dim);
    color: var(--accent);
}

.proj-name {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.3
}

.proj-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 24px
}

.proj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.chip {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--muted2);
    border: 1px solid var(--line2);
    padding: 4px 10px;
}

.proj-diagram {
    margin: 20px 0;
    padding: 14px;
    background: var(--bg2);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    border-left: 2px solid var(--accent-dim);
}

.pd-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 2
}

.pd-node {
    padding: 3px 8px;
    border: 1px solid var(--line2);
    color: var(--muted);
    background: var(--bg3);
}

.pd-node.hi {
    border-color: rgba(127, 255, 178, 0.3);
    color: var(--accent)
}

.pd-arr {
    color: var(--muted2);
    font-size: 9px
}

/* ── HOW ── */
.how {
    padding: 80px 48px;
    border-bottom: 1px solid var(--line2);
    background: var(--bg1)
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border: 1px solid var(--line2)
}

.step {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line2);
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background 0.2s;
    cursor: default;
}

.step:last-child {
    border-bottom: none
}

.step:hover {
    background: var(--bg2)
}

.step-n {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.15em;
    flex-shrink: 0;
    margin-top: 3px;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px
}

.step-body {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7
}

.how-right {}

.how-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 500px
}

.tech-block {
    border: 1px solid var(--line2);
    background: var(--bg)
}

.tech-header {
    padding: 10px 18px;
    border-bottom: 1px solid var(--line2);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: 0.15em;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line2)
}

.tech-item {
    background: var(--bg);
    padding: 18px 20px;
    transition: background 0.2s;
}

.tech-item:hover {
    background: var(--bg2)
}

.tech-name {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px
}

.tech-role {
    font-size: 11px;
    color: var(--muted2)
}

/* ── ABOUT ── */
.about {
    padding: 80px 48px;
    border-bottom: 1px solid var(--line2)
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start
}

.about-body {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px
}

.about-body strong {
    color: var(--text);
    font-weight: 500
}

.manifesto {
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 32px;
}

.manifesto-line {
    margin-bottom: 4px
}

.manifesto-line .c {
    color: var(--accent2)
}

.manifesto-line .s {
    color: var(--accent)
}

.manifesto-line .k {
    color: var(--muted2)
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line2);
    border: 1px solid var(--line2)
}

.metric {
    background: var(--bg);
    padding: 28px 24px;
}

.metric-n {
    font-family: var(--mono);
    font-size: 2.8rem;
    font-weight: 300;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-l {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em
}

/* ── CTA ── */
.cta {
    padding: 100px 48px;
    text-align: center;
    background: var(--bg1);
    border-bottom: 1px solid var(--line2);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(127, 255, 178, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.cta-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 24px;
}

.cta-h {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.01em
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.75
}

.cta-email {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
}

.cta-email a {
    color: var(--accent2);
    text-decoration: none;
    border-bottom: 1px solid rgba(93, 232, 255, 0.3)
}

.cta-email a:hover {
    border-color: var(--accent2)
}

/* FOOTER */
footer {
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line2);
}

.footer-logo {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted2);
    letter-spacing: 0.1em
}

.footer-copy {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: 0.1em
}

.footer-link {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.2s
}

.footer-link:hover {
    color: var(--accent)
}

/* FADE IN */
.fi {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease
}

.fi.in {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    nav {
        padding: 0 20px
    }

    .hero,
    .projects,
    .how,
    .about,
    .cta {
        padding-left: 20px;
        padding-right: 20px
    }

    .hero-right,
    .how-grid,
    .about-grid {
        grid-column: 1/-1
    }

    .proj-grid {
        grid-template-columns: 1fr
    }

    .how-grid {
        grid-template-columns: 1fr
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .hero-right {
        width: 100%
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px
    }

    .nav-right .nav-link {
        display: none
    }
}