:root {
    /* Claude-inspired Palette */
    /* Warm, paper-like background */
    --bg-color: #f7f5f0;
    --bg-secondary: #ebe8e0;

    /* Text Colors */
    --text-primary: #3d3935;
    --text-secondary: #6b665e;

    /* Accents */
    --accent-primary: #d9795c; /* Warm terracotta/orange */
    --accent-hover: #c5664a;
    --accent-subtle: #f2e4dc;

    /* Interface */
    --border-color: #dcd8d0;
    --card-bg: #ffffff;

    /* Spacing & Layout */
    --container-width: 1000px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-reveal: 800ms;

    /* Depth Colors */
    --glow-primary: rgba(217, 121, 92, 0.15);
    --shadow-soft: rgba(61, 57, 53, 0.08);
    --shadow-medium: rgba(61, 57, 53, 0.12);
}

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

body {
    font-family:
        ui-sans-serif,
        -apple-system,
        "system-ui",
        "Segoe UI",
        Helvetica,
        "Hiragino Sans",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans GB",
        "メイリオ",
        Meiryo,
        Arial,
        sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}
h2 {
    font-size: 2.25rem;
}
h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

/* Ripple effect base */
.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.6s ease,
        height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-primary) 0%,
        var(--accent-hover) 100%
    );
    color: white;
    box-shadow: 0 4px 15px rgba(217, 121, 92, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 121, 92, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    color: var(--accent-primary);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(217, 121, 92, 0.05);
}

.icon-btn {
    gap: 0.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition:
        height 0.3s var(--ease-out-expo),
        box-shadow 0.3s ease;
}

/* Header scroll state */
.header-scrolled {
    height: 70px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-scrolled .header-container {
    padding-top: 0;
}

.header-scrolled .logo img {
    max-height: 28px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Back to center for better balance */
    height: 100%;
    padding-top: 10px; /* Reduced from 35px, but still providing some "ue no yohaku" */
}

/* ... existing code ... */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: max-height 0.3s var(--ease-out-expo);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:not(.btn):hover {
    color: var(--accent-primary);
}

/* Keyframe Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealImage {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

/* Hero Accent Line */
.hero-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-hover)
    );
    border-radius: 2px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: scaleIn 0.6s var(--ease-out-back) 0.1s forwards;
}

.demo-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: revealUp var(--duration-reveal) var(--ease-out-expo) 0.2s
        forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: revealUp var(--duration-reveal) var(--ease-out-expo) 0.35s
        forwards;
}

.hero-actions {
    margin-bottom: 4rem;
    opacity: 0;
    animation: revealUp var(--duration-reveal) var(--ease-out-expo) 0.5s
        forwards;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    animation: revealImage 1s var(--ease-out-expo) 0.65s forwards;
}

.hero-main-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
    display: block;
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo);
}

.hero-main-screenshot:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.15),
        0 0 40px var(--glow-primary);
}

/* Mac Window Frame */
.mac-window {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow:
        0 25px 60px -15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo);
}

.mac-window:hover {
    transform: translateY(-4px);
    box-shadow:
        0 35px 70px -15px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mac-window-header {
    background: linear-gradient(180deg, #fafaf8, #f5f4f0);
    height: 36px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mac-window:hover .dot {
    animation: dotPulse 0.6s ease;
}

.dot.red {
    background: #ff5f56;
}
.dot.yellow {
    background: #ffbd2e;
}
.dot.green {
    background: #27c93f;
}

/* Floating styles removed */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* Features */
.features {
    background-color: var(--bg-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    position: relative;
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo);
    overflow: hidden;
}

/* Gradient border effect on hover */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-primary),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Number badge */
.feature-card::after {
    content: attr(data-number);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(61, 57, 53, 0.04);
    line-height: 1;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(217, 121, 92, 0.1);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #faf9f6, #f0ede6);
    border-radius: 16px;
    width: 4rem;
    height: 4rem;
    color: var(--accent-primary);
    transition:
        transform 0.3s var(--ease-out-back),
        background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, var(--accent-subtle), #fce8e0);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.stagger-child.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Specs */
.specs-table-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 0 0 1px var(--border-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1.25rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr {
    transition: background 0.2s ease;
}

.specs-table tr:hover {
    background: rgba(247, 245, 240, 0.5);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table th {
    background-color: transparent;
    font-weight: 600;
    width: 35%;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Download */
.download {
    position: relative;
    text-align: center;
    padding: 140px 0;
    background: var(--bg-color);
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    margin-bottom: 3rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: bottom;
    margin-right: 0.1rem;
}

.price-note {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Pricing */
.pricing {
    position: relative;
    background: var(--bg-color);
}

.pricing-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition:
        transform 0.3s var(--ease-out-expo),
        box-shadow 0.3s var(--ease-out-expo);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Decorative glow element */
.pricing-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle,
        var(--glow-primary) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Badge for one-time purchase */
.pricing-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-subtle);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.pricing-card .price-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-card .price-note {
    display: block;
    margin-bottom: 1rem;
}

.pricing-card .price-desc {
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.pricing-card .btn {
    width: 100%;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: #1f1e1c;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.copyright {
    font-size: 0.875rem;
    color: white;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .header {
        position: relative;
        height: auto;
        padding: 1rem 0;
    }

    .header-container {
        padding-top: 0;
    }

    /* Faster animations on mobile */
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-image {
        animation-duration: 0.6s;
    }

    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-accent {
        width: 40px;
        height: 3px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .hero-actions {
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-main-screenshot {
        margin-bottom: 2rem;
    }

    /* Disable hover effects on touch devices */
    .hero-main-screenshot:hover,
    .feature-card:hover,
    .mac-window:hover,
    .pricing-card:hover {
        transform: none;
    }

    /* Hide number badges on mobile */
    .feature-card::after {
        display: none;
    }

    /* Smaller reveal offset on mobile */
    .reveal-on-scroll {
        transform: translateY(20px);
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .download {
        padding: 60px 0;
    }

    .download h2 {
        font-size: 1.75rem;
    }

    .price {
        font-size: 2rem;
    }

    .price-currency {
        font-size: 1.25rem;
    }

    .price-note {
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card .price {
        font-size: 2.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 0;
    }

    .specs-table tr {
        display: block;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    .specs-table tr:last-child {
        border-bottom: none;
    }

    .specs-table th,
    .specs-table td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
    }

    .specs-table th {
        background: transparent;
        color: var(--text-secondary);
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .specs-table td {
        font-size: 0.95rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .mac-window-header {
        height: 28px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    z-index: 101; /* Above overlay */
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99; /* Below header content but above page */
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-nav-btn {
    width: 100%;
    min-width: 200px;
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 2.5rem;
    }

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

    .logo img {
        max-height: 26px;
    }

    .feature-card {
        padding: 1.25rem;
    }

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

    .section {
        padding: 40px 0;
    }

    .download {
        padding: 50px 0;
    }
}
