/* ====================================
   Block Expert - Web3 Style System
   ==================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(6, 182, 212, 0.4) 100%);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 20px;
    --blur-lg: 40px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   Navigation
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    height: 36px;
    width: auto;
}

.logo-text {
    font-family: 'Avenir Next', 'Avenir', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

.dropdown-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: var(--transition-base);
}

.dropdown-item:hover .dropdown-icon {
    background: var(--accent-primary);
    color: white;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.dropdown-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.dropdown-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    border-radius: 10px;
    transition: var(--transition-base);
}

.dropdown-footer-link:hover {
    background: var(--bg-card);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--blur-lg));
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(var(--blur-sm));
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ====================================
   Section Styles
   ==================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   About Section
   ==================================== */
.about {
    background: var(--bg-secondary);
}

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

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.2rem;
    color: var(--text-primary) !important;
    line-height: 1.7;
}

.about-lead strong {
    color: var(--accent-primary);
}

.about-features {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--accent-primary);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.blockchain-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.block {
    width: 60px;
    height: 60px;
    position: relative;
}

.block-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 12px;
    animation: blockPulse 3s ease-in-out infinite;
}

.block-1 .block-inner { animation-delay: 0s; }
.block-2 .block-inner { animation-delay: 0.5s; }
.block-3 .block-inner { animation-delay: 1s; }

@keyframes blockPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}

.chain {
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* ====================================
   Services Section
   ==================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ====================================
   Projects Section
   ==================================== */
.projects {
    background: var(--bg-secondary);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.project-showcase:last-child {
    margin-bottom: 0;
}

.project-showcase.reverse {
    direction: rtl;
}

.project-showcase.reverse > * {
    direction: ltr;
}

.project-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.partner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-text strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.highlight-text span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.visual-frame {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
}

.frame-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

.frame-glow.purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
}

.mockup-browser {
    position: relative;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.browser-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27ca40; }

.browser-content {
    padding: 24px;
}

.safe-press-mock {
    min-height: 200px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mock-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.mock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mock-badge.verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.mock-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-line {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.mock-line.w-80 { width: 80%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-60 { width: 60%; }

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.nft-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.nft-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.nft-card::after {
    content: '';
    position: absolute;
    inset: 10%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* ====================================
   Technology Section
   ==================================== */
.tech-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.tech-card.main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
}

.tech-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 20px;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.tech-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-base);
}

.benefit:hover {
    border-color: var(--border-color-hover);
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
}

.benefit-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ====================================
   CTA Section
   ==================================== */
.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.orb-cta-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.orb-cta-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    bottom: -150px;
    right: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-actions {
    margin-bottom: 32px;
}

.cta-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-tertiary);
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition-base);
}

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

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

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-grid,
    .project-showcase,
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-showcase.reverse {
        direction: ltr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-base);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

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

    .about-visual {
        order: -1;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   Blog Styles
   ==================================== */
.blog-hero {
    padding: 160px 0 80px;
    background: var(--bg-secondary);
}

.blog-listing {
    padding: 80px 0 var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
}

.blog-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
}

.blog-card-image-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.blog-card-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.blog-card-category {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    color: var(--accent-primary);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-cta {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-tertiary);
}

/* Blog Post */
.blog-post {
    padding-top: 100px;
}

.post-header {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.post-back {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.post-back:hover {
    color: var(--accent-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.post-category {
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 100px;
    color: var(--accent-primary);
}

.post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-image {
    margin: -40px 0 40px;
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
}

.container-narrow {
    max-width: 800px;
}

.post-content {
    padding: 60px 0;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
}

.post-content h3 {
    font-size: 1.35rem;
    margin: 36px 0 16px;
}

.post-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--accent-secondary);
}

.post-content ul,
.post-content ol {
    margin: 24px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 12px 12px 0;
}

.post-content blockquote p {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 0;
}

.post-content code {
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-tertiary);
}

.post-content pre {
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: none;
}

.post-content hr {
    margin: 48px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 32px 0;
}

.post-footer {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.share-link {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

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

.post-cta {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.post-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .post-title {
        font-size: 1.75rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
    }
}

/* ====================================
   Service Pages
   ==================================== */
.service-page {
    padding-top: 80px;
}

.service-header {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.service-header-bg {
    position: absolute;
    inset: 0;
}

.service-back {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: var(--transition-base);
}

.service-back:hover {
    color: var(--accent-primary);
}

.service-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.service-icon-large svg {
    width: 48px;
    height: 48px;
}

.service-page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.service-page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-intro {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.service-intro .intro-lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 14px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-process {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
    flex-shrink: 0;
    width: 60px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-tech {
    padding: var(--section-padding) 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-tag-large {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.tech-tag-large:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.service-cta {
    position: relative;
    padding: var(--section-padding) 0;
    text-align: center;
    overflow: hidden;
}

/* Service page responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .step-number {
        width: auto;
    }

    .service-page-title {
        font-size: 2rem;
    }
}

/* ====================================
   404 Error Page
   ==================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.error-bg {
    position: absolute;
    inset: 0;
}

.error-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 14rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    margin-bottom: 16px;
}

.error-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   Animations & Effects
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 100px;
}
