/* UPTECH HR Cloud — landing page. Same palette as the app (Angular Project/src/styles.scss). */
:root {
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-rgb: 79, 70, 229;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --bg: #ffffff; --bg-alt: #f5f6fb; --card: #ffffff; --border: #e5e7f0; --text: #141a2e; --text-2: #4a5270; --text-3: #7c84a3;
  --green: #12a150; --amber: #c27803; --violet: #7c3aed; --shadow: 0 1px 2px rgba(20,26,46,.05), 0 8px 30px rgba(20,26,46,.08);
  --shadow-lg: 0 30px 80px rgba(20, 26, 46, .22); --radius: 18px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b0f1d; --bg-alt: #0f1526; --card: #131a2c; --border: #232c45; --text: #e8ebf7; --text-2: #aab2cf; --text-3: #76809f;
  --green: #34d27b; --amber: #f5b53d; --violet: #a78bfa; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.3); --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.light-only { display: block; } .dark-only { display: none; }
:root[data-theme='dark'] .light-only { display: none; } :root[data-theme='dark'] .dark-only { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(var(--brand-rgb), .38); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 12px 30px rgba(var(--brand-rgb), .45); transform: translateY(-1px); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.2); }
.btn.white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn.white:hover { transform: translateY(-1px); }
.btn.lg { height: 48px; padding: 0 22px; }
.btn.xl { height: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--card); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.i-sun { display: none; } :root[data-theme='dark'] .i-sun { display: block; } :root[data-theme='dark'] .i-moon { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(20,26,46,.06); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.logo b { font-weight: 800; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .38); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--text-2); font-weight: 550; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav-links, .hide-sm { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu.open { display: flex; flex-direction: column; padding: 8px 20px 18px; border-top: 1px solid var(--border); background: var(--bg); }
  .mobile-menu a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 56px;
  background: radial-gradient(1000px 600px at 85% -10%, rgba(167,139,250,.45), transparent 60%), radial-gradient(800px 500px at -10% 20%, rgba(99,102,241,.5), transparent 60%), linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%); }
