/* ===========================
   ZKIW Landing Page Styles
   Minimalist, High-Tech Design
   =========================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-black: #0a0a0a;
    --color-graphite: #1a1a1a;
    --color-grey-dark: #2a2a2a;
    --color-grey: #4a4a4a;
    --color-grey-light: #8a8a8a;
    --color-silver: #c8c8c8;
    --color-silver-light: #e8e8e8;
    --color-white: #ffffff;
    --color-accent: #6366f1;
    --color-accent-dark: #4f46e5;
    --color-accent-light: #818cf8;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-sm: 0.25rem;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-graphite);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ===========================
   Container & Layout
   =========================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* ===========================
   Header
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-silver-light);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-black);
}

.logo svg {
    color: var(--color-black);
}

.logo-text {
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav a {
    font-size: 0.9375rem;
    color: var(--color-grey);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: var(--color-black);
    border-bottom-color: var(--color-accent);
}

.nav-cta {
    padding: var(--spacing-xs) var(--spacing-md) !important;
    background: var(--color-black);
    color: var(--color-white) !important;
    border-radius: var(--border-radius-sm);
    border: none !important;
}

.nav-cta:hover {
    background: var(--color-graphite);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    padding: calc(70px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-silver-light);
    border: 1px solid var(--color-silver);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-grey);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-grey-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-grey);
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.hex-item {
    width: 100px;
    height: 100px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--color-silver-light) 0%, var(--color-white) 100%);
    border: 2px solid var(--color-silver);
    animation: float 6s ease-in-out infinite;
}

.hex-item:nth-child(1) { animation-delay: 0s; }
.hex-item:nth-child(2) { animation-delay: 1s; }
.hex-item:nth-child(3) { animation-delay: 2s; }
.hex-item:nth-child(4) { animation-delay: 3s; }
.hex-item:nth-child(5) { animation-delay: 4s; }
.hex-item:nth-child(6) { animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-graphite);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-silver);
}

.btn-secondary:hover {
    border-color: var(--color-black);
    background: var(--color-silver-light);
}

/* ===========================
   Steps Section
   =========================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.step {
    position: relative;
    padding: var(--spacing-md);
    text-align: center;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-silver);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 2px solid var(--color-silver-light);
    border-radius: var(--border-radius);
    color: var(--color-black);
    transition: var(--transition);
}

.step:hover .step-icon {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
}

.step-description {
    color: var(--color-grey);
    line-height: 1.7;
}

/* ===========================
   SDK Demo Section
   =========================== */

.sdk-demo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: start;
}

.sdk-content {
    padding: var(--spacing-md);
}

.sdk-title {
    margin-bottom: var(--spacing-sm);
}

.sdk-description {
    color: var(--color-grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.sdk-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sdk-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-grey);
}

.sdk-feature svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Code Block */
.code-block {
    background: var(--color-graphite);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-grey-dark);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-black);
    border-bottom: 1px solid var(--color-grey-dark);
}

.code-lang {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-grey-dark);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code {
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-silver-light);
    overflow-x: auto;
}

.code .comment { color: #6a9955; }
.code .keyword { color: #569cd6; }
.code .function { color: #dcdcaa; }
.code .method { color: #dcdcaa; }
.code .property { color: #9cdcfe; }
.code .string { color: #ce9178; }
.code .boolean { color: #569cd6; }

/* ===========================
   Registry Section
   =========================== */

.registry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.registry-info {
    padding: var(--spacing-md);
}

.registry-description {
    color: var(--color-grey);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.registry-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-white);
    border: 1px solid var(--color-silver-light);
    border-radius: var(--border-radius);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-grey);
}

/* Chain Block Visual */
.registry-visual {
    display: flex;
    justify-content: center;
}

.chain-block {
    width: 100%;
    max-width: 450px;
    background: var(--color-white);
    border: 2px solid var(--color-silver-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-graphite) 0%, var(--color-black) 100%);
    color: var(--color-white);
}

.block-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.block-hash {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-silver);
}

.block-data {
    padding: var(--spacing-md);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-silver-light);
}

.data-row:last-child {
    border-bottom: none;
}

.data-key {
    font-size: 0.875rem;
    color: var(--color-grey);
    font-weight: 500;
}

.data-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-black);
}

.data-value.private {
    color: var(--color-silver);
    letter-spacing: 0.2em;
}

/* ===========================
   Features Grid
   =========================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-md);
    background: var(--color-white);
    border: 1px solid var(--color-silver-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-silver-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--color-accent);
    color: var(--color-white);
}

.feature-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
}

.feature-description {
    color: var(--color-grey);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-graphite) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--color-silver);
    margin-bottom: var(--spacing-lg);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

.cta-section .btn-primary:hover {
    background: var(--color-silver-light);
}

.cta-section .btn-secondary {
    border-color: var(--color-silver);
    color: var(--color-white);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* ===========================
   Footer
   =========================== */

.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: var(--color-graphite);
    color: var(--color-silver);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-grey-dark);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-sm);
}

.footer-brand .logo svg {
    color: var(--color-white);
}

.footer-tagline {
    color: var(--color-grey);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-heading {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    color: var(--color-grey-light);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    color: var(--color-grey-light);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-white);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .hero .container,
    .sdk-demo,
    .registry-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        margin-top: var(--spacing-lg);
    }
    
    .steps,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        height: 60px;
    }
    
    .hero {
        padding: calc(60px + var(--spacing-xl)) 0 var(--spacing-xl);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .steps,
    .features-grid,
    .registry-stats {
        grid-template-columns: 1fr;
    }
    
    .hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sdk-demo {
        gap: var(--spacing-md);
    }
    
    .code-block {
        font-size: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .hexagon-grid {
        gap: 1rem;
    }
    
    .hex-item {
        width: 70px;
        height: 70px;
    }
    
    .step-icon,
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .step-icon svg,
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ===========================
   Accessibility
   =========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
