:root {
    --bg: #eff3f9;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --line: rgba(16, 30, 56, 0.14);
    --ink: #0f1b2d;
    --muted: #4d5d77;
    --brand: #186fff;
    --brand-soft: #27c8d8;
    --accent: #ff7b2c;
    --header-height: 74px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow-lg: 0 26px 68px rgba(15, 27, 45, 0.14);
    --shadow-md: 0 14px 36px rgba(15, 27, 45, 0.1);
    --hero-band-height: 108px;
    --font-main: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-main);
    color: var(--ink);
    line-height: 1.7;
    background:
        radial-gradient(circle at 18% 14%, rgba(24, 111, 255, 0.16), transparent 46%),
        radial-gradient(circle at 88% 8%, rgba(255, 123, 44, 0.14), transparent 42%),
        var(--bg);
}

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

ul {
    list-style: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 1200;
    background: linear-gradient(90deg, var(--brand), var(--brand-soft), var(--accent));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--brand), #2154ff);
    box-shadow: 0 12px 28px rgba(24, 111, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 16px 32px rgba(24, 111, 255, 0.42);
}

.btn-secondary {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
    background: #fff;
    border-color: rgba(24, 111, 255, 0.32);
}

.btn-block {
    width: 100%;
}

.header {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    z-index: 1100;
}

.header-inner {
    height: var(--header-height);
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 34px rgba(16, 30, 56, 0.12);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.08em;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-current {
    color: var(--ink);
}

.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary.is-current {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover,
.lang-switch[aria-current="page"] {
    background: #fff;
    border-color: rgba(24, 111, 255, 0.32);
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + 84px) 0 110px;
}

.hero-orb {
    position: absolute;
    z-index: 0;
    filter: none;
    border-radius: 50%;
    pointer-events: none;
}

.orb-one {
    top: 10%;
    left: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 30% 30%, rgba(39, 200, 216, 0.42), rgba(39, 200, 216, 0));
    animation: float 7s ease-in-out infinite;
}

.orb-two {
    right: -110px;
    bottom: 16%;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle at 70% 70%, rgba(255, 123, 44, 0.35), rgba(255, 123, 44, 0));
    animation: float 9s ease-in-out infinite reverse;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
    align-items: stretch;
}

.hero .reveal {
    opacity: 1;
    transform: none;
}

.hero-subtitle {
    margin-bottom: 14px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 58ch;
    color: var(--muted);
    margin-bottom: 34px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btns-mobile {
    display: none;
    margin-bottom: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric {
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
    min-height: var(--hero-band-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-value {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--ink);
}

.metric-label {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--muted);
}

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: linear-gradient(155deg, rgba(20, 35, 62, 0.95), rgba(34, 53, 90, 0.87));
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7f8fb;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.hero-side-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: var(--hero-band-height);
    align-items: stretch;
}

.hero-side-ctas .btn {
    width: 100%;
    min-height: var(--hero-band-height);
    padding-top: 0;
    padding-bottom: 0;
}

.panel-caption {
    font-size: 0.8rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
}

.hero-panel h2 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.panel-log {
    margin-bottom: 16px;
    display: grid;
    gap: 10px;
}

.panel-log li {
    font-size: 0.9rem;
    color: rgba(247, 248, 251, 0.92);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-soft);
    box-shadow: 0 0 12px rgba(39, 200, 216, 0.6);
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.panel-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    color: rgba(247, 248, 251, 0.95);
    border: 1px solid rgba(247, 248, 251, 0.26);
}

.section {
    padding: 92px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 860px;
}

.section-title {
    font-size: clamp(1.9rem, 4.2vw, 2.7rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.section-desc {
    max-width: 62ch;
    color: var(--muted);
    margin-top: -22px;
    margin-bottom: 44px;
}

.about-content {
    width: 100%;
    padding: 34px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.9));
    box-shadow: var(--shadow-md);
}

.about-content .lead {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 700;
}

.about-content p {
    max-width: 74ch;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(14, 28, 50, 0.18);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
}

.service-card li {
    color: var(--muted);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

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

.demo-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.demo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 185px;
    font-size: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.demo-invoice {
    background: linear-gradient(140deg, #e5edff, #c2d6ff);
}

.demo-bakery {
    background: linear-gradient(140deg, #ffe4c4, #ffba85);
}

.demo-gods {
    background: linear-gradient(140deg, #ffe5cc, #ffd0df 46%, #c7f4ef);
}

.demo-shopify {
    background: linear-gradient(140deg, #d6ffe5, #b8f5d6 52%, #8ce9c2);
}

.demo-pagespeed {
    background: linear-gradient(140deg, #e5f0ff, #d5e6ff 44%, #c7f9e8);
}

.demo-info {
    padding: 20px;
}

.demo-info h3 {
    margin-bottom: 8px;
}

.demo-info p {
    font-size: 0.92rem;
    color: var(--muted);
}

.contact {
    padding-bottom: 108px;
}

.contact-desc {
    color: var(--muted);
    margin-top: -18px;
    margin-bottom: 34px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 34px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(16, 30, 56, 0.18);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    background: rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(24, 111, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(24, 111, 255, 0.12);
}

.form-status {
    min-height: 1.4em;
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--brand);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-status.is-visible {
    opacity: 1;
}

.form-status.is-error {
    color: #c23636;
}

.footer {
    border-top: 1px solid rgba(16, 30, 56, 0.1);
    background: rgba(12, 20, 35, 0.94);
    color: rgba(244, 246, 250, 0.86);
    padding: 30px 0;
    font-size: 0.88rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 140px;
}

.footer .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}

.footer-copy {
    margin: 0;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 14px;
    margin-left: auto;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(244, 246, 250, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 246, 250, 0.2);
    white-space: nowrap;
}

.footer-links a:hover {
    border-bottom-color: rgba(244, 246, 250, 0.65);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.64s ease, transform 0.64s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
}

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

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        max-width: 560px;
    }

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

@media (max-width: 820px) {
    .scroll-progress {
        display: none;
    }

    .header {
        top: 0;
    }

    .header-inner {
        border-radius: 0;
        border-left: none;
        border-right: none;
        height: 68px;
    }

    .header-actions {
        gap: 8px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        padding: 18px 20px 24px;
        border-top: 1px solid rgba(16, 30, 56, 0.1);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 32px rgba(16, 30, 56, 0.12);
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: calc(var(--header-height) + 44px);
    }

    .hero-orb {
        display: none;
    }

    .header-inner,
    .metric {
        backdrop-filter: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .about-content,
    .service-card,
    .demo-card,
    .contact-form {
        box-shadow: none;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-btns-mobile {
        display: flex;
    }

    .hero-side-ctas {
        display: none;
    }

    .footer .container {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        margin-left: 0;
        justify-content: flex-start;
    }

    .services-grid,
    .demos-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
