/* ===== CSS Variables ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1d2e;
    --text-secondary: #5f6580;
    --text-muted: #9498b3;
    --accent: #2563EB;
    --accent-light: #3b82f6;
    --accent-dark: #1e40af;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-bg: rgba(37, 99, 235, 0.06);
    --gradient: linear-gradient(135deg, #2563EB, #3b82f6);
    --gradient-text: linear-gradient(135deg, #1e40af, #3b82f6);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1100px;
    --font-main: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

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

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

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    gap: 60px;
    max-width: var(--container);
    margin: 0 auto;
    overflow: visible;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: #2563EB;
    top: -10%;
    left: -10%;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: #60a5fa;
    bottom: 0;
    right: -5%;
    opacity: 0.1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-bg);
    border: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 0;
    align-items: center;
}

.stat {
    text-align: center;
    padding: 0 20px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-card);
}

/* ===== Hero Compatible Tools ===== */
.hero-tools {
    margin-top: 32px;
}

.hero-tools-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.hero-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tool-badge:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ===== Hero Visual / Phone Mockup ===== */
.hero-visual {
    flex-shrink: 0;
    z-index: 1;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1d2e;
    border-radius: 40px;
    border: 4px solid #e2e8f0;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e2235, #252a40);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.mock-header {
    text-align: center;
}

.mock-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.mock-title {
    font-weight: 700;
    font-size: 18px;
    color: #93c5fd;
}

.mock-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 80px;
    padding: 0 20px;
}

.wave-bar {
    width: 6px;
    border-radius: 3px;
    background: var(--gradient);
    height: var(--h);
    animation: wave 1.2s ease-in-out infinite alternate;
    animation-delay: var(--d);
}

@keyframes wave {
    0% {
        height: 20%;
        opacity: 0.5;
    }

    100% {
        height: var(--h);
        opacity: 1;
    }
}

.mock-timer {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    color: #f0f0f5;
}

.mock-btn-wrap {
    display: flex;
    justify-content: center;
}

.mock-rec-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rec-pulse 2s ease-in-out infinite;
}

@keyframes rec-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.mock-rec-inner {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ef4444;
}

.mock-status {
    font-size: 14px;
    color: #ef4444;
    font-weight: 600;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ===== Features ===== */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
    box-shadow: var(--shadow-sm);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card-highlight {
    border-color: rgba(37, 99, 235, 0.25);
    background: var(--accent-bg);
    grid-column: 1 / -1;
}

.feature-card-highlight .feature-icon {
    background: rgba(37, 99, 235, 0.15);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(24px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
}

.step-connector {
    width: 2px;
    height: 32px;
    margin-left: 23px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

/* ===== Security ===== */
.security {
    padding: 120px 0;
    background: var(--bg-primary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
    box-shadow: var(--shadow-sm);
}

.security-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.security-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.security-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.security-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.security-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Pricing / Cost Comparison ===== */
.pricing {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.pricing-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 36px;
    opacity: 0;
    transform: translateY(24px);
    box-shadow: var(--shadow-sm);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card-header {
    margin-bottom: 20px;
}

.pricing-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
}

.pricing-label-highlight {
    font-size: 14px;
    font-weight: 700;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--gradient);
}

.pricing-price {
    margin-bottom: 24px;
}

.pricing-amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
}

.pricing-amount-highlight {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.pricing-item-negative::before {
    content: "✕";
    color: #ef4444;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-item-negative {
    color: var(--text-muted);
}

.pricing-item-positive::before {
    content: "✓";
    color: #22c55e;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-item-positive {
    color: var(--text-primary);
}

.pricing-ours {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* ===== Platforms ===== */
.platforms {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
    box-shadow: var(--shadow-sm);
}

.platform-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.platform-icon {
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.platform-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.platform-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: var(--accent-bg);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent);
}

/* ===== CTA ===== */
.cta {
    padding: 120px 0;
    background: var(--bg-primary);
}

.cta-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent);
    filter: blur(200px);
    opacity: 0.06;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-primary);
}

.cta-card p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    position: relative;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-card);
    background: var(--bg-primary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Animations ===== */
[data-animate] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

[data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

[data-animate]:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 80px 20px 40px;
        min-height: auto;
        gap: 32px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .hero-desc br {
        display: none;
    }

    .hero-badge {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 32px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat {
        padding: 0 12px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-divider {
        height: 28px;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 160px;
        height: 320px;
        border-radius: 28px;
        border-width: 3px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 22px;
        gap: 12px;
    }

    .mock-icon {
        font-size: 20px;
    }

    .mock-title {
        font-size: 13px;
    }

    .mock-timer {
        font-size: 24px;
    }

    .mock-waveform {
        height: 40px;
    }

    .wave-bar {
        width: 4px;
    }

    .mock-rec-btn {
        width: 40px;
        height: 40px;
    }

    .mock-rec-inner {
        width: 18px;
        height: 18px;
        border-radius: 4px;
    }

    .mock-status {
        font-size: 11px;
    }

    .hero-tools {
        margin-top: 24px;
    }

    .hero-tools-label {
        font-size: 11px;
    }

    .hero-tools-list {
        justify-content: center;
    }

    .tool-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .nav-links {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .features,
    .how-it-works,
    .security,
    .pricing,
    .platforms,
    .cta {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 15px;
    }

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

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

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

    .pricing-compare {
        grid-template-columns: 1fr;
    }

    .pricing-amount,
    .pricing-amount-highlight {
        font-size: 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}