:root {
    --primary-color: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #EF4444;
    --primary-50: #FEF2F2;
    --primary-100: #FEE2E2;
    --primary-200: #FECACA;
    --primary-300: #FCA5A5;
    --secondary-color: #6B7280;
    --background: #FFFFFF;
    --surface: #F9FAFB;
    --surface-hover: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --warning: #F59E0B;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand-clean {
    border: none;
    outline: none;
    background: none;
    text-decoration: none !important;
}

.nav-brand-clean:visited,
.nav-brand-clean:focus,
.nav-brand-clean:active {
    text-decoration: none !important;
    outline: none;
}

.nav-brand .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-brand .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(to bottom right, var(--primary-50), var(--background));
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

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

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

/* Hero Phone Screenshot */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-phone {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* Manifesto Section */
.manifesto {
    padding: 6rem 0;
    background: var(--surface);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-quote {
    margin-bottom: 3rem;
}

.manifesto-quote blockquote {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    position: relative;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.manifesto-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.manifesto-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.principles {
    margin-top: 3rem;
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.principles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.principles ul {
    list-style: none;
}

.principles li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.principles li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
}

.principles li strong {
    color: var(--text-primary);
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--background);
}

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

.feature {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

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

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technical Details Section */
.technical-details {
    padding: 6rem 0;
    background: var(--surface);
}

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

.tech-item {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tech-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tech-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-code {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.code-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-line:last-child {
    margin-bottom: 0;
}

.code-input {
    color: var(--text-secondary);
}

.code-arrow {
    color: var(--primary-color);
}

.code-function {
    color: var(--primary-dark);
    font-weight: 600;
}

.code-output {
    color: var(--success);
}

.code-error {
    color: var(--primary-color);
    text-decoration: line-through;
}

.code-property {
    color: var(--text-primary);
}

.code-key {
    color: var(--primary-color);
}

.code-bracket {
    color: var(--text-muted);
}

.code-indent {
    margin-left: 1.5rem;
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: var(--background);
}

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

.download-option {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.platform-icon {
    font-size: 2rem;
}

.download-option h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

.download-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-btn {
    justify-content: center;
    text-align: center;
}

.download-code {
    background: var(--text-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-content {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.code-prompt {
    color: #10B981;
    margin-right: 0.5rem;
}

.code-command {
    color: #60A5FA;
}

.code-success {
    color: #10B981;
}

.download-footer {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.download-footer strong {
    color: var(--text-primary);
}

/* Comparison Table */
.comparison {
    padding: 6rem 0;
    background: var(--surface);
}

.comparison-table {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--surface);
    font-weight: 600;
}

.comparison-cell {
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--border);
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.upass {
    color: var(--success);
    font-weight: 500;
}


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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Policy Page */
.privacy-policy {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--background);
    min-height: 100vh;
}

.privacy-policy h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content section {
    margin-bottom: 3rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.privacy-content .highlight {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.privacy-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.final-note {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        position: relative;
    }
    
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--background) !important;
        border-top: 1px solid var(--border) !important;
        flex-direction: column !important;
        padding: 1rem 0 !important;
        box-shadow: var(--shadow-lg) !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        gap: 0 !important;
        z-index: 1000 !important;
    }
    
    .nav-links.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .nav-links a {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background: var(--surface);
        color: var(--primary-color);
    }

    /* Hero Section */
    .hero {
        background: var(--primary-50) !important;
    }
    
    .hero::before {
        display: none !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-phone {
        transform: none;
        margin-top: 3rem;
        max-width: 280px;
    }
    
    /* Grid Layouts */
    .features-grid,
    .tech-grid,
    .download-options,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Comparison Table */
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-header,
    .comparison-row {
        min-width: 600px;
    }
    
    .comparison-cell {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .comparison-cell.feature-name {
        font-size: 0.8125rem;
    }
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
}