:root {
    /* Color Palette */
    --bg-void: #050505;
    --bg-panel: #0a0a0c;
    --bg-panel-hover: #121214;
    --border: #222224;

    --indigo: #6366f1;
    --emerald: #10b981;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --cyan: #22d3ee;

    --text-primary: #eeeeee;
    --text-secondary: #888888;

    /* Marker Colors */
    --marker-yellow: #fcd34d;
    --marker-pink: #f472b6;
    --marker-blue: #60a5fa;

    /* Fonts */
    --font-head: "Inter", sans-serif;
    --font-code: "JetBrains Mono", monospace;
    --font-hand: "Kalam", cursive;

    /* Grid Configuration */
    --grid-size: 40px;
    --grid-color: rgba(255, 255, 255, 0.035);
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-head);
    line-height: 1.6;
    overflow-x: hidden;

    /* Technical Grid Pattern */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: center top;
}

/* Symmetric Container */
.container {
    max-width: 1040px; /* Matches grid width alignment */
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    background-color: var(--bg-void);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    box-shadow: 0 0 150px rgba(0, 0, 0, 0.8);
}

.mono {
    font-family: var(--font-code);
}
.text-indigo {
    color: var(--indigo);
}
.text-sec {
    color: var(--text-secondary);
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Navigation */
nav {
    height: 70px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 40px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-void);
}

.logo {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-void);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-panel);
}

/* Hero Section */
.hero {
    padding: 120px 40px 100px;
    position: relative;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--indigo);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 32px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Terminal Window */
.terminal-container {
    position: relative;
    margin-top: 40px;
}

.terminal {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.terminal-header {
    background: #111;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-red {
    background: #333;
}
.dot-yellow {
    background: #333;
}
.dot-green {
    background: #333;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
    min-height: 360px;
}

.cmd-line {
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 6px;

    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prompt {
    color: var(--text-secondary);
    margin-right: 10px;
    user-select: none;
    float: left;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--indigo);
    animation: blink 1s infinite;

    vertical-align: text-bottom;
    margin-bottom: 0px;
    margin-left: 1px;
}

/* Arrow System */
.arrow-wrapper {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-text {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 3px 3px 0px #000; /* Strong outline for contrast */
    white-space: nowrap;
    margin-bottom: -5px;
}

.arrow-svg {
    filter: drop-shadow(3px 3px 0px #000);
    overflow: visible;
}

/* Hero Arrow */
.arrow-hero {
    right: -110px;
    bottom: 40px;
    transform: rotate(-5deg);
}
.arrow-hero .arrow-text {
    color: var(--marker-yellow);
}
.arrow-hero path {
    stroke: var(--marker-yellow);
}

/* Stack Arrow */
.arrow-stack {
    left: -80px;
    top: -30px;
    transform: rotate(-10deg);
    align-items: flex-end; /* Text right-aligned relative to arrow */
}
.arrow-stack .arrow-text {
    color: var(--marker-pink);
    margin-right: 10px;
    margin-bottom: 0;
}
.arrow-stack path {
    stroke: var(--marker-pink);
}

/* Pricing Arrow */
.arrow-pricing {
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
}
.arrow-pricing .arrow-text {
    color: var(--marker-blue);
    margin-bottom: -5px;
}
.arrow-pricing path {
    stroke: var(--marker-blue);
}

/* Tech Stack */
.section-header {
    margin-bottom: 50px;
    position: relative;
}
.label {
    font-family: var(--font-code);
    color: var(--indigo);
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.stack-card {
    background: var(--bg-void);
    padding: 32px;
    transition: 0.2s;
}

.stack-card:hover {
    background: var(--bg-panel);
}
.stack-icon {
    color: var(--text-primary);
    margin-bottom: 16px;
}
.stack-title {
    font-family: var(--font-code);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.stack-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 40px;
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.plan-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.featured {
    border-color: var(--indigo);
    background: rgba(99, 102, 241, 0.04);
    z-index: 5;
}

.plan-card.featured::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--indigo);
    color: #fff;
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.plan-name {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--indigo);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.plan-price {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}
.plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    min-height: 48px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}
.feature-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #d4d4d8;
    align-items: flex-start;
}
.check-icon {
    color: var(--emerald);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ICP Section */
.icp-section {
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    padding: 80px 40px;
}

/* Footer */
footer {
    padding: 80px 40px 60px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

@media (max-width: 1100px) {
    .container,
    .nav-container {
        border-left: none;
        border-right: none;
        padding: 0 24px;
        max-width: 100%;
    }

    .hero {
        padding: 100px 24px 60px;
        border-bottom: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .stack-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-section {
        padding: 60px 24px;
    }

    .terminal-body {
        min-height: auto;
    }

    .terminal {
        margin-top: 60px;
    }

    /* --- MOBILE ARROWS CONFIG --- */
    .arrow-wrapper {
        display: flex !important;
        transform: scale(0.65);
        transform-origin: center center;
    }

    .arrow-hero {
        right: -40px;
        top: 80px;
        bottom: auto;
        transform: rotate(-5deg) scale(0.65);
    }

    .arrow-stack {
        left: -40px;
        top: -25px;
        align-items: flex-start;
        transform: rotate(-10deg) scale(0.65);
    }

    .arrow-pricing {
        bottom: -70px;
        left: 50%;
        transform: translateX(-50%) scale(0.65);
    }
}
