/* transactology.xyz - Gold-Black Luxury with Circuit Patterns */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Commissioner */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Commissioner', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
}

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

.hero-left {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    color: #f5f0e8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: #6c757d;
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-right {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 240px;
    height: 240px;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.9s;
}

.hero-circuit-icon {
    width: 100%;
    height: 100%;
    animation: slowRotate 60s linear infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    border: 1px solid #e8b84b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
}

.pulse-ring-2 {
    animation-delay: 1.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6c757d;
}

.scroll-arrow {
    animation: bounceDown 2s ease-in-out infinite;
}

/* Draw Underline Animation */
.draw-underline {
    position: relative;
    display: inline;
}

.draw-underline::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    width: 0;
    height: 3px;
    background: #e8b84b;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.draw-underline.active::after {
    width: 100%;
}

/* Z-Pattern Sections */
.z-section {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.z-left .section-inner {
    flex-direction: row;
}

.z-right .section-inner {
    flex-direction: row-reverse;
}

.z-text {
    flex: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.z-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.z-visual {
    flex: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.z-visual.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #e8b84b;
    margin-bottom: 1rem;
}

.z-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f5f0e8;
}

.z-section p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 1rem;
}

.text-muted {
    color: #6c757d;
    opacity: 0.7;
    font-style: italic;
}

/* Stats */
.stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #e8b84b;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 0.4rem;
}

/* Visual Card */
.visual-card {
    background: rgba(232, 184, 75, 0.05);
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-circuit-lines svg {
    width: 100%;
    height: auto;
}

.card-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6c757d;
    text-align: center;
}

/* SVG Trace Animation */
.trace-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: traceDraw 1.5s ease forwards;
}

.node-pulse {
    animation: nodePulse 2s ease-in-out infinite;
}

/* Principle Grid */
.principle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.principle-cell {
    background: rgba(232, 184, 75, 0.04);
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.principle-cell:hover {
    border-color: rgba(232, 184, 75, 0.4);
    background: rgba(232, 184, 75, 0.08);
    transform: translateY(-4px);
}

.principle-cell svg {
    width: 48px;
    height: 48px;
}

.principle-cell span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e8b84b;
}

/* Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(232, 184, 75, 0.03);
    border-left: 2px solid #e8b84b;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
    background: rgba(232, 184, 75, 0.08);
    transform: translateX(8px);
}

.service-number {
    font-family: 'Commissioner', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: #e8b84b;
    opacity: 0.6;
    min-width: 2rem;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.4rem;
}

.service-content p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Transaction Visualization */
.transaction-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem;
}

.tx-node {
    width: 100px;
    height: 100px;
    border: 2px solid #e8b84b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 184, 75, 0.06);
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tx-node:hover {
    background: rgba(232, 184, 75, 0.15);
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.2);
}

.tx-node span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #e8b84b;
}

.tx-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #e8b84b, rgba(232, 184, 75, 0.2));
}

/* Full Section (Insights) */
.full-section {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(232, 184, 75, 0.03), transparent);
}

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

.full-section .section-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #e8b84b;
    margin-bottom: 1rem;
}

.full-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f5f0e8;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: rgba(232, 184, 75, 0.04);
    border: 1px solid rgba(232, 184, 75, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}

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

.insight-card:hover {
    border-color: rgba(232, 184, 75, 0.35);
    background: rgba(232, 184, 75, 0.08);
    transform: translateY(-4px);
}

.insight-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.insight-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.insight-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e8b84b;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(232, 184, 75, 0.3);
    border-radius: 20px;
}

/* Footer */
#footer {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem 3rem;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #f5f0e8;
}

.gold-dot {
    color: #e8b84b;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: #6c757d;
    margin-top: 0.5rem;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.9rem;
    font-weight: 300;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #f5f0e8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 184, 75, 0.08);
    font-size: 0.8rem;
    font-weight: 300;
    color: #6c757d;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slowRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes traceDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.6;
        r: 4;
    }
    50% {
        opacity: 1;
        r: 6;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-right {
        flex: 0 0 auto;
    }

    .section-inner {
        flex-direction: column !important;
    }

    .z-right .section-inner {
        flex-direction: column !important;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .stat-row {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .principle-grid {
        grid-template-columns: 1fr 1fr;
    }

    .transaction-visualization {
        padding: 1rem;
    }

    .tx-node {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 600px) {
    .principle-grid {
        grid-template-columns: 1fr;
    }

    .z-section {
        padding: 5rem 1.5rem;
    }

    .full-section {
        padding: 5rem 1.5rem;
    }
}
