:root {
    --bg: #050a16;
    --bg-deep: #0b1020;
    --surface: rgba(8, 18, 41, 0.72);
    --surface-strong: rgba(11, 24, 52, 0.92);
    --ink: #f5f7fa;
    --muted: #6b7280;
    --line: rgba(110, 162, 255, 0.18);
    --accent: #2563eb;
    --accent-strong: #0ea5e9;
    --accent-soft: rgba(37, 99, 235, 0.18);
    --white-soft: #f5f7fa;
    --gray-soft: #6b7280;
    --text-soft: rgba(245, 247, 250, 0.72);
    --shadow: 0 24px 80px rgba(1, 7, 20, 0.55);
    --radius: 22px;
    --max-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background:
        linear-gradient(180deg, rgba(11, 16, 32, 0.98) 0%, rgba(5, 10, 22, 1) 100%);
    color: var(--ink);
    overflow-x: hidden;
}

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

.bg-orb,
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-orb {
    filter: blur(60px);
    opacity: 0.55;
}

.bg-orb-one {
    inset: -10% auto auto -8%;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.48) 0%, transparent 68%);
}

.bg-orb-two {
    inset: 8% -8% auto auto;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.32) 0%, transparent 70%);
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 90%);
}

.page-shell {
    position: relative;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 0 0 56px;
    z-index: 1;
}

.topbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 18px 0;
    border-bottom: 1px solid rgba(110, 162, 255, 0.14);
    background: rgba(4, 10, 24, 0.82);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(1, 7, 20, 0.3);
}

.topbar-inner {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: min(270px, 48vw);
    height: auto;
    display: block;
}

.brand-lockup p,
.hero-copy p,
.section-heading p,
.card p,
.details p,
.contact-panel p,
.form-feedback {
    color: var(--text-soft);
    line-height: 1.7;
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: rgba(245, 247, 250, 0.64);
}

.nav a {
    transition: color 180ms ease;
}

.nav a:hover {
    color: var(--white-soft);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding: 64px 0 56px;
    min-height: auto;
}

.eyebrow,
.section-heading span {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.not-found-card h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.32rem, 1.9vw, 1.72rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: none;
    white-space: nowrap;
}

.hero-intro {
    max-width: 760px;
}

.hero-support {
    max-width: 760px;
    color: rgba(245, 247, 250, 0.68);
    font-size: 1.12rem;
    margin: 0 auto;
}

.hero-copy {
    width: 100%;
    max-width: 980px;
}

.hero-copy h1 {
    margin: 0;
    font-family: "Exo 2", "Montserrat", sans-serif;
    font-size: clamp(1.95rem, 3vw, 2.6rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-transform: none;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.hero-copy h1 span {
    display: block;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-intro,
.hero-banner-stage,
.hero-copy,
.impact-strip,
.section,
.story-card,
.contact-panel,
.contact-form {
    animation: rise-in 700ms ease both;
}

.hero-banner-stage {
    animation-delay: 90ms;
}

.impact-strip {
    animation-delay: 140ms;
}

.section:nth-of-type(1) {
    animation-delay: 180ms;
}

.section:nth-of-type(2) {
    animation-delay: 220ms;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    box-shadow: var(--shadow);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(107, 114, 128, 0.26);
    color: var(--white-soft);
}

.card,
.principle,
.story-card,
.contact-panel,
.contact-form,
.not-found-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(110, 162, 255, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-banner-stage {
    width: 100%;
    max-width: 1160px;
}

.hero-banner-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #050a16;
}

.hero-banner-logo {
    width: min(100%, 1080px);
    background: transparent;
}

.section {
    padding: 58px 0;
}

.impact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -8px;
}

.impact-strip div {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(107, 114, 128, 0.22);
    background: rgba(7, 16, 34, 0.76);
    backdrop-filter: blur(16px);
}

.impact-strip strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white-soft);
    font-size: 1rem;
}