.hero-glow { position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 550; color: rgba(255,255,255,.92); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; margin-top: 22px; letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, #c4b5fd, #f0abfc 55%, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: rgba(255,255,255,.8); margin-top: 20px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-ctas.center { justify-content: center; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: rgba(255,255,255,.75); }
.hero-points li::before { content: '✓'; color: #34d399; font-weight: 800; margin-right: 7px; }

.hero-visual { position: relative; }
.browser { border-radius: 14px; overflow: hidden; background: #0b0f1d; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b2238; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a4361; }
.browser-bar span:nth-child(1) { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em { margin: 0 auto; font-style: normal; font-size: 12px; color: #8a93b3; background: #0f1526; padding: 3px 16px; border-radius: 7px; transform: translateX(-20px); }
.hero .browser { transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; }
.float { position: absolute; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: #141a2e; border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 14px; }
.float small { color: #6b7391; }
.f-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.f-ic.green { background: #12a150; } .f-ic.violet { background: #7c3aed; }
.f1 { left: -34px; bottom: 54px; }
.f2 { right: -18px; top: 46px; animation-delay: -2s; }
.f3 { right: 28px; bottom: -26px; flex-direction: column; align-items: stretch; gap: 4px; min-width: 220px; animation-delay: -4s; }
.f3 b { font-size: 21px; letter-spacing: -0.02em; }
.f3 .bar { display: block; height: 6px; border-radius: 6px; background: #eef0f7; overflow: hidden; margin: 4px 0; }
.f3 .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #12a150, #34d399); }
.f3 .ok { color: #12a150; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; padding: 26px 30px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.stats div { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stats span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.72); }
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .browser { transform: none; }
  .f1 { left: 10px; } .f2 { right: 10px; } .f3 { right: 10px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .float { display: none; }
  .f3 { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
:root[data-theme='dark'] .eyebrow { color: #a5b4fc; }
.eyebrow.light { color: #c4b5fd; }
.section h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--text-2); margin-top: 16px; }
@media (max-width: 640px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .35); }
.feature h3 { font-size: 18px; margin-top: 18px; }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.f-icon, .role-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.f-icon svg, .role-ic svg { width: 22px; height: 22px; }
.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .c2 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.c3 { background: linear-gradient(135deg, #f59e0b, #f97316); } .c4 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.c5 { background: linear-gradient(135deg, #3b82f6, #06b6d4); } .c6 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.c7 { background: linear-gradient(135deg, #f97316, #ef4444); } .c8 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* splits */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.reverse .split-copy { order: 2; }
.split-copy p { font-size: 17.5px; color: var(--text-2); margin-top: 16px; }
.browser.small { border-radius: 12px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--brand-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks.light li { color: rgba(255,255,255,.82); }
.ticks.light li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse .split-copy { order: 0; } .split + .split { margin-top: 80px; } }

/* mobile phones */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.mobile-copy p { font-size: 17.5px; color: var(--text-2); margin: 16px 0 28px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 240px; border-radius: 34px; padding: 9px; background: #10131f; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2f45; }
.phone img { border-radius: 26px; }
.phone.p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.phone.p2 { left: 4%; top: 60px; transform: rotate(-7deg); z-index: 2; }
.phone.p3 { right: 4%; top: 60px; transform: rotate(7deg); z-index: 1; }
@media (max-width: 920px) { .mobile-grid { grid-template-columns: 1fr; } .phones { height: 500px; } }
@media (max-width: 560px) { .phone { width: 190px; } .phone.p2 { left: -6%; } .phone.p3 { right: -6%; } .phones { height: 430px; } }

/* tour */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tour-tabs button { font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); cursor: pointer; transition: all .15s; }
.tour-tabs button:hover { color: var(--text); border-color: rgba(var(--brand-rgb), .45); }
.tour-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .35); }
.tour-frame { max-width: 1080px; margin: 0 auto; }
.tour-frame img { transition: opacity .25s; }
.tour-frame img.fading { opacity: 0; }
.tour-cap { text-align: center; color: var(--text-2); margin-top: 20px; font-size: 15.5px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.role { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .45); }
.role b { font-size: 17px; margin-top: 12px; }
.role span:not(.role-ic) { color: var(--text-2); font-size: 14.5px; flex: 1; }
.role em { font-style: normal; color: var(--brand); font-weight: 650; font-size: 14px; margin-top: 10px; }
:root[data-theme='dark'] .role em { color: #a5b4fc; }
.note { text-align: center; color: var(--text-3); margin-top: 26px; font-size: 14.5px; }
@media (max-width: 1100px) { .roles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .roles { grid-template-columns: 1fr; } }

/* dark band */
.dark-band { background: linear-gradient(160deg, #0f172a, #1e1b4b 60%, #312e81); color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.dark-band h2 { color: #fff; }
.muted-light { color: rgba(255,255,255,.75); font-size: 17px; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 14px; font-weight: 550; }
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; gap: 56px; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; box-shadow: 0 24px 60px rgba(var(--brand-rgb), .22); transform: translateY(-8px); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; }
.price span { color: var(--text-3); font-size: 14.5px; }
.plan-limit { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.source-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; max-width: 1080px; margin: 40px auto 0; padding: 22px 26px; border-radius: 18px; border: 1px dashed rgba(var(--brand-rgb), .4); background: rgba(var(--brand-rgb), .05); flex-wrap: wrap; }
.source-cta b { display: block; font-size: 17px; }
.source-cta span { color: var(--text-2); font-size: 15px; }
.source-cta div { flex: 1 1 420px; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 460px; } .plan.featured { transform: none; } }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 4px 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; font-size: 15.5px; }

/* cta */
.cta-band { padding: 96px 0; color: #fff; text-align: center; background: radial-gradient(800px 400px at 50% -20%, rgba(255,255,255,.18), transparent 60%), var(--grad); }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,.85); margin-top: 14px; }

/* footer */
.footer { padding: 46px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 24px 40px; align-items: start; }
.footer p { color: var(--text-3); font-size: 14.5px; margin-top: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: flex-end; }
.footer nav a { color: var(--text-2); font-weight: 550; font-size: 15px; }
.footer nav a:hover { color: var(--brand); }
.footer .copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--border); margin-top: 6px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer nav { justify-content: flex-start; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float { animation: none; } html { scroll-behavior: auto; } }

/* small phones: keep everything inside the screen width */
.mobile-section { overflow: hidden; }
html, body { overflow-x: clip; }
@media (max-width: 440px) {
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-actions .btn.primary { padding: 0 12px; height: 38px; font-size: 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .btn.xl { width: 100%; }
}
