/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kitsune-orange: #ff6b35;
    --orange-light: #ff8c61;
    --orange-glow: rgba(255, 107, 53, 0.15);
    --bg-light: #fafafa;
    --bg-lighter: #ffffff;
    --grid-color: rgba(0, 0, 0, 0.03);
    --grid-accent: rgba(255, 107, 53, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #6a6a6a;
    --blueprint-line: rgba(255, 107, 53, 0.4);
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Blueprint grid background */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(var(--grid-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-accent) 1px, transparent 1px);
    background-size:
        20px 20px,
        20px 20px,
        100px 100px,
        100px 100px;
    z-index: 0;
    pointer-events: none;
}

/* Technical annotations */
.annotations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.annotation.top-left {
    top: 40px;
    left: 40px;
}

.annotation.top-right {
    top: 40px;
    right: 40px;
}

.dimension-line {
    width: 30px;
    height: 1px;
    background: var(--kitsune-orange);
    position: relative;
}

.dimension-line::before,
.dimension-line::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 5px;
    background: var(--kitsune-orange);
}

.dimension-line::before {
    left: 0;
    top: -2px;
}

.dimension-line::after {
    right: 0;
    top: -2px;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Logo section */
.logo-section {
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    display: block;
    filter: drop-shadow(0 0 20px var(--orange-glow));
    border-radius: 20px;
}

/* Hero section */
.hero {
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.brand-name {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    color: var(--text-secondary);
    position: relative;
}

/* Message card - "note left on the table" aesthetic */
.message-card {
    background: var(--bg-lighter);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--kitsune-orange);
    padding: 40px 50px;
    margin: 40px 0;
    position: relative;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 107, 53, 0.1);
}

.message-card::before {
    content: '//';
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--kitsune-orange);
    font-size: 0.8rem;
    opacity: 0.5;
}

.message-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.message-card p:last-child {
    margin-bottom: 0;
}

.message-card .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 400;
}

.message-card .accent {
    color: var(--kitsune-orange);
    font-style: italic;
    margin-top: 1.5rem;
}

/* Blueprint diagram */
.blueprint-diagram {
    margin-top: 80px;
    width: 100%;
    max-width: 800px;
    opacity: 0.6;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

.blueprint-diagram svg {
    width: 100%;
    height: auto;
}

.node-main {
    fill: none;
    stroke: var(--kitsune-orange);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px var(--orange-glow));
}

.node {
    fill: none;
    stroke: var(--blueprint-line);
    stroke-width: 1.5;
}

.connection {
    stroke: var(--blueprint-line);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
}

.node-label {
    fill: var(--kitsune-orange);
    font-size: 12px;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.node-label-sm {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    margin-top: auto;
}

.note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.6;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .logo-section {
        margin-bottom: 40px;
    }

    .message-card {
        padding: 30px 25px;
    }

    .message-card p {
        font-size: 1rem;
    }

    .message-card .lead {
        font-size: 1.15rem;
    }

    .blueprint-diagram {
        margin-top: 60px;
    }

    .annotation {
        font-size: 0.6rem;
    }

    .annotation.top-left,
    .annotation.top-right {
        top: 20px;
    }

    .annotation.top-left {
        left: 20px;
    }

    .annotation.top-right {
        right: 20px;
    }
}

/* Hover effects */
.message-card {
    transition: all 0.3s ease;
}

.message-card:hover {
    border-left-width: 5px;
    box-shadow:
        0 6px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 107, 53, 0.2),
        -5px 0 20px rgba(255, 107, 53, 0.15);
}

/* Cursor enhancement for that engineering feel */
body {
    cursor: crosshair;
}

.message-card {
    cursor: default;
}