.impact-strip span {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.section-accent {
    padding: 46px 32px;
    background:
        linear-gradient(180deg, rgba(10, 20, 44, 0.74), rgba(6, 14, 31, 0.88));
    border-radius: 24px;
    border: 1px solid rgba(110, 162, 255, 0.14);
}

.grid {
    display: grid;
    gap: 20px;
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.card h3,
.principle h3,
.contact-panel h3 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.principle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.principle {
    min-height: 100%;
}

.story-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 20px;
}

.story-main h2 {
    margin: 14px 0 18px;
    font-size: clamp(1.18rem, 1.6vw, 1.55rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.architecture-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.app-showcase {
    grid-template-columns: 1.15fr 0.85fr;
    margin-top: 28px;
}

.apps-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.showcase-card {
    display: grid;
    gap: 24px;
    align-items: center;
    grid-template-columns: 1fr;
    min-height: 100%;
}

.showcase-media {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 20, 44, 0.82), rgba(5, 12, 27, 0.92));
    border: 1px solid rgba(110, 162, 255, 0.14);
}

.showcase-media-coyou {
    padding: 22px;
}

.showcase-media-calrec {
    padding: 22px;
}

.showcase-logo {
    display: block;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.showcase-logo-coyou {
    width: auto;
}

.showcase-logo-calrec {
    width: auto;
}

.showcase-copy h3 {
    margin: 10px 0 14px;
    font-size: clamp(1.28rem, 1.9vw, 1.72rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.showcase-copy p {
    color: var(--text-soft);
    line-height: 1.75;
    margin: 0 0 22px;
}

.app-hero-detail {
    gap: 34px;
}

.app-detail-hero {
    width: 100%;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.app-detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.app-detail-copy p {
    max-width: 44rem;
}

.feature-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.app-card {
    min-height: 100%;
}

.app-card-featured {
    background:
        linear-gradient(180deg, rgba(12, 26, 58, 0.86), rgba(6, 14, 31, 0.94));
}

.app-card-meta h3 {
    margin: 10px 0 0;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.app-card-text {
    color: var(--text-soft);
    line-height: 1.75;
    margin: 18px 0;
}

.app-points {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
    line-height: 1.9;
}

.apps-page .hero {
    padding-bottom: 28px;
}

.app-detail-section {
    margin-top: 12px;
}

.app-detail-header {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}

.app-detail-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-detail-logo {
    width: min(100%, 300px);
    height: auto;
    display: block;
}

.app-detail-logo-coyou {
    width: min(100%, 260px);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(1, 7, 20, 0.28);
}

.app-detail-logo-small {
    width: min(100%, 220px);
}

.app-detail-copy p {
    color: var(--text-soft);
    line-height: 1.8;
}

.app-summary {
    color: var(--white-soft);
    font-weight: 500;
}

.app-detail-grid {
    grid-template-columns: 1.15fr 0.85fr 0.8fr;
    align-items: start;
}

.app-detail-card {
    min-height: 100%;
}

.app-detail-warning {
    background:
        linear-gradient(180deg, rgba(13, 27, 57, 0.92), rgba(7, 15, 34, 0.94));
}

.architecture-card {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(9, 19, 43, 0.88), rgba(5, 11, 23, 0.92));
    border: 1px solid rgba(107, 114, 128, 0.18);
    box-shadow: var(--shadow);
}

.architecture-card h3 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.architecture-card p {
    color: var(--text-soft);
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 20px;
    align-items: start;
    margin-top: 28px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    font: inherit;
    color: var(--white-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.2);
    border-color: var(--accent-strong);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-feedback[data-state="success"] {
    color: #79f2b0;
}

.form-feedback[data-state="error"] {
    color: #ff9d98;
}

.site-footer {
    margin-top: 24px;
    padding: 28px 0 8px;
    border-top: 1px solid rgba(110, 162, 255, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.footer-brand,
.footer-block {
    display: grid;
    gap: 10px;
}

.footer-logo {
    width: min(220px, 42vw);
    height: auto;
    display: block;
}

.footer-brand p,
.footer-block a,
.footer-base p {
    color: var(--text-soft);
    line-height: 1.7;
}

.footer-block span {
    color: var(--white-soft);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-block a {
    transition: color 180ms ease;
}

.footer-block a:hover {
    color: var(--white-soft);
}

.footer-base {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(110, 162, 255, 0.08);
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.not-found-card {
    max-width: 520px;
    text-align: center;
}

.not-found-card span {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
}

code {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .impact-strip,
    .cards,
    .app-showcase,
    .apps-gallery,
    .feature-grid-three,
    .footer-grid,
    .app-detail-header,
    .app-detail-hero,
    .app-detail-grid,
    .principle-grid,
    .story-section,
    .architecture-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .topbar {
        position: static;
        padding: 16px 0;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 56px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .topbar {
        padding: 14px 0;
    }

    .topbar-inner {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .brand-logo {
        width: min(220px, 62vw);
    }

    .hero {
        padding-top: 34px;
        gap: 22px;
    }

    .section-heading h2 {
        line-height: 1;
        white-space: normal;
    }

    .hero-copy h1 {
        font-size: clamp(1.55rem, 6vw, 2rem);
        line-height: 1.22;
    }

    .hero-support {
        font-size: 1rem;
    }

    .hero-card,
    .card,
    .architecture-card,
    .contact-panel,
    .contact-form,
    .not-found-card,
    .section-accent {
        padding: 22px;
    }

    .button,
    .button-primary,
    .button-secondary {
        width: 100%;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
