/* ============================================
   PrivCart - Design System
   Based on PrivatePolls & Monero Aesthetics
   ============================================ */

/* Houdini CSS - Animated Border Angle */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderRotate {
  to { --border-angle: 360deg; }
}

@keyframes rotateGradient {
    to { --gradient-angle: 360deg; }
}

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Backgrounds - Deep Navy Spectrum */
  --bg-deepest: #020817;
  --bg-deep: #030a1a;
  --bg-card: rgba(4, 18, 38, 0.6);
  --bg-elevated: #0f172a;
  --bg-surface: #1e293b;

  /* Brand - PrivCart Orange (Monero Inspired) */
  --accent-orange: #ff6600;
  --accent-orange-light: #ff8533;
  --accent-orange-dark: #cc5200;
  --accent-glow: rgba(255, 102, 0, 0.4);
  --accent-subtle: rgba(255, 102, 0, 0.15);

  /* Status Colors */
  --status-success: #00ff88;
  --status-success-glow: rgba(0, 255, 136, 0.4);
  --status-dev: #00a8ff; /* Encryption Blue for Dev/Beta */
  --status-planned: #94a3b8; /* Muted for Planned */

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border-default: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Fonts */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing & Radius */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --nav-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 168, 255, 0.05), transparent 40%);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Live Coin Stats Section
   ============================================ */
.coin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.coin-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Static border base */
    border: 1px solid rgba(255, 102, 0, 0.2);
}

/* Houdini Flowing Border for Coin Cards */
.coin-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    box-sizing: border-box;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 42.5%,
        rgba(255, 102, 0, 0.4) 45%,
        rgba(255, 102, 0, 0.7) 47.5%,
        #ff6600 50%,
        rgba(255, 102, 0, 0.7) 52.5%,
        rgba(255, 102, 0, 0.4) 55%,
        transparent 57.5%,
        transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: borderRotate 8s linear infinite, gatewayBorderPulse 2s ease-in-out infinite;
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.coin-symbol {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* Placeholder background if image fails */
    background: rgba(255, 255, 255, 0.1); 
}

.coin-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.coin-change {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.change-positive {
    color: var(--status-success);
}

.change-negative {
    color: #ff4d4d; /* Red for negative */
}

/* ============================================
   Large Screen Optimizations
   ============================================ */
@media (min-width: 1440px) {
    .container, 
    .nav-inner, 
    .hero-content, 
    .coin-stats-grid {
        max-width: 1400px; /* Reduced from 1600px to minimize dead space */
    }

    /* Scale hero title for very large screens */
    .hero-title {
        font-size: clamp(4rem, 5vw, 6rem); 
    }

    /* Allow the info cards to be wider */
    .info-card-container {
        max-width: 1200px; /* Reduced from 1400px */
    }
}

/* Class to replace inline styles on index.html cards */
.info-card-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
    transition: max-width 0.3s ease;
}

/* ============================================
   Navigation (Glassmorphic)
   ============================================ */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height); /* Standard 80px height */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    backdrop-filter: blur(12px);
    background: rgba(2, 8, 23, 0.7);
    border-bottom: 1px solid var(--border-default);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.75rem; /* Increased padding by ~10-25% */
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange);
}

/* Surgical Fix: Logo Container stays in flow but allows overflow */
.logo-container {
    display: flex;
    align-items: center;
    /* Adjusted margin to further raise logo slightly (another 10% of height) */
    margin-top: 8px; 
    position: relative;
    z-index: 1001; /* Ensure logo sits above content */
}

.logo-container img {
    height: 160px; /* Large size in isolation */
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: transform 0.3s ease;
    max-width: none; /* Allow overflowing the container */
    pointer-events: auto;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* ============================================
   Main Content Layout
   ============================================ */
main {
    padding-top: calc(var(--nav-height) + 30px); /* Reduced gap by ~25% (from 40px to 30px) */
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Hero Section (PrivatePolls Replica)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    margin-bottom: 4rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-subtle));
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    position: relative; /* Needed for pseudo-element */
    overflow: hidden; /* Needed for pseudo-element */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    z-index: 1; /* Ensure text is above pseudo-element */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange)); /* Subtle lighter gradient */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-4px); /* More pronounced lift */
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 40px var(--accent-subtle); /* Enhanced shadow */
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08); /* Subtle glass overlay */
    transform: scaleX(0); /* Start hidden */
    transform-origin: left;
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-secondary:hover {
    border-color: var(--accent-orange-light); /* Accent color on hover */
    color: var(--text-primary); /* Ensure text stays bright */
    box-shadow: 0 0 15px var(--accent-subtle); /* Subtle glow */
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Adjust Glass Panel for Hero Visual context */
.hero-visual .glass-panel {
    margin-bottom: 0;
    width: 100%;
    /* Removed perspective/rotate transform to fix wobble */
}

/* ============================================
   Navigation Updates
   ============================================ */
.nav-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ensure Logo is Left, Nav is Right (Already set in HTML structure, confirming flex behavior) */
.logo-container {
    order: 0; /* Force Left */
}

.nav-links {
    order: 1; /* Force Right */
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.75rem; /* Reduce gap */
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Make buttons full width when stacked */
        padding: 0.8rem 1.2rem; /* Reduced horizontal padding */
        font-size: 0.9rem; /* Slightly smaller font */
    }

    .hero-visual .glass-panel {
        transform: none;
    }
}
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Static border base (dimmed) for hub cards */
.glass-panel.glow-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 102, 0, 0.2);
    pointer-events: none;
    z-index: 1;
    /* Reset previous animation */
    background: none;
    -webkit-mask: none;
    mask: none;
    animation: none;
}

