/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --border-color: #333333;
    --accent: #ffffff;
    --hover-bg: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--text-secondary);
}

.btn-text {
    padding: 0.75rem 1rem;
    background: none;
    color: var(--text-primary);
    border: none;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.btn-text:hover {
    color: var(--text-secondary);
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
}

.link-button:hover {
    color: var(--text-secondary);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.section-indicator {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-bracket {
    color: var(--text-tertiary);
}

.section-number {
    color: var(--text-primary);
}

.section-divider {
    color: var(--text-tertiary);
}

.section-total {
    color: var(--text-tertiary);
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    padding-top: 12rem;
}

.hero-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: block;
}

.hero-content {
    max-width: 900px;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
}

.hero-title {
    font-size: 8rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-align: left;
}

.title-line {
    display: block;
    white-space: nowrap;
}

.title-line:has(.carousel-word) {
    display: block;
    width: 500px;
    height: 1em;
    position: relative;
}

.carousel-word {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    width: 500px;
    text-align: left;
    white-space: nowrap;
}

.carousel-word.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.carousel-word.fade-in {
    opacity: 0;
    transform: translateY(-10px);
}

.carousel-word.fade-in.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 3rem;
    font-family: 'Courier New', monospace;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    font-weight: 300;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
}

.hero-link:hover {
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.scroll-text {
    margin-bottom: 1rem;
    font-weight: 400;
}

.scroll-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.scroll-label {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Principles Section */
.principles-section {
    background-color: var(--bg-secondary);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

.principle-item {
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.principle-item:hover {
    border-color: var(--text-tertiary);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.principle-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
}

.principle-number {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.principle-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.principle-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-primary);
}

.stats-header {
    margin-bottom: 4rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stats-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
}

.stats-link:hover {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.stat-item {
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Architecture Section */
.architecture-section {
    background-color: var(--bg-secondary);
}

.architecture-content {
    max-width: 800px;
}

.architecture-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Products Section */
.products-section {
    background-color: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.product-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.product-card * {
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--text-tertiary);
    background-color: var(--hover-bg);
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.product-number {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Ecosystem Section */
.ecosystem-section {
    background-color: var(--bg-secondary);
}

.ecosystem-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
}

.ecosystem-item {
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
    background: rgba(17, 17, 17, 0.4);
    border-radius: 1rem;
    overflow: hidden;
    min-height: 220px;
}

.ecosystem-item > * {
    margin: 0;
}

.ecosystem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.ecosystem-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.ecosystem-item:hover {
    border-color: var(--text-primary);
    transform: translateY(-8px) scale(1.02);
    background: rgba(17, 17, 17, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ecosystem-item:hover::before {
    opacity: 1;
}

.ecosystem-item:hover::after {
    opacity: 1;
}

.ecosystem-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ecosystem-item:hover .ecosystem-logo {
    transform: scale(1.15) translateY(-4px);
}

.ecosystem-logo[alt="Arweave"],
.ecosystem-logo[alt="ThreeFold"] {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ecosystem-item:has(.ecosystem-logo) {
    min-height: 220px;
}

.ecosystem-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.ecosystem-item:hover .ecosystem-name {
    color: var(--text-primary);
}

.ecosystem-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Code Section */
.code-section {
    background-color: var(--bg-primary);
}

.code-header {
    margin-bottom: 4rem;
}

.code-intro {
    max-width: 700px;
}

.code-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.code-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.code-examples {
    margin-top: 4rem;
}

.code-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.code-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.code-tab:hover,
.code-tab.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.code-tab-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-content {
    position: relative;
}

.code-block {
    display: none;
}

.code-block.active {
    display: block;
}

.code-block-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.code-block-title {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.code-block-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.code-block-hint {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.code-block pre {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.code-block code {
    font-family: inherit;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-col {
    min-width: 0;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
    font-weight: 300;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    font-weight: 300;
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* Login Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95), rgba(0, 0, 0, 1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.auth-logo {
    position: relative;
}

.auth-logo-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.4);
    background: linear-gradient(to bottom right, rgba(126, 34, 206, 0.7), rgba(99, 102, 241, 0.6), rgba(0, 0, 0, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-logo-inner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--text-tertiary);
    margin: 0;
}

.auth-title-section {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem;
    border-radius: 9999px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: white;
    color: black;
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-label-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-input {
    padding: 0.75rem;
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-input::placeholder {
    color: var(--text-tertiary);
}

.auth-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(17, 17, 17, 0.8);
}

.auth-error {
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.auth-submit {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-skip {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-primary);
}

.auth-skip:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Resources Page */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.resource-card * {
    pointer-events: none;
}

.resource-card:hover {
    border-color: var(--text-tertiary);
    background-color: var(--hover-bg);
    transform: translateY(-2px);
}

.resource-category {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.resource-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: auto;
}

/* How It Works Section */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.workflow-step {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    position: relative;
}

.workflow-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.workflow-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    min-width: 3rem;
}

.workflow-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.workflow-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-left: 4.5rem;
}

.workflow-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.4);
    border-radius: 0.5rem;
}

.workflow-item-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.workflow-item-location {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.workflow-item-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ecosystem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Product pages - tablet */
    .code-tabs {
        flex-wrap: wrap;
    }
    
    .code-tab {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
    
    .code-block pre {
        font-size: 0.8125rem;
        padding: 1.5rem;
    }
}

@media (max-width: 900px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 2rem;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-indicator {
        top: 1rem;
        left: 1rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-col {
        margin-bottom: 1rem;
    }
    
    .footer-col h4 {
        margin-bottom: 0.75rem;
    }
    
    .footer-col a {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Product Page Specific Responsive */
    .hero-tagline {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .hero-description p {
        font-size: 0.9375rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Code tabs on product pages */
    .code-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .code-tab {
        width: 100%;
        padding: 1rem;
    }
    
    .code-block pre {
        padding: 1rem;
        font-size: 0.75rem;
        overflow-x: auto;
    }
    
    .code-block-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .code-block-title {
        font-size: 0.9375rem;
    }
    
    .code-block-subtitle {
        font-size: 0.8125rem;
    }
    
    /* Numbered sections */
    .product-number {
        font-size: 0.75rem;
    }
    
    .product-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .product-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .code-examples {
        margin-top: 2rem;
    }
    
    .code-header {
        margin-bottom: 2rem;
    }
    
    .code-intro {
        margin-bottom: 1.5rem;
    }
    
    .code-title {
        font-size: 1.5rem;
    }
}

