/* ylsys 官網首頁 — 科技感、穩重 */
:root {
    --bg-deep: #0b1220;
    --bg-panel: #121a2b;
    --bg-panel-2: #182338;
    --line: rgba(148, 163, 184, 0.14);
    --text: #e8eef8;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --ok: #34d399;
    --radius: 4px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --font: "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(129, 140, 248, 0.14), transparent 50%),
        linear-gradient(180deg, #0a101c 0%, var(--bg-deep) 40%, #0a0f18 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    opacity: 0.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    position: relative;
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(11, 18, 32, 0.72);
    border-bottom: 1px solid var(--line);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-mark--landing {
    width: 32px;
    height: 32px;
}

    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav a {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: var(--btn-radius, 4px);
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #041018;
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.38);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: var(--accent-soft);
}

/* Hero */
.hero {
    padding: 4.5rem 0 3.2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: var(--accent-soft);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #7dd3fc, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trust-row i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.hero-card {
    background: linear-gradient(160deg, rgba(24, 35, 56, 0.95), rgba(18, 26, 43, 0.92));
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.hero-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.hero-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.tenant-form {
    display: grid;
    gap: 0.7rem;
}

.tenant-form label {
    font-size: 0.82rem;
    color: var(--muted);
}

.tenant-form input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(8, 12, 22, 0.7);
    color: var(--text);
    border-radius: 4px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    outline: none;
}

.tenant-form input:focus {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.tenant-form .btn {
    width: 100%;
}

.demo-link {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.84rem;
    color: #7dd3fc;
}

.demo-link:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 2.4rem 0;
}

.section-head {
    margin-bottom: 1.4rem;
}

.section-head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 40rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature {
    background: rgba(18, 26, 43, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.15rem 1.2rem;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.feature:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(24, 35, 56, 0.9);
    transform: translateY(-2px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    margin-bottom: 0.8rem;
    background: var(--accent-soft);
    color: #7dd3fc;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Contact */
.contact-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(24, 35, 56, 0.95), rgba(14, 20, 34, 0.95));
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-panel h2 {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
}

.contact-panel .desc {
    margin: 0;
    color: var(--muted);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.contact-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    background: rgba(8, 12, 22, 0.45);
    border: 1px solid var(--line);
}

.contact-list .label {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.contact-list .value {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-list a.value:hover {
    color: #7dd3fc;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 1.8rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.site-footer .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
}

@media (max-width: 860px) {
    .hero-grid,
    .contact-panel,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .nav a:not(.btn) {
        display: none;
    }
}
