/* ============================================
   ALUCHIN.COM - Invoice Verification Product
   Clean Professional Light Theme
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-dark: #0f172a;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-green: #00D4AA;
    --accent-gradient: linear-gradient(135deg, #6366f1, #818cf8);

    --success: #10b981;
    --warning: #f59e0b;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

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

body.loaded {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

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

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

/* Developer Banner */
.dev-banner {
    background: var(--bg-dark);
    color: #94a3b8;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
}

.dev-banner a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.dev-banner a:hover {
    color: #a5b4fc;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    display: flex;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Sections */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-subtitle.centered {
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-proof svg {
    flex-shrink: 0;
}

/* Hero Visual - Verification Flow Animation */
.hero-visual {
    position: relative;
    z-index: 1;
}

.flow-demo {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    overflow: hidden;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.flow-step.completed {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.04);
}

.flow-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.flow-icon.upload { background: rgba(99, 102, 241, 0.1); color: var(--accent-primary); }
.flow-icon.hash { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.flow-icon.verify { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.flow-step-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.flow-step-text p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.flow-hash {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.06);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-connector {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
    color: var(--text-muted);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    background: var(--bg-secondary);
    padding: 100px 5%;
}

.how-it-works .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: white;
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   WHY ALUCHIN SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases {
    background: var(--bg-secondary);
    padding: 100px 5%;
}

.use-cases .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.use-case-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.use-case-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.pricing-card {
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    text-align: center;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-coming {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pricing-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ============================================
   TECH / POWERED BY SECTION
   ============================================ */
.tech-section {
    background: var(--bg-dark);
    color: white;
    padding: 80px 5%;
}

.tech-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tech-section .section-label {
    color: var(--accent-green);
}

.tech-section .section-title {
    color: white;
}

.tech-section .section-subtitle {
    color: #94a3b8;
}

.tech-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.tech-stat {
    text-align: center;
}

.tech-stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.25rem;
}

.tech-stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ============================================
   API PREVIEW SECTION
   ============================================ */
.api-section {
    background: var(--bg-secondary);
    padding: 100px 5%;
}

.api-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.code-block {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-header span {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-left: 0.5rem;
}

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    white-space: pre;
}

.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-property { color: #82aaff; }
.code-comment { color: #546e7a; }
.code-method { color: #f78c6c; }

.api-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.api-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.api-features {
    list-style: none;
    margin-top: 1.5rem;
}

.api-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.api-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ============================================
   TRY IT NOW SECTION
   ============================================ */
.try-section {
    padding: 100px 5%;
    background: var(--bg-primary);
    text-align: center;
}

.try-inner {
    max-width: 640px;
    margin: 0 auto;
}

.try-container {
    margin-top: 2.5rem;
}

/* Dropzone */
.try-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
}

.try-dropzone:hover,
.try-dropzone.dragover {
    border-color: var(--accent-primary);
    background: #f5f3ff;
}

.try-dropzone-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color var(--transition-normal);
}

.try-dropzone:hover .try-dropzone-icon,
.try-dropzone.dragover .try-dropzone-icon {
    color: var(--accent-primary);
}

.try-dropzone-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.try-dropzone-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.try-browse-link {
    color: var(--accent-primary);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.try-browse-link:hover {
    color: var(--accent-secondary);
}

.try-file-input {
    display: none;
}

.try-dropzone-meta {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Progress */
.try-progress {
    padding: 3rem 2rem;
    text-align: center;
}

.try-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: trySpin 0.8s linear infinite;
}

@keyframes trySpin {
    to { transform: rotate(360deg); }
}

.try-progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.try-progress-file {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Result */
.try-result {
    padding: 2.5rem 2rem;
    text-align: center;
}

.try-result-icon {
    color: var(--success);
    margin-bottom: 0.5rem;
}

/* Network badge */
.try-network-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.try-network-badge.testnet {
    background: rgba(255, 170, 0, 0.12);
    color: #c87f00;
    border: 1px solid rgba(255, 170, 0, 0.25);
}

.try-network-badge.mainnet {
    background: rgba(0, 200, 83, 0.12);
    color: #00843b;
    border: 1px solid rgba(0, 200, 83, 0.25);
}

/* Testnet warning at top of result */
.try-testnet-warning {
    font-size: 0.8125rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.try-testnet-warning a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

/* Upgrade CTA below result actions */
.try-upgrade-cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.try-upgrade-cta:hover {
    color: #4f46e5;
    text-decoration: underline;
}

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

.try-result-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 1.5rem;
}

/* Proof link box */
.try-proof-link-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.try-proof-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.try-proof-link-row {
    display: flex;
    gap: 0.5rem;
}

.try-proof-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: text;
    min-width: 0;
}

.try-proof-input:focus {
    border-color: var(--accent-primary);
}

.try-copy-btn {
    flex-shrink: 0;
}

/* Blockchain receipt (collapsed) */
.try-receipt {
    text-align: left;
    margin-bottom: 1.5rem;
}

.try-receipt-toggle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.try-receipt-toggle::-webkit-details-marker {
    display: none;
}

.try-receipt-toggle::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid var(--text-muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease;
}

.try-receipt[open] .try-receipt-toggle::before {
    transform: rotate(90deg);
}

.try-receipt-toggle:hover {
    color: var(--text-secondary);
}

.try-receipt-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
    margin-top: 0.5rem;
}

.try-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    gap: 0.75rem;
}

.try-receipt-row + .try-receipt-row {
    border-top: 1px solid var(--border-color);
}

.try-receipt-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.try-receipt-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.try-receipt-value.mono {
    font-family: var(--font-mono);
}

.try-receipt-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.try-receipt-link:hover {
    text-decoration: underline;
}

/* Result actions */
.try-result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-weight: 500;
}

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

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Error */
.try-error {
    padding: 3rem 2rem;
    text-align: center;
}

.try-error-icon {
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.try-error-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Try It — Not Found State */
.try-not-found {
    padding: 3rem 2rem;
    text-align: center;
}

.try-not-found-icon {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.try-not-found-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.try-not-found-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.try-not-found-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.try-not-found-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    line-height: 1.5;
}

.try-not-found-hint a {
    color: var(--accent);
    text-decoration: underline;
}

/* Accent button (mainnet upsell) */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================
   CTA / WAITLIST SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 100px 5%;
    max-width: 700px;
    margin: 0 auto;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.waitlist-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.waitlist-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Secret buttons */
.secret-portfolio {
    display: inline-block;
    color: rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
    cursor: pointer;
    text-decoration: none;
}

.secret-portfolio svg {
    width: 16px;
    height: 16px;
}

.secret-portfolio:hover {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    transform: scale(1.3);
}

.secret-heart {
    display: inline-block;
    color: rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
    cursor: pointer;
    text-decoration: none;
}

.secret-heart svg {
    width: 16px;
    height: 16px;
}

.secret-heart:hover {
    color: #e8457e;
    filter: drop-shadow(0 0 8px rgba(232, 69, 126, 0.6));
    transform: scale(1.3);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .api-content {
        grid-template-columns: 1fr;
    }

    .tech-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links, .nav-cta {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active, .nav-cta.active {
        display: flex;
    }

    .nav-cta {
        padding-top: 0;
    }

    .hero {
        min-height: auto;
        padding: 60px 5% 40px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .hero-visual {
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .tech-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section {
        padding: 60px 5%;
    }

    .how-it-works, .use-cases, .api-section, .try-section {
        padding: 60px 5%;
    }

    .tech-section {
        padding: 60px 5%;
    }

    .try-dropzone {
        padding: 2rem 1.5rem;
    }

    .try-proof-link-row {
        flex-direction: column;
    }

    .try-receipt-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .try-receipt-value {
        text-align: left;
    }

    .try-result-actions {
        flex-direction: column;
    }
}

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

    .dev-banner {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    /* Increase touch targets for iPhone */
    .btn {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }

    .pricing-cta {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }

    .nav-links a,
    .nav-cta a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .waitlist-input {
        min-height: 44px;
        font-size: 1rem;
    }

    .waitlist-btn {
        min-height: 44px;
    }

    .try-dropzone {
        padding: 1.5rem 1rem;
    }

    /* Redesign flow demo for small screens — stack icon above text */
    .hero-visual {
        max-width: 100%;
    }

    .flow-demo {
        padding: 1rem;
    }

    .flow-step {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .flow-step-text h4 {
        font-size: 0.8125rem;
    }

    .flow-step-text p {
        font-size: 0.75rem;
    }

    .flow-icon {
        width: 32px;
        height: 32px;
    }

    .flow-hash {
        font-size: 0.625rem;
        word-break: break-all;
        white-space: normal;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        width: 100%;
    }

    .hero-ctas {
        width: 100%;
    }
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.waitlist-input:focus-visible {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   FORM STATUS MESSAGE
   ============================================ */
.form-status {
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

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

.form-status.error {
    color: #ef4444;
}

.form-status.sending {
    color: var(--text-muted);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}
