/* ============ Xeon Apps — site styles ============ */
:root {
  --ink: #0b1e23;
  --ink-soft: #33474c;
  --muted: #5c6f74;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --line: #e4e2da;
  --accent: #0e9384;
  --accent-deep: #0a5c53;
  --accent-ink: #07332e;
  --amber: #f5a623;
  --dark-bg: #07191d;
  --dark-surface: #0d262c;
  --dark-line: #1c3a41;
  --dark-text: #e8f1ef;
  --dark-muted: #93aeab;
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; font-family: var(--font-body);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #12a893, var(--accent-deep));
  color: #fff; box-shadow: 0 8px 24px rgba(14, 147, 132, .35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(14, 147, 132, .45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 25, 29, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(14,147,132,.28), transparent 60%),
    radial-gradient(700px 420px at -5% 100%, rgba(18,168,147,.14), transparent 60%),
    var(--dark-bg);
  color: var(--dark-text);
  padding: 96px 0 110px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .4; pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: #0e9384; top: -160px; right: -80px; }
.hero-glow-2 { width: 340px; height: 340px; background: #10655c; bottom: -180px; left: -100px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #6fd3c6; margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd4b2; box-shadow: 0 0 0 0 rgba(47,212,178,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,212,178,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,178,0); } }

.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #3ed6bb; position: relative; }
.hero-sub { font-size: 17.5px; color: var(--dark-muted); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 44px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats dt { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats dt .star { color: var(--amber); font-size: 22px; }
.hero-stats dd { font-size: 13px; color: var(--dark-muted); margin-top: 2px; }

/* Floating app cards */
.hero-visual { position: relative; height: 420px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: 14px; padding: 12px 18px 12px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  animation: floaty 6s ease-in-out infinite;
}
.float-card img { width: 44px; height: 44px; border-radius: 10px; }
.float-card strong { display: block; font-size: 14.5px; font-family: var(--font-display); }
.float-card span { font-size: 12px; color: var(--muted); }
.fc-1 { top: 6%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 28%; right: 0; animation-delay: 1.4s; }
.fc-3 { top: 54%; left: 10%; animation-delay: 2.8s; }
.fc-4 { top: 78%; right: 8%; animation-delay: 2s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: #efede7; }
.section-dark { background: var(--dark-bg); color: var(--dark-text); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-dark .kicker { color: #3ed6bb; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section-dark h2 { color: #fff; }
.section-sub { margin-top: 14px; font-size: 16.5px; color: var(--muted); }
.section-dark .section-sub { color: var(--dark-muted); }

/* ============ App cards ============ */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11,30,35,.1); }
.app-head { display: flex; gap: 16px; align-items: center; }
.app-icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 4px 14px rgba(11,30,35,.12); flex: none; }
.app-head h3 { font-size: 19px; font-weight: 700; }
.app-head h3 a:hover { color: var(--accent-deep); }
.app-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.stars { color: var(--amber); letter-spacing: 1.5px; font-size: 13.5px; }
.bfs {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eef7f6; color: var(--accent-deep);
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.bfs svg { width: 9px; height: 9px; fill: var(--accent); }
.app-tag { font-size: 15.5px; color: var(--ink-soft); }
.app-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.app-features li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted); }
.app-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.chip { background: #f1efe9; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; }
.app-links { display: inline-flex; gap: 16px; align-items: center; }
.app-link { font-weight: 600; font-size: 14.5px; color: var(--accent-deep); transition: color .15s; }
.app-link:hover { color: var(--accent); }
.app-link-ext { color: var(--muted); font-weight: 500; }

/* ============ Lifecycle ============ */
.lifecycle {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.lifecycle li {
  background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #3ed6bb; letter-spacing: .1em; }
.lifecycle h3 { font-size: 17.5px; color: #fff; margin: 10px 0 8px; }
.lifecycle p { font-size: 14px; color: var(--dark-muted); }
.lifecycle strong { color: #9fe8dc; font-weight: 600; }

/* ============ Reviews ============ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.review-card blockquote { font-size: 15px; color: var(--ink-soft); flex: 1; }
.review-card figcaption strong { display: block; font-size: 14px; }
.review-card figcaption span { font-size: 12.5px; color: var(--muted); }

/* ============ Why ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #eafaf7, #d3f1ec);
  color: var(--accent-deep); font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.why-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ============ CTA ============ */
.cta { text-align: center; }
.cta-inner { max-width: 660px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); color: #fff; margin-bottom: 18px; }
.cta p { color: var(--dark-muted); font-size: 16.5px; margin-bottom: 32px; }
.cta .hero-actions { justify-content: center; }

/* ============ Footer ============ */
.footer { background: #041114; color: var(--dark-muted); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; font-family: var(--font-display); }
.footer-col a { font-size: 14px; color: var(--dark-muted); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px; }
.footer-bottom p { font-size: 12.5px; color: #5f7a77; }

/* ============ App detail pages ============ */
.app-hero { padding: 72px 0 84px; }
.crumb { font-size: 13.5px; color: var(--dark-muted); margin-bottom: 34px; }
.crumb a { color: #6fd3c6; }
.crumb a:hover { text-decoration: underline; }
.app-hero-main { display: flex; gap: 32px; align-items: flex-start; position: relative; }
.app-hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 18px 44px rgba(0,0,0,.4); flex: none; }
.app-hero-main h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; color: #fff; margin-bottom: 14px; }
.app-hero-main .hero-sub { margin-bottom: 22px; }
.app-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--dark-muted); margin-bottom: 30px; }
.app-hero-meta .stars { font-size: 14px; }
.app-hero-meta .bfs { background: rgba(62,214,187,.12); color: #6fd3c6; }
.app-hero-meta .bfs svg { fill: #3ed6bb; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 12px 32px rgba(14,147,132,.16); }
.plan-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.plan-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.plan-note { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--muted); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-fineprint { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

.reviews-more { margin-top: 34px; text-align: center; }
.reviews-more a { font-weight: 600; font-size: 14.5px; color: var(--accent-deep); }
.reviews-more a:hover { color: var(--accent); }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,30,35,.1); }
.mini-card img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.mini-card strong { display: block; font-family: var(--font-display); font-size: 15px; }
.mini-card span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) {
  .feature-grid, .mini-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-hero-main { flex-direction: column; gap: 22px; }
  .app-hero-icon { width: 84px; height: 84px; }
  .feature-grid, .pricing-grid, .mini-grid { grid-template-columns: 1fr; }
}

/* ============ Blog index ============ */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11,30,35,.1); }
.blog-card-meta { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.blog-card h3 { font-size: 20px; line-height: 1.3; }
.blog-card p { font-size: 14.5px; color: var(--muted); }
.blog-card .app-link { margin-top: auto; padding-top: 8px; }

/* ============ Blog article ============ */
.post-hero { padding: 64px 0 56px; }
.post-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; max-width: 820px; margin-bottom: 18px; line-height: 1.15; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--dark-muted); }
.post-meta img { width: 28px; height: 28px; border-radius: 7px; }

.article { padding: 64px 0 80px; }
.article .container { max-width: 780px; }
.prose { font-size: 16.5px; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 27px; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 20px; margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(14,147,132,.35); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: #edebe4; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
.prose pre {
  background: #0d262c; color: #d9e8e4; border-radius: 12px; padding: 18px 22px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: #efede7; font-family: var(--font-display); font-size: 13px; }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.callout {
  border-left: 3px solid var(--accent); background: #eef7f6;
  border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 15px;
}
.callout strong { color: var(--accent-ink); }
.post-cta {
  margin-top: 2.5em; background: var(--dark-bg); color: var(--dark-text);
  border-radius: var(--radius); padding: 34px 32px; text-align: center;
}
.post-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.post-cta p { color: var(--dark-muted); font-size: 15px; margin-bottom: 20px; }
/* Buttons inside article prose: undo the .prose link styling that made
   white button text render dark-on-teal (invisible) */
.prose a.btn { text-decoration: none; font-weight: 600; }
.prose a.btn-primary { color: #fff; }
.post-cta .btn-primary {
  background: linear-gradient(135deg, #1cc9ae, #0e9384);
  color: #fff; font-size: 16px; padding: 15px 32px;
  box-shadow: 0 10px 32px rgba(28, 201, 174, .45);
}
.post-cta .btn-primary:hover { box-shadow: 0 14px 38px rgba(28, 201, 174, .6); }
.prose details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0; }
.prose details + details { margin-top: 10px; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 15px 18px; font-size: 15.5px; }
.prose details p { padding: 0 18px 15px; margin: 0; font-size: 15px; }
.post-footer-nav { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 14.5px; }

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============ Reveal animation (only hidden when JS is running) ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; max-width: 480px; }
  .app-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .lifecycle, .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-stats { gap: 26px; }
  .app-grid, .review-grid, .lifecycle, .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--dark-bg); padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open a { padding: 10px 0; font-size: 16px; }
  .hero-visual { height: 340px; }
}
