/* datar.ai — 視覺語言沿用 www.velaordo.com：深色底、玻璃卡片、漸層標題；品牌紅取自 DataR logo。 */
:root {
    --bg: #06070f;
    --bg-2: #0a0c18;
    --surface: rgba(17, 20, 38, 0.72);
    --surface-solid: #111426;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --dim: #64748b;
    --brand: #ef3e42;
    --rose: #fb7185;
    --violet: #a78bfa;
    --blue: #60a5fa;
    --green: #4ade80;
    --amber: #fbbf24;
    --grad: linear-gradient(100deg, #ff5a5f 0%, #e879f9 48%, #818cf8 100%);
    --radius: 20px;
    --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
    font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s;
}
.nav.scrolled, .nav.open { background: rgba(6, 7, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 29px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 6px 0; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang:hover { color: var(--text); border-color: var(--muted); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .menu-btn { display: flex; }
    .nav-actions .nav-cta { display: none; }   /* 要比後面的 .btn 更具體，否則會被蓋掉 */
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
        background: rgba(6, 7, 15, 0.96); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
        display: none; font-size: 17px;
    }
    .nav.open .nav-links { display: flex; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-links a[aria-current="page"]::after { display: none; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
    border-radius: 14px; padding: 15px 28px; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s;
    border: 0; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 11px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(239, 62, 66, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(232, 121, 249, .55); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; text-align: center; }
.hero.compact { padding: 150px 0 64px; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
    background-image: linear-gradient(rgba(129, 140, 248, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 140, 248, .08) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -220px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(239, 62, 66, .22), rgba(167, 139, 250, .12) 55%, transparent);
    filter: blur(20px);
}
.kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
    font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #fda4af; margin-bottom: 28px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.h1 { font-size: clamp(36px, 6.4vw, 72px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; }
.h1 .grad, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 760px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* 起點不設 opacity 0：動畫沒跑（背景分頁、舊瀏覽器）時文字仍看得到 */
.fade { animation: rise .7s ease-out backwards; }
.fade.d1 { animation-delay: .1s; } .fade.d2 { animation-delay: .22s; } .fade.d3 { animation-delay: .34s; } .fade.d4 { animation-delay: .46s; }
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(17, 20, 38, .55) 20%, rgba(17, 20, 38, .55) 80%, transparent); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--violet); margin-bottom: 14px; text-transform: uppercase; }
.h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.icon {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-rose { color: var(--rose); } .c-violet { color: var(--violet); } .c-blue { color: var(--blue); }
.c-green { color: var(--green); } .c-amber { color: var(--amber); }

/* pillar cards (首頁兩條產品線) */
.pillar { padding: 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.pillar.rpa { border-color: rgba(251, 113, 133, .28); }
.pillar.rpa::before { background: radial-gradient(500px 260px at 0% 0%, rgba(239, 62, 66, .16), transparent 70%); }
.pillar.ai { border-color: rgba(167, 139, 250, .3); }
.pillar.ai::before { background: radial-gradient(500px 260px at 100% 0%, rgba(129, 140, 248, .18), transparent 70%); }
.pillar .tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 14px; }
.pillar h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-bottom: 14px; }
.pillar > p { color: var(--muted); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: #cbd5e1; font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(74, 222, 128, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.pillar .btn { margin-top: auto; align-self: flex-start; }

/* split: robot hands / agent brain */
.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.split .card { border-radius: var(--radius); }
.split .plus { display: grid; place-items: center; padding: 0 18px; font-size: 30px; font-weight: 900; color: var(--dim); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .plus { padding: 12px 0; } }
.mini { font-size: 13px; font-weight: 800; letter-spacing: .12em; margin-bottom: 10px; }
.examples { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.examples li { font-size: 14px; color: #cbd5e1; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: s; content: "0" counter(s); position: absolute; top: 24px; left: 28px;
    font-size: 15px; font-weight: 900; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step .when { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--dim); }

/* stats */
.stat { text-align: center; padding: 30px 20px; }
.stat .v { font-size: 40px; font-weight: 900; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* badges row */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.badge { font-size: 13px; font-weight: 600; color: #cbd5e1; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); }

/* CTA band */
.cta-band {
    border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
    border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(239, 62, 66, .16), rgba(167, 139, 250, .14) 55%, rgba(96, 165, 250, .12));
}
.cta-band p { color: #cbd5e1; max-width: 620px; margin: 16px auto 0; font-size: 18px; }
.cta-band .hero-ctas { margin-top: 32px; }
@media (max-width: 640px) { .cta-band { padding: 48px 22px; } }

/* prose (about) */
.prose { max-width: 760px; margin: 0 auto; color: #cbd5e1; font-size: 17px; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #cbd5e1; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 15px; color: var(--text); background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); background: rgba(255, 255, 255, .07); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: #cbd5e1; transition: all .2s; }
.chip input:checked + span { background: rgba(167, 139, 250, .18); border-color: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--dim); }
.info-list { display: grid; gap: 22px; }
.info-list .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--dim); margin-bottom: 4px; }
.info-list a { color: var(--text); font-weight: 600; }
.info-list a:hover { color: #fda4af; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; background: var(--bg-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 32px; }
.footer h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--dim); margin-bottom: 14px; text-transform: uppercase; }
.footer a { display: block; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-brand img { height: 26px; width: auto; margin-bottom: 16px; }
.footer-brand p, .footer-contact p { color: var(--dim); }
.footer-contact p { margin-top: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-contact { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 160px 0 80px; }
.notfound .big { font-size: 120px; font-weight: 900; line-height: 1; }

/* small print, spacing, status badges inside cards (AI agents page) */
.note { margin-top: 18px; font-size: 13px; color: var(--dim); }
.card .note { margin-top: 14px; }
.note a { color: inherit; text-decoration: underline; }
.gap-top { margin-top: 24px; }
.card > .badge { display: inline-block; margin-bottom: 14px; font-size: 12px; padding: 5px 12px; }
.stat .v { overflow-wrap: anywhere; }

/* contact form: honeypot and send status */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-note a { color: inherit; text-decoration: underline; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.fail { color: var(--rose); }

/* images from the old site: AI hero visual, CTA band backdrop, UiPath certifications */
.hero-visual { max-width: 960px; margin: 48px auto 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-visual img { display: block; width: 100%; height: auto; }
.cta-band.has-img { background: linear-gradient(135deg, rgba(6, 7, 15, .78), rgba(6, 7, 15, .62)), url("/assets/img/ai-wave-wide.jpg") center / cover no-repeat; }
.certs { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: stretch; margin-top: 36px; }
.cert { margin: 0; background: #fff; border-radius: 18px; padding: 14px; display: grid; place-items: center; height: 150px; width: 150px; }
.cert.wide { width: 320px; }
.cert img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) { .cert { height: 120px; width: 120px; } .cert.wide { width: 100%; height: 100px; order: -1; padding: 14px 28px; } }

/* RPA hero: text left, DataR & UiPath art right (source is 400px wide, so it stays small) */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; text-align: left; }
.hero-split .hero-ctas { justify-content: flex-start; }
.hero-split .lead { margin-left: 0; }
.hero-art { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-split .hero-ctas { justify-content: center; }
    .hero-split .lead { margin-left: auto; }
    .hero-art { max-width: 280px; margin: 0 auto; }
}

/* Gartner mention (text only: the Magic Quadrant graphic needs a paid reprint licence) */
.gartner { margin-top: 24px; }
.gartner p { color: var(--muted); }
.gartner-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; margin-top: 14px; font-size: 15px; }
.gartner-links a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gartner-links span { color: var(--dim); font-size: 13px; }
.fineprint { margin: 28px auto 0; max-width: 960px; font-size: 11px; line-height: 1.6; color: var(--dim); }

/* UiPath platform layers on the RPA page */
.layer .plist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.plist li b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.plist li span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* images at the top of the home product-line cards */
.pillar-img { margin: -40px -40px 28px; height: 220px; overflow: hidden; border-bottom: 1px solid var(--line); }
.pillar-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pillar-img.light { background: #fff; }
.pillar-img.light img { object-fit: contain; padding: 12px 0; }
@media (max-width: 640px) { .pillar-img { height: 180px; } }
