/* ==========================================================================
   Henor Tech — Stylesheet
   Deep violet + gold/magenta, asymmetric editorial layout
   ========================================================================== */

:root {
  --color-bg: #150f23;
  --color-surface: #1e1733;
  --color-surface-2: #271f42;
  --color-border: rgba(242, 183, 5, 0.14);
  --color-text: #f5f1fb;
  --color-muted: #a79bc4;
  --color-gold: #f2b705;
  --color-pink: #ff3d81;
  --gradient-brand: linear-gradient(135deg, #f2b705 0%, #ff3d81 100%);
  --gradient-text: linear-gradient(135deg, #ffd35c 0%, #ff5c9d 100%);
  --shadow-soft: 0 24px 60px -24px rgba(255, 61, 129, 0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --max-width: 1180px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(560px 380px at 92% -6%, rgba(255, 61, 129, 0.16), transparent 60%),
    radial-gradient(500px 360px at -4% 12%, rgba(242, 183, 5, 0.12), transparent 60%);
  background-repeat: no-repeat;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-brand); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 600px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { margin-top: 14px; color: var(--color-muted); font-size: 1.04rem; font-family: var(--font-body); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary { background: var(--gradient-brand); color: #150f23; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(255, 61, 129, 0.5); }
.btn-outline { background: transparent; color: var(--color-text); border-color: rgba(245,241,251,0.25); }
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(21, 15, 35, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; font-family: var(--font-display); }
.brand img { width: 32px; height: 32px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name span { font-size: 0.6rem; font-weight: 600; color: var(--color-muted); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--color-muted);
  padding: 9px 15px; border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--color-surface); color: var(--color-text); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ==========================================================================
   Hero — asymmetric with orbit illustration
   ========================================================================== */
.hero { padding: 158px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.9rem); }
.hero-sub { margin-top: 22px; font-size: 1.14rem; color: var(--color-muted); max-width: 520px; font-family: var(--font-body); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); }
.hero-stats .stat span { font-size: 0.8rem; color: var(--color-muted); }

.hero-orbit { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.hero-orbit svg { width: 100%; height: 100%; }
.orbit-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5);
}
.orbit-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-brand); }
.orbit-chip.c1 { top: 6%; left: -2%; }
.orbit-chip.c2 { bottom: 12%; right: -4%; }
.orbit-chip.c3 { bottom: -2%; left: 18%; }

/* ==========================================================================
   Services — tabbed showcase
   ========================================================================== */
.services { padding: 110px 0; }
.tabs-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.tabs-nav { display: flex; flex-direction: column; border-right: 1px solid var(--color-border); }
.tab-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 26px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}
.tab-btn:last-child { border-bottom: none; }
.tab-btn .idx { font-size: 0.75rem; font-family: var(--font-body); font-weight: 700; opacity: 0.6; }
.tab-btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.tab-btn.active { background: var(--color-surface-2); color: var(--color-gold); }
.tab-btn.active .idx { color: var(--color-pink); opacity: 1; }

.tab-panels { position: relative; padding: 40px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.tab-panel p.desc { color: var(--color-muted); font-size: 1rem; font-family: var(--font-body); margin-bottom: 26px; }
.tab-features { display: flex; flex-direction: column; gap: 14px; }
.tab-feature { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; font-family: var(--font-body); }
.tab-feature .mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tab-feature .mark svg { width: 12px; height: 12px; stroke: #150f23; }

/* ==========================================================================
   Approach — vertical rail timeline
   ========================================================================== */
.approach { padding: 0 0 110px; }
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline-step { position: relative; padding-bottom: 46px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: -44px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-gold);
}
.timeline-step:nth-child(1)::before { background: var(--gradient-brand); border-color: transparent; }
.timeline-step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.timeline-step p { color: var(--color-muted); font-size: 0.96rem; max-width: 560px; font-family: var(--font-body); }
.timeline-step .step-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-pink); margin-bottom: 8px; display: block; }

/* ==========================================================================
   Why us — masonry tiles
   ========================================================================== */
.why { padding: 0 0 110px; }
.why-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}
.why-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition), border-color var(--transition);
}
.why-tile:hover { transform: translateY(-4px); border-color: rgba(255,61,129,0.4); }
.why-tile h4 { font-size: 1.08rem; margin-bottom: 6px; }
.why-tile p { font-size: 0.88rem; color: var(--color-muted); font-family: var(--font-body); }
.why-tile.big { grid-column: span 2; grid-row: span 2; background: var(--gradient-brand); color: #150f23; justify-content: space-between; }
.why-tile.big h4 { font-size: 1.5rem; color: #150f23; }
.why-tile.big p { color: rgba(21,15,35,0.75); }
.why-tile.tall { grid-row: span 2; }

/* ==========================================================================
   Principle band
   ========================================================================== */
.principle { padding: 0 0 110px; }
.principle-inner { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 60px 0; text-align: center; }
.principle-inner p { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; font-family: var(--font-display); max-width: 780px; margin: 0 auto; }
.principle-inner .sub { display: block; margin-top: 22px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); font-family: var(--font-body); }

/* ==========================================================================
   Closing CTA band
   ========================================================================== */
.cta-band { padding: 0 0 110px; }
.cta-panel {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #150f23;
}
.cta-panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #150f23; max-width: 520px; }
.cta-panel .btn-primary { background: #150f23; color: #fff; box-shadow: none; }
.cta-panel .btn-primary:hover { background: #241a3c; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--color-border); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--color-muted); font-size: 0.9rem; max-width: 300px; font-family: var(--font-body); }
.footer-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-muted); margin-bottom: 16px; font-weight: 700; font-family: var(--font-display); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--color-muted); transition: color var(--transition); font-family: var(--font-body); }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--color-muted); font-family: var(--font-body);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.social-links svg { width: 15px; height: 15px; stroke: var(--color-muted); }
.social-links a:hover svg { stroke: var(--color-gold); }

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-brand); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: #150f23; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 22px; gap: 6px; align-items: flex-start;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { order: -1; max-width: 320px; margin: 0 auto; }
  .tabs-shell { grid-template-columns: 1fr; }
  .tabs-nav { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--color-border); }
  .tab-btn { border-bottom: none; border-right: 1px solid var(--color-border); white-space: nowrap; }
  .why-masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .why-tile.big { grid-column: span 2; }
  .cta-panel { flex-direction: column; text-align: center; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .why-masonry { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .why-tile { min-height: 130px; }
  .why-tile.big, .why-tile.tall { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
