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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 16px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Hide mobile menu on desktop */
.mobile-menu-btn {
    display: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.footer-logo-icon {
    height: 36px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23667eea" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #475569;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.receipt-demo {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.receipt-card {
    width: 280px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: float 6s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.json-card {
    width: 320px;
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: float 6s ease-in-out infinite 1s;
    border: 1px solid #334155;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Receipt Styles */
.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e2e8f0;
}

.store-name {
    font-weight: bold;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.store-address {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.receipt-number {
    font-size: 0.8rem;
    color: #64748b;
}

.receipt-items {
    margin-bottom: 16px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    line-height: 1.3;
}

.receipt-item.total {
    font-weight: bold;
    margin-top: 8px;
}

.receipt-item.total-final {
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid #1a1a1a;
    padding-top: 6px;
    margin-top: 6px;
}

.receipt-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.item-name {
    color: #1a1a1a;
    flex: 1;
}

.item-price {
    color: #1a1a1a;
    font-weight: 500;
}

.receipt-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
}

.date-time {
    margin-top: 4px;
}

/* Transform Arrow Styles */
.arrow-transform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.arrow-transform svg {
    width: 60px;
    height: 20px;
}

.transform-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.transform-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* AI Data Viewer */
.ai-data-viewer {
    width: 380px;
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: float 6s ease-in-out infinite 1s;
    border: 1px solid #334155;
    max-height: 500px;
    overflow: hidden;
}

.viewer-header {
    margin-bottom: 16px;
}

.viewer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.title-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.ai-status {
    background: #059669;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-container {
    margin-bottom: 16px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #334155;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.search-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    margin-right: 8px;
}

#ai-search-input {
    background: none;
    border: none;
    color: white;
    padding: 10px 0;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
}

#ai-search-input::placeholder {
    color: #64748b;
}

.search-suggestions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-suggestion {
    background: #475569;
    border: none;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    background: #667eea;
    color: white;
}

/* JSON Sections */
.json-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 320px;
    overflow-y: auto;
}

.json-sections::-webkit-scrollbar {
    width: 6px;
}

.json-sections::-webkit-scrollbar-track {
    background: #1e293b;
}

