/* quirk.one - Blobitecture meets precision tech */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Playfair Display (headings), Inter (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #f5f0e8;
    background-color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Circuit Overlay */
#circuit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.4s ease;
}

#main-nav.nav-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo-quirk {
    color: #f5f0e8;
    font-family: "Playfair Display", serif;
}

.logo-dot {
    color: #e8b84b;
}

.logo-one {
    color: #4a90d9;
    font-family: "Playfair Display", serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: #f5f0e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #e8b84b;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    opacity: 0.7;
}

.blob-1 {
    width: 700px;
    height: 700px;
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 550px;
    height: 550px;
    bottom: -5%;
    left: -5%;
}

.blob-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 40%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 32px;
}

.title-line {
    display: block;
}

.title-line-1 {
    font-size: 48px;
    color: #6c757d;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.title-line-2 {
    font-size: 80px;
    color: #f5f0e8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.title-line-3 {
    font-size: 80px;
    color: #f5f0e8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.title-line-3 em {
    font-style: italic;
    color: #e8b84b;
}

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

.hero-subtitle {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.cta-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #e8b84b;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-primary:hover {
    background: #f5f0e8;
    box-shadow: 0 10px 40px rgba(232, 184, 75, 0.3);
}

.cta-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #f5f0e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.03em;
    border-radius: 50px;
    border: 1px solid rgba(245, 240, 232, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-secondary:hover {
    border-color: #4a90d9;
    color: #4a90d9;
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.2);
}

/* Zoom Focus Interaction */
.zoom-focus {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-focus.zoom-active {
    transform: scale(1.05);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #e8b84b, transparent);
    animation: scrollPulse 2s ease infinite;
}

.scroll-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6c757d;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Section Base Styles */
.section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-dark {
    background: rgba(0, 0, 0, 0.2);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #e8b84b;
    margin-bottom: 16px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: #f5f0e8;
}

.section-title em {
    font-style: italic;
    color: #e8b84b;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-size: 22px;
    line-height: 1.6;
    color: #f5f0e8;
    margin-bottom: 24px;
    font-weight: 300;
}

.about-text p:last-child {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.8;
}

.about-blob-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.about-blob {
    position: absolute;
    width: 100%;
    height: 100%;
}

.about-code-block {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    padding: 28px 32px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-keyword { color: #4a90d9; }
.code-prop { color: #e8b84b; }
.code-value { color: #e8b84b; }
.code-string { color: #4a90d9; }
.code-func { color: #e8b84b; }

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    border-radius: 20px;
    padding: 48px 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(2).visible { transition-delay: 0.1s; }
.feature-card:nth-child(3).visible { transition-delay: 0.2s; }
.feature-card:nth-child(4).visible { transition-delay: 0.3s; }

.feature-card:hover {
    background: rgba(245, 240, 232, 0.06);
    border-color: rgba(232, 184, 75, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.feature-desc {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
}

/* Showcase Section */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.showcase-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.showcase-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-card:hover {
    border-color: rgba(74, 144, 217, 0.3);
}

.showcase-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.showcase-visual {
    background: rgba(26, 26, 46, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 32px;
}

.showcase-visual-code {
    background: rgba(0, 0, 0, 0.3);
}

.showcase-visual-pattern {
    background: rgba(0, 0, 0, 0.2);
}

.showcase-blob {
    width: 100%;
    height: auto;
}

.showcase-code {
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #f5f0e8;
}

.node-network {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#network-canvas {
    width: 100%;
    height: 200px;
}

.showcase-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4a90d9;
    margin-bottom: 12px;
}

.showcase-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.showcase-info p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-text {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-cta-group {
    margin-bottom: 60px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e8b84b;
    margin-bottom: 8px;
}

.contact-value {
    color: #f5f0e8;
    font-size: 16px;
}

/* Footer */
#footer {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 32px;
}

.footer-bottom {
    font-size: 13px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .title-line-1 { font-size: 32px; }
    .title-line-2, .title-line-3 { font-size: 48px; }
    .hero-subtitle { font-size: 16px; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .section { padding: 80px 0; }
    .section-title { font-size: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-card-wide { grid-template-columns: 1fr; }
    .contact-details { flex-direction: column; gap: 24px; }
}