/* =========================================================
   SOLUSI HOMY — Coming Soon
   Design tokens (warna diambil dari logo; override via config.js)
   ========================================================= */
:root {
  --primary: #0B6FDC;        /* logo: "Solusi" & rumah  */
  --primary-dark: #0856AD;
  --primary-light: #3588D1;  /* logo: "Homy" & tagline  */
  --primary-soft: #E8F2FD;

  --background: #F7FAFE;
  --surface: #FFFFFF;
  --text-primary: #0F2340;
  --text-secondary: #4A5B73;
  --text-muted: #7A8AA0;
  --border: #DFE8F3;
  --success: #1E9E62;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .06);
  --shadow: 0 10px 30px -12px rgba(11, 111, 220, .18), 0 2px 6px rgba(15, 35, 64, .05);
  --shadow-lg: 0 24px 60px -24px rgba(11, 111, 220, .32);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.text-primary { color: var(--primary); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 1rem/1.2 var(--font);
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 111, 220, .65); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(11, 111, 220, .7); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.btn-ghost .icon { transition: transform .2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }
.btn-white:hover { transform: translateY(-2px); color: var(--primary-dark); }
.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; padding: 6px 0; }
.brand-logo { width: 136px; height: auto; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { font-weight: 600; font-size: .9375rem; color: var(--text-secondary); transition: color .2s; }
.header-nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 clamp(96px, 12vw, 140px);
  background:
    radial-gradient(60% 70% at 88% 10%, var(--primary-soft) 0%, rgba(232, 242, 253, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--background) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 64px); }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(11, 111, 220, .15);
  border-radius: 999px;
}
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.badge-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero-title .text-primary { display: inline-block; }
.hero-sub { margin-top: 18px; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-secondary); }
.hero-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; max-width: 34rem;
  padding: 12px 14px;
  font-size: .9375rem; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.hero-note .icon { color: var(--primary); margin-top: 2px; width: 18px; height: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-segments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 24px; font-size: .9375rem; font-weight: 600; color: var(--text-muted); }
.hero-segments::before { content: "Melayani:"; margin-right: 10px; color: var(--text-secondary); }
.hero-segments li + li::before { content: "•"; margin: 0 10px; color: var(--primary-light); }

.hero-visual { position: relative; max-width: 560px; justify-self: end; width: 100%; }
.hero-visual > img { width: 100%; border-radius: 32px; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .9375rem; line-height: 1.3;
}
.float-chip strong { display: block; font-weight: 700; }
.float-chip small { display: block; font-size: .8125rem; color: var(--text-secondary); }
.chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.chip-a { left: -28px; bottom: 22%; animation: float 6s ease-in-out -2s infinite; }
.chip-b { right: -16px; top: 42%; animation: float 6.5s ease-in-out -4s infinite; }

/* ---------- Coming soon ---------- */
.coming { position: relative; z-index: 2; margin-top: clamp(-72px, -8vw, -48px); }
.coming-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.coming-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; }
.coming-text p:last-child { margin-top: 10px; max-width: 34rem; color: var(--text-secondary); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 88px; padding: 16px 8px 12px;
  background: var(--primary-soft); border-radius: var(--radius);
}
.cd-num {
  display: block; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1;
  color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.cd-num.tick { animation: tick .45s var(--ease); }
.cd-label { margin-top: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.countdown-done { grid-column: 1 / -1; font-weight: 700; color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: linear-gradient(180deg, var(--primary-soft) 0%, rgba(232, 242, 253, .4) 100%); }
.section-head { max-width: 40rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2, .why-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.section-head p:last-child, .why-head p:last-child { margin-top: 12px; color: var(--text-secondary); font-size: 1.0625rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11, 111, 220, .25); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  transition: background-color .25s, color .25s;
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-num { font-size: .875rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.service-card h3 { font-size: 1.1875rem; font-weight: 700; }
.service-card p { margin-top: 8px; color: var(--text-secondary); flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 18px; padding: 6px 0;
  font-weight: 700; font-size: .9375rem; color: var(--primary);
}
.service-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.service-link:hover .icon { transform: translateX(4px); }

/* Why */
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-item {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.why-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; }
.why-item h3 { font-size: 1.0625rem; font-weight: 700; }
.why-item p { margin-top: 6px; font-size: .9375rem; color: var(--text-secondary); }

/* CTA */
.section-cta { padding-bottom: clamp(56px, 8vw, 96px); }
.cta-panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
}
.cta-panel::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none;
}
.cta-copy { position: relative; max-width: 36rem; }
.cta-copy h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); font-weight: 800; }
.cta-copy p { margin-top: 10px; color: rgba(255, 255, 255, .88); font-size: 1.0625rem; }
.cta-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; }
.cta-ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255, 255, 255, .92); padding: 6px 8px; }
.cta-ig:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand img { width: 128px; }
.footer-services { margin-top: 16px; font-weight: 700; color: var(--text-primary); }
.footer-quote { margin-top: 6px; max-width: 26rem; color: var(--text-secondary); }
.footer-title { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-contact li + li { margin-top: 8px; }
.footer-contact a, .footer-address { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; color: var(--text-secondary); }
.footer-contact a:hover { color: var(--primary); }
.footer-contact .icon { color: var(--primary); }
.footer-address { align-items: flex-start; font-weight: 500; max-width: 22rem; }
.footer-bottom { font-size: .875rem; color: var(--text-muted); }
.footer-bottom p { padding-block: 20px; border-top: 1px solid var(--border); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(20, 120, 60, .55);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-2px); }
html:not(.js) .wa-float { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .35; } 100% { transform: none; opacity: 1; } }

.anim { animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(3n+2), .why-list .reveal:nth-child(2n) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .badge-dot::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chip-a { left: -8px; }
  .chip-b { right: -8px; }
  .coming-card { grid-template-columns: 1fr; }
  .countdown { max-width: 520px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub, .hero-note { margin-inline: auto; }
  .hero-note { text-align: left; }
  .hero-actions, .hero-segments { justify-content: center; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .why-head { text-align: center; max-width: 40rem; margin-inline: auto; }
  .cta-panel { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 104px; }
  .hero-title { margin-top: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding-inline: 20px; }
  .hero-segments { font-size: .875rem; }
  .hero-segments::before { flex-basis: 100%; margin: 0 0 2px; }
  .float-chip { padding: 8px 12px 8px 8px; font-size: .8125rem; }
  .float-chip small { display: none; }
  .chip-icon { width: 32px; height: 32px; border-radius: 10px; }
  .chip-icon .icon { width: 18px; height: 18px; }
  .chip-a { left: 8px; bottom: 10px; }
  .chip-b { right: 8px; top: 12px; }
  .countdown { gap: 8px; max-width: none; }
  .cd-unit { min-width: 0; padding: 14px 4px 10px; border-radius: 12px; }
  .cd-label { font-size: .6875rem; letter-spacing: .04em; }
  .services-grid, .why-list { grid-template-columns: 1fr; }
  .service-card { padding: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .cta-panel { padding: 28px 18px; }
  .cta-actions .btn { padding-inline: 14px; font-size: 1rem; }
  .footer-bottom p { padding-bottom: 88px; } /* ruang untuk tombol WA mengambang */
  .why-item { flex-direction: row; }
}

@media (max-width: 380px) {
  .hide-xs { display: none; }
  .hero-title { font-size: 2rem; }
  .btn-lg { font-size: 1rem; }
}