.json-sections::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.json-section {
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.section-header:hover {
    background: #1e293b;
}

.section-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.section-info h4 {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-desc {
    color: #64748b;
    font-size: 0.75rem;
}

.ai-badge-small {
    background: #059669;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    align-self: flex-start;
}

.expand-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.json-section.expanded .expand-icon {
    transform: rotate(180deg);
}

.section-content {
    border-top: 1px solid #334155;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.section-content:not(.collapsed) {
    max-height: 400px;
    opacity: 1;
}

.json-code {
    color: #94a3b8;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 0;
    padding: 16px;
    white-space: pre;
    overflow-x: auto;
}

.ai-inferred {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

/* Verification Footer */
.verification-footer {
    border-top: 1px solid #334155;
    padding-top: 12px;
}

.verification-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    color: #94a3b8;
    font-size: 0.8rem;
}

.verify-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Search highlighting */
.search-highlight {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Arrow Transform */
.arrow-transform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.arrow-transform svg {
    width: 60px;
    height: 20px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: #334155;
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
}

.toggle-btn:hover:not(.active) {
    color: white;
    background: #475569;
}

/* View Containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Human Readable Styles */
.human-section {
    display: none;
}

.human-section.active {
    display: block;
}

.human-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.human-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.human-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
}

.receipt-id {
    color: #64748b;
    font-size: 0.85rem;
    font-family: monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

.verified-badge {
    color: #059669;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ecfdf5;
    padding: 4px 8px;
    border-radius: 4px;
}

.blockchain-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.blockchain-status.verified {
    color: #7c3aed;
    background: #f3e8ff;
}

.human-content {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.info-row .label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-row .value {
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.info-row .value.amount {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

.info-row .value.verified-text {
    color: #059669;
}

.info-row .value.status-confirmed {
    color: #7c3aed;
}

.info-row .value.hash {
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
}

.items-purchased {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.items-purchased h5 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.item-name {
    color: #1a1a1a;
    font-weight: 500;
}

.item-category {
    color: #64748b;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 12px;
}

.item-price {
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
}

.store-details, .verification-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Search highlighting for human view */
.human-card .search-highlight {
    background: rgba(251, 191, 36, 0.3);
    color: #d97706;
    padding: 1px 2px;
    border-radius: 2px;
}

/* JSON Search */
.json-search {
    margin-bottom: 16px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #334155;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.search-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    margin-right: 8px;
}

#json-search-input {
    background: none;
    border: none;
    color: white;
    padding: 10px 0;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
}

#json-search-input::placeholder {
    color: #64748b;
}

.search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s ease;
}

#json-search-input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: white;
    background: #475569;
}

.search-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-label {
    color: #64748b;
    font-size: 0.8rem;
}

.search-suggestion {
    background: #475569;
    border: none;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    background: #667eea;
    color: white;
}

.search-results {
    display: none;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.search-results.active {
    display: block;
}

.search-result-item {
    color: #e2e8f0;
    margin-bottom: 6px;
    padding: 4px;
    border-radius: 4px;
}

.search-result-item:hover {
    background: #1e293b;
}

.search-path {
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-value {
    color: #fbbf24;
    font-weight: 600;
}

.search-highlight {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 1px 2px;
    border-radius: 2px;
}

/* JSON Styles */
.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.json-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.json-badge {
    background: #059669;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.json-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.json-tab {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}

.json-tab:hover {
    color: white;
    background: #334155;
}

.json-tab.active {
    color: white;
    background: #475569;
}

/* Removed duplicate .json-content definition - using new demo styles below */

.json-section {
    display: none;
    height: 100%;
    position: relative;
}

.json-section.active {
    display: block;
}

/* Removed duplicate .json-code definition - using new demo styles below */

.json-section.expanded .json-code {
    height: auto;
    max-height: 300px;
    overflow-y: auto;
}

.json-section.expanded .json-code::-webkit-scrollbar {
    width: 6px;
}

.json-section.expanded .json-code::-webkit-scrollbar-track {
    background: #1e293b;
}

.json-section.expanded .json-code::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.expand-btn {
    position: absolute;
    bottom: 0;
    right: 12px;
    background: linear-gradient(to top, #1e293b 0%, #1e293b 70%, transparent 100%);
    border: none;
    color: #60a5fa;
    padding: 12px 8px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    color: #93c5fd;
}

.expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.json-section.expanded .expand-icon {
    transform: rotate(180deg);
}

.json-section.expanded .expand-btn span {
    display: none;
}

.json-section.expanded .expand-btn::after {
    content: "Show Less";
}

.blockchain-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Sections */
.about, .how-it-works, .infrastructure {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-header h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* Value Props */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.value-prop {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.value-prop:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-prop h3 {
    color: #1a1a1a;
    margin-bottom: 16px;
}

.value-prop p {
    color: #64748b;
}

/* How It Works */
.how-it-works {
    background: #f8fafc;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-content p {
    color: #64748b;
}

/* Infrastructure */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.infra-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.infra-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.infra-card h3 {
    color: #1a1a1a;
    margin-bottom: 16px;
}

.infra-card p {
    color: #64748b;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.email-signup {
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    /* placeholder color set via ::placeholder pseudo-element below */
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.signup-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-proof span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.company-logos {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-placeholder {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 32px;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: #94a3b8;
}

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

.link-group h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #667eea;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #2d2d2d;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 194, 255, 0.3);
    background: rgba(0, 194, 255, 0.05);
    transform: translateY(-1px);
}

/* Demo Section Styles */
.demo-section {
    /* margin-top: 80px;
    padding: 60px 0; */
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #1e293b;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Receipt Side */
.receipt-mockup {
    perspective: 1000px;
}

.receipt-paper {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    max-width: 320px;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.receipt-paper:hover {
    transform: rotateX(0deg) rotateY(0deg);
}

.receipt-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e2e8f0;
}

.store-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.store-address {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.receipt-number {
    font-size: 0.8rem;
    color: #94a3b8;
}

.receipt-items {
    margin-bottom: 20px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.receipt-item.final {
    font-size: 0.95rem;
    border-top: 2px solid #1a1a1a;
    padding-top: 8px;
    margin-top: 12px;
}

.receipt-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 16px 0;
}

.receipt-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 2px dashed #e2e8f0;
    padding-top: 16px;
}

/* Transform Arrow */
.transform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.arrow-content {
    text-align: center;
}

.transform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-bottom: 8px;
}

.transform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.arrow-icon {
    width: 20px;
    height: 20px;
}

.transform-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* JSON Side */
.blockchain-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge.solana {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    color: white;
}

.badge.ethereum {
    background: linear-gradient(135deg, #627EEA 0%, #8A92B2 100%);
    color: white;
}

.badge.ipfs {
    background: linear-gradient(135deg, #65C3F7 0%, #0052D4 100%);
    color: white;
}

.json-output {
    background: #0f172a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.json-container {
    padding: 24px;
    flex: 1;
    overflow-y: scroll;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.json-container::-webkit-scrollbar {
    width: 8px;
}

.json-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.json-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.json-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.json-code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.json-key {
    color: #60a5fa;
}

.json-string {
    color: #a7f3d0;
}

.json-number {
    color: #fbbf24;
}

.json-key.ai-enhanced,
.json-string.ai-enhanced,
.json-number.ai-enhanced {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    position: relative;
}

/* AI Legend */
.ai-legend {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.legend-icon {
    font-size: 1.2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Global Mobile Adjustments */
    .container {
        padding: 0 12px;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 40px;
        text-align: center;
    }
    
    .hero .container {
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 40px;
    }
    
    .demo-section {
        order: 2;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .hero-cta {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Demo Section Mobile */
    .demo-section {
        padding: 0;
        margin: 0 -4px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
        margin: 0 -8px;
    }
    
    .demo-label {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .blockchain-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .transform-arrow {
        order: 2;
        padding: 16px 0;
    }
    
    .transform-btn {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        font-size: 1rem;
    }
    
    .receipt-paper {
        max-width: 100%;
        transform: none;
        font-size: 0.8rem;
        padding: 24px;
    }
    
    .json-output {
        max-width: 100%;
    }
    
    .json-container {
        padding: 12px;
        height: 300px;
        overflow-y: scroll;
        margin: 0 -4px;
    }
    
    .json-code {
        font-size: 0.7rem;
        line-height: 1.4;
        text-align: left;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .ai-legend {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 16px 0;
    }
    
    .nav-brand .logo {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1e293b;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .nav-links a:hover {
        color: #667eea;
    }
    
    .nav-links .btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    
    .hamburger-line {
        width: 100%;
        height: 3px;
        background: #1e293b;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active {
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(90deg) translate(8px, 8px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(90deg) translate(-8px, 8px);
    }
    
    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .value-props {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .value-prop {
        text-align: center;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    /* How It Works Mobile */
    .how-it-works {
        padding: 60px 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    /* Infrastructure Mobile */
    .infrastructure {
        padding: 60px 0;
    }
    
    .infra-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .infra-card {
        padding: 32px 24px;
        text-align: center;
    }
    
    .infra-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    /* CTA Section Mobile */
    .cta {
        padding: 60px 0;
    }
    
    .input-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .input-group input,
    .input-group .btn {
        width: 100%;
        max-width: 400px;
    }
    
    .company-logos {
        gap: 16px;
        flex-direction: column;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 60px 0 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-legal a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .demo-container {
        gap: 24px;
        max-width: 900px;
    }
    
    .receipt-paper {
        max-width: 280px;
    }
    
    .json-output {
        max-width: 380px;
    }
    
    .value-props {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .infra-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Receipt Styles (Updated) */
.receipt-content {
    flex: 1;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e2e8f0;
}

.store-name {
    font-weight: bold;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.store-address {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.receipt-number {
    font-size: 0.8rem;
    color: #64748b;
}

.receipt-items {
    margin-bottom: 16px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    line-height: 1.3;
}

.receipt-item.total {
    font-weight: bold;
    margin-top: 8px;
}

.receipt-item.total-final {
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid #1a1a1a;
    padding-top: 6px;
    margin-top: 6px;
}

.receipt-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
}

.date-time {
    margin-top: 4px;
}

/* Tokenize Button */
.tokenize-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 16px;
    border: none;
    outline: none;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}

.tokenize-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tokenize-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.treceipt-mini-logo {
    width: 20px;
    height: 20px;
}

.tokenize-text {
    font-weight: 600;
    font-size: 1rem;
}

.flip-hint {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* JSON Header */
.json-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
}

.json-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-title span {
    font-weight: 600;
    font-size: 1rem;
}

.flip-back-btn {
    background: #334155;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.flip-back-btn:hover {
    background: #475569;
    color: white;
}

.flip-back-btn svg {
    width: 16px;
    height: 16px;
}

/* JSON Viewer Content */
.json-viewer-content {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
}

.json-section {
    margin-bottom: 16px;
}

.json-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
    gap: 6px;
}

.json-line.expandable {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.json-line.expandable:hover {
    background: #334155;
}

.json-key {
    color: #60a5fa;
    font-weight: 500;
}

.json-value {
    color: #10b981;
}

.json-number {
    color: #f59e0b;
}

.json-boolean {
    color: #8b5cf6;
}

.json-array,
.json-object {
    color: #94a3b8;
    font-style: italic;
}

.expand-hint {
    color: #64748b;
    font-size: 0.7rem;
    margin-left: 4px;
}

/* JSON Nested Content */
.json-nested {
    margin-left: 16px;
    border-left: 2px solid #334155;
    padding-left: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.json-nested:not(.collapsed) {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 8px;
    margin-top: 8px;
}

.json-object {
    margin-top: 4px;
}

/* AI Inferred Styling */
.ai-inferred {
    background: rgba(96, 165, 250, 0.15);
    padding: 2px 4px;
    border-radius: 3px;
    border-left: 2px solid #60a5fa;
}

/* Verification Section */
.verify-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #334155;
    text-align: center;
}

.verify-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Blockchain Badge (for when verification is complete) */
.blockchain-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Inter', sans-serif;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Removed duplicate mobile menu styles - using main mobile responsive section */



@media (max-width: 480px) {
    .flip-card-container {
        width: 280px;
        height: 450px;
    }
    
    .flip-card-front {
        padding: 16px;
        font-size: 0.75rem;
    }
    
    .flip-back-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .json-viewer-content {
        font-size: 0.65rem;
    }
    
    .json-nested {
        margin-left: 12px;
        padding-left: 8px;
    }
}

/* JSON Card Layout */
.json-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.json-viewer-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    text-align: left;
}

/* Back Button (Bottom) */
.flip-back-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    outline: none;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-top: auto;
}

.flip-back-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.flip-back-text {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.flip-back-hint {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* JSON Content Styles */
.json-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    height: calc(100% - 60px); /* Leave space for back button */
}

.json-data {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #e2e8f0;
    background: transparent;
    margin: 0;
    padding: 0;
    white-space: pre;
    overflow-x: auto;
    text-align: left;
}

/* JSON Syntax Highlighting */
.json-data .json-string {
    color: #a7f3d0; /* Green for strings */
}

.json-data .json-number {
    color: #fbbf24; /* Yellow for numbers */
}

.json-data .json-key {
    color: #60a5fa; /* Blue for keys */
}

.flip-back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: sticky;
    bottom: 0;
}

.flip-back-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* JSON Viewer Styles */
.json-tree-view {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 100%;
    text-align: left;
}

.json-raw {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre;
    overflow: visible;
    width: 100%;
    text-align: left;
}

/* JSON Viewer Styles */
.json-viewer {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.json-line {
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.9);
}

.json-expandable {
    cursor: pointer;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    transition: background 0.2s ease;
    color: #8dd3c7;
}

.json-expandable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.json-toggle {
    display: inline-block;
    width: 16px;
    color: #667eea;
    font-weight: bold;
}

.json-collapsed {
    display: none;
}

.json-expanded {
    display: block;
    margin-left: 16px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Grid View Styles */
.json-grid-view {
    height: 100%;
    overflow-y: auto;
    text-align: left;
}

/* Grid View Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.data-table td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table .section-header {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

.data-table .section-header td {
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    color: #8dd3c7;
}

.data-table .ai-row {
    background: rgba(253, 180, 98, 0.05);
    border-left: 3px solid #fdb462;
}

.data-table .ai-row td:first-child {
    color: #fdb462;
}

.json-view-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.json-view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.json-view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.json-view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Grid View Styles */
.json-grid-view {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.grid-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1.5fr;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.grid-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1.5fr;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.grid-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.grid-row.ai-generated {
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
}

.grid-row.ai-generated:hover {
    background: rgba(102, 126, 234, 0.08);
}

.grid-cell {
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
    line-height: 1.4;
}

.grid-header .grid-cell {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Verification Status Styles */
.verification-status {
    margin-top: 20px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.verification-complete {
    text-align: center;
}

.verification-text {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.blockchain-networks {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.network-badge.solana {
    background: rgba(220, 31, 255, 0.1);
    color: #dc1fff;
    border: 1px solid rgba(220, 31, 255, 0.3);
}

.network-badge.ethereum {
    background: rgba(98, 126, 234, 0.1);
    color: #627eea;
    border: 1px solid rgba(98, 126, 234, 0.3);
}

.network-icon {
    font-weight: bold;
    font-size: 14px;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: white;
}

@media (max-width: 768px) {
    .toast {
        right: 16px;
        left: 16px;
        max-width: none;
        top: 80px;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Legal Pages Styling */
.legal-page {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f1419 100%);
    min-height: calc(100vh - 160px);
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 194, 255, 0.2);
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
}

.legal-section p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Mobile Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px 0;
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-content {
        padding: 0 20px;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
}

/* End of CSS file */