:root {
    --bg-base: #121018; 
    --bg-surface: #272530; 
    --border-color: #53505c; 
    --text-muted: #808080; 
    
    --accent-deep: #852500; 
    --accent-main: #ff862d; 
    --accent-bright: #ffaa3e; 
    
    --text-primary: #ffffff; 
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 6rem 2rem;
}

.compact-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* tightly packed */
    z-index: 10;
    position: relative;
}

/* Circuitry / Geometric Framework */
.circuit-grid {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.circuit-line {
    position: absolute;
    background-color: var(--border-color);
}

/* Left vertical spine */
.cl-1 {
    left: 10%;
    top: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
}

/* Branch off to objective */
.cl-2 {
    left: 10%;
    top: 45%;
    width: 35%;
    height: 1px;
}

/* Branch down to form */
.cl-3 {
    left: 45%;
    top: 45%;
    width: 1px;
    height: 30%;
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-main);
}

.cn-1 {
    left: calc(10% - 2.5px);
    top: 45%;
    transform: translateY(-2.5px);
}

.cn-2 {
    left: calc(45% - 2.5px);
    top: 75%;
    background-color: var(--accent-bright);
}

/* Sections */
.hero-section {
    will-change: transform;
    opacity: 0;
    animation: fadeIn 1s forwards 0.2s;
    margin-left: 20%;
}

.main-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
}

.tagline-section {
    max-width: 650px;
    margin-left: 15%;
    padding: 2rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--accent-main);
    border-left: 1px solid var(--border-color);
    position: relative;
    will-change: transform;
    opacity: 0;
    animation: fadeUp 1s forwards 0.4s;
}

/* Japanese minimalist accent corner for tagline */
.tagline-section::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-bright);
    border-right: 2px solid var(--accent-bright);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-bright);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.4rem); /* Kept elegant and small */
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.action-section {
    align-self: flex-end;
    width: 100%;
    max-width: 450px;
    margin-right: 5%;
    will-change: transform;
    opacity: 0;
    animation: fadeUp 1s forwards 0.6s;
}

.form-wrapper {
    background: transparent;
    padding: 2rem 0;
    position: relative;
}

/* Accent corner border for form */
.form-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-right: 2px solid var(--accent-main);
    border-bottom: 2px solid var(--accent-main);
    opacity: 0.7;
}

.form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    border-right: 1px solid var(--accent-deep);
    border-bottom: 1px solid var(--accent-deep);
}

.waitlist-prompt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.waitlist-prompt::before {
    content: '';
    width: 12px;
    height: 2px;
    background-color: var(--accent-bright);
    display: inline-block;
}

/* input logic */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.8rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    border-color: var(--accent-main);
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 134, 45, 0.1);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
}

.btn-primary:hover::before {
    left: 0;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 1.2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-status.visible {
    opacity: 1;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--border-color);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .circuit-grid { display: none; }
    .hero-section { margin-left: 0; text-align: center; }
    .tagline-section { margin-left: 0; }
    .action-section { align-self: center; margin-right: 0; }
    main { padding: 4rem 1.5rem; }
}
