:root {
    --bg-color: #090909;
    --steel-color: #242424;
    --orange-color: #ff7a00;
    --glow-color: #ffb347;
    --white-color: #f5f5f5;
    --blue-accent: #4aa8ff;
    --text-muted: #888;
    --glass-bg: rgba(36, 36, 36, 0.4);
    --transition-speed: 0.4s;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--white-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

#forge-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.accent-orange { color: var(--orange-color); }
.molten-text { color: var(--glow-color); text-shadow: 0 0 10px var(--orange-color); }
.hidden { display: none !important; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 9, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--steel-color);
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#forge-logo-container {
    width: 50px;
    height: 60px;
}

#forge-logo {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 1.25rem;
    color: var(--white-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--white-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--orange-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--glow-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
    background-color: var(--steel-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-outline {
    border: 1px solid var(--steel-color);
    color: var(--white-color);
}

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

.full-width { width: 100%; }

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

h1.reveal-text {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.subheading {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

/* Features Section */
#features {
    padding: 10rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--steel-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255, 122, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

/* Vision Section */
#vision {
    padding: 15rem 0;
    background: linear-gradient(to bottom, transparent, #111, transparent);
}

.large-type {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.supporting-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto;
}

/* Pipeline Section */
#architecture {
    padding: 10rem 0;
}

.pipeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    position: relative;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.stage-icon {
    width: 60px;
    height: 60px;
    background: var(--steel-color);
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.5s ease;
}

.pipeline-stage.active .stage-icon {
    border-color: var(--orange-color);
    background: var(--bg-color);
    box-shadow: 0 0 30px var(--orange-color);
    color: var(--orange-color);
}

.pipeline-connector {
    flex-grow: 1;
    height: 2px;
    background: #333;
    margin: 0 -10px;
    position: relative;
}

.pipeline-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--orange-color);
    transition: width 1s ease;
}

.pipeline-connector.active::after {
    width: 100%;
}

/* Roadmap Section */
#roadmap {
    padding: 10rem 0;
}

.timeline {
    max-width: 800px;
    margin: 5rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--steel-color);
}

.timeline-item {
    padding-left: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--steel-color);
}

.timeline-item.completed .timeline-dot {
    background: var(--orange-color);
    box-shadow: 0 0 10px var(--orange-color);
}

.timeline-item.active .timeline-dot {
    background: var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
    animation: pulse 2s infinite;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Waitlist Section */
#waitlist {
    padding: 10rem 0 15rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-form h2 {
    margin-bottom: 1rem;
}

.waitlist-form p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--steel-color);
    padding: 1rem;
    color: var(--white-color);
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--orange-color);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 5rem 0;
    border-top: 1px solid var(--steel-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-bottom {
    color: #444;
    font-size: 0.8rem;
    text-align: center;
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 1s ease; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.visible { opacity: 1; transform: translateY(0); }

/* Logo Animation States */
#hammer {
    transform-origin: 0% 50%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strike #hammer {
    animation: hammerStrike 0.6s ease-in-out forwards;
}

.strike #glow-rect {
    animation: moltenPulse 0.6s ease-in-out forwards;
}

@keyframes hammerStrike {
    0% { transform: translate(100px, 40px) rotate(0deg); }
    30% { transform: translate(100px, 40px) rotate(-45deg); }
    70% { transform: translate(100px, 40px) rotate(15deg); }
    100% { transform: translate(100px, 40px) rotate(0deg); }
}

@keyframes moltenPulse {
    0% { opacity: 0; }
    20% { opacity: 0.8; filter: blur(5px); }
    100% { opacity: 0; }
}

.shake {
    animation: shakeEffect 0.3s ease-in-out;
}

@keyframes shakeEffect {
    0% { transform: translate(50px, 100px); }
    25% { transform: translate(52px, 102px); }
    50% { transform: translate(48px, 98px); }
    75% { transform: translate(51px, 101px); }
    100% { transform: translate(50px, 100px); }
}

/* Responsive */
@media (max-width: 1024px) {
    h1.reveal-text { font-size: 4rem; }
    .large-type { font-size: 3rem; }
}

@media (max-width: 768px) {
    h1.reveal-text { font-size: 3rem; }
    .nav-links { display: none; } /* Mobile menu needed */
    .pipeline-flow { flex-direction: column; gap: 2rem; }
    .pipeline-connector { width: 2px; height: 40px; }
    .navbar .container { justify-content: center; }
}