/* Traveling highlight effect on hub cards (XmrHub Style) */
.glass-panel.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    box-sizing: border-box;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 42.5%,
        rgba(255, 102, 0, 0.4) 45%,
        rgba(255, 102, 0, 0.7) 47.5%,
        #ff6600 50%,
        rgba(255, 102, 0, 0.7) 52.5%,
        rgba(255, 102, 0, 0.4) 55%,
        transparent 57.5%,
        transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: borderRotate 8s linear infinite, gatewayBorderPulse 2s ease-in-out infinite;
}

@keyframes gatewayBorderPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

/* ============================================
   Comparison Chart (Aesthetic Table)
   ============================================ */
.chart-container {
    overflow-x: auto;
}

.crypto-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.crypto-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.crypto-table tr {
    transition: transform 0.2s ease;
}

.crypto-table td {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.crypto-table td:first-child {
    border-left: 1px solid var(--border-subtle);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.crypto-table td:last-child {
    border-right: 1px solid var(--border-subtle);
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    text-align: right;
}

.crypto-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.crypto-symbol {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--status-success);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.status-dev {
    background: rgba(0, 168, 255, 0.1);
    color: var(--status-dev);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.status-planned {
    background: rgba(148, 163, 184, 0.1);
    color: var(--status-planned);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* ============================================
   Glow Divider (Stable XmrHub Style)
   ============================================ */
.glow-divider {
    position: relative;
    height: 1px;
    background: transparent;
    margin: 4rem auto;
    width: 100%;
    max-width: 1000px;
    overflow: visible;
}

/* The Line */
.glow-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 136, 51, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%);
}

/* The Central Glow (Hot Spot) */
.glow-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 5px;
    background: radial-gradient(ellipse at center,
        rgba(255, 136, 51, 0.6) 0%,
        transparent 70%);
    filter: blur(4px);
    /* Subtle breathing animation only on the glow opacity */
    animation: glowBreath 4s ease-in-out infinite;
}

@keyframes glowBreath {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   FAQ Styles
   ============================================ */
.faq-item {
    padding: 1rem 0;
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
    /* Safari Fix: Prevent cards from stretching to fill full cross-axis height if not needed */
    align-items: flex-start; 
}

.contact-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem; /* Reduced vertical and horizontal padding to reduce dead space */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px; /* Reduced max-width from 350px */
    transition: transform 0.3s ease;
    /* Static border base */
    border: 1px solid rgba(255, 102, 0, 0.2);
    /* Safari Fixes */
    height: auto; 
    min-height: 0; 
}

/* Houdini Flowing Border for Contact Cards */
.contact-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    box-sizing: border-box;
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 42.5%,
        rgba(255, 102, 0, 0.4) 45%,
        rgba(255, 102, 0, 0.7) 47.5%,
        #ff6600 50%,
        rgba(255, 102, 0, 0.7) 52.5%,
        rgba(255, 102, 0, 0.4) 55%,
        transparent 57.5%,
        transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: borderRotate 8s linear infinite, gatewayBorderPulse 2s ease-in-out infinite;
}

.contact-card:hover {
    transform: translateY(-5px);
    /* border-color handled by ::after now */
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.contact-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-role {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.x-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.x-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.x-btn i {
    font-size: 1.1rem;
}

/* ============================================
   Boilerplate Tabs
   ============================================ */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
    opacity: 0.5;
}

/* ============================================
   Steps Grid (How it Works)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-orange-light);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-orange);
    opacity: 0.5;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    /* Global Mobile Fixes */
    .container, main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-inner {
        flex-direction: column-reverse;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .nav-container {
        /* CHANGED: Absolute positioning so it scrolls away and doesn't block view */
        position: absolute; 
        height: auto;
        padding: 0.5rem;
        background: rgba(2, 8, 23, 0.85); /* Slightly more opaque for legibility */
    }

    /* Reset positioning for mobile flow */
    .logo-container {
        margin-top: 0;
        margin-bottom: 0.5rem;
        justify-content: center;
        width: 100%; /* Ensure full width for centering */
    }

    .logo-container img {
        height: 140px; /* Base height for layout calculation */
        max-width: 90vw;
        object-fit: contain;
        transform: scale(1.25); /* Visually 25% larger */
        transform-origin: center center;
    }
    
    main {
        /* Increased padding to push content below the large, absolute header initially */
        padding-top: 260px; 
        padding-bottom: 40px;
    }

    .hero-section {
        padding-top: 0;
        margin-bottom: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Card Spacing */
    .glass-panel {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .info-card-container {
        margin-bottom: 1.5rem;
    }

    .coin-stats-grid {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .coin-card {
        padding: 1.5rem;
    }

    .coin-price {
        font-size: 1.5rem;
    }

    /* FAQ Mobile Fixes */
    .faq-question {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .faq-answer {
        font-size: 0.95rem;
        text-align: left;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Info Cards (Project Status, Mission, etc.) Mobile Reorientation */
    .info-card-container {
        text-align: left; /* Force left alignment like FAQ */
    }

    .info-card-container .hero-title {
        font-size: 1.5rem !important; /* Override inline styles to match FAQ header scale */
        text-align: left;
        margin-bottom: 0.75rem;
    }

    .info-card-container .hero-text {
        font-size: 0.95rem; /* Match FAQ answer size */
        line-height: 1.6;
        text-align: left;
        -webkit-text-size-adjust: 100%; /* Prevent iOS scaling issues */
    }
    /* Table Mobile Scroll */
    .chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
    }

    .crypto-table th, .crypto-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }
}