/* TapKube product site styles — self-contained, no external fonts/frameworks */

:root {
  --brand: #0a59f7;
  --brand-600: #0a4ee0;
  --brand-300: #6ea0ff;
  --brand-050: #eef4ff;
  --ink: #0b1220;
  --ink-2: #3a4252;
  --muted: #6b7280;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 10px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 60px rgba(10, 89, 247, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --grad: linear-gradient(135deg, #0a59f7 0%, #4f8bff 55%, #7ad1ff 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2fb;
    --ink-2: #c4ccdb;
    --muted: #94a0b8;
    --line: #232a3a;
    --bg: #0b0f1a;
    --bg-alt: #0f1422;
    --card: #141a28;
    --brand-050: #16203a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); display: inline-flex; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { color: var(--brand) !important; font-weight: 600 !important; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 18px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, color .15s ease;
}
.lang-btn:hover { border-color: var(--brand-300); color: var(--brand); }
.lang-current { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 172px;
  list-style: none; margin: 0; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px); z-index: 60;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
}
.lang-opt:hover { background: var(--brand-050); color: var(--brand); }
.lang-opt[aria-current="true"] { color: var(--brand); font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand); background: var(--brand-050); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 0; }
.hero-stats strong { display: block; font-size: 28px; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Phone mockup */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1a2233, #0b1220);
  box-shadow: var(--shadow-lg); position: relative;
}
.phone-notch { width: 110px; height: 22px; background: #05080f; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone-screen {
  margin-top: 8px; border-radius: 30px; overflow: hidden; height: calc(100% - 30px);
  background: var(--bg-alt); display: flex; flex-direction: column;
}
.mock-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mock-dots { color: var(--brand); letter-spacing: 2px; }
.mock-cluster { background: var(--card); margin: 8px 12px; border-radius: 14px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 13px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-tag { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: #22c55e; } .dot-amber { background: #f59e0b; }
.mock-cards { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 4px 12px; }
.mock-card { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.mock-card-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.mock-num { color: var(--ink); font-weight: 700; }
.mock-bar { height: 6px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.mock-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 8px 16px; background: var(--card); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.mock-tabbar .active { color: var(--brand); font-weight: 700; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; background: var(--bg-alt); -webkit-mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%); mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.01em; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 0; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); font-weight: 800; font-size: 15px;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.feature-card h3 { font-size: 18px; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature-card code { background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; font-size: 13px; color: var(--brand); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 880px; margin: 0 auto; }
.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand); transform: translateY(-1px); }
.chip-accent { color: var(--brand); border-color: var(--brand-300); background: var(--brand-050); }
.chip-more { color: var(--muted); border-style: dashed; }

/* Cloud import */
.section-cloud { background: linear-gradient(180deg, var(--brand-050) 0%, var(--bg-alt) 100%); }
.cloud-providers { margin-bottom: 34px; }
.cloud-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cloud-note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }

/* Devices */
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.device-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 24px; box-shadow: var(--shadow-sm); }
.device-emoji { font-size: 40px; margin-bottom: 12px; }
.device-card h3 { margin: 0 0 8px; font-size: 20px; }
.device-card h3 span { font-size: 13px; color: var(--muted); font-weight: 600; font-family: ui-monospace, monospace; }
.device-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Tech */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.tech-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.tech-item span { color: var(--muted); font-size: 14px; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; background: var(--grad); border-radius: 28px; padding: 56px 32px; box-shadow: var(--shadow-lg); }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.cta-inner p { color: rgba(255, 255, 255, .92); margin: 0 0 26px; font-size: 17px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-inner .btn-primary { background: #fff; color: var(--brand); }
.cta-inner .btn-primary:hover { background: #f1f5ff; }
.cta-inner .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-inner .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note { margin: 22px 0 0 !important; font-size: 13px !important; letter-spacing: .08em; opacity: .85; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand strong { display: block; font-size: 16px; }
.footer-brand span { font-size: 13px; color: var(--muted); }
.footer-mark { color: var(--brand); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-copy { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .feature-grid, .cloud-grid, .device-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 24px 16px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .feature-grid, .cloud-grid, .device-grid, .tech-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; }
}
