/* ==========================================================
   SG Creative Studio | Coming Soon
   Palette: navy #101B35, blue #246BFD, paper #F5F7FC
   Font: Poppins
   ========================================================== */

:root {
  --navy: #101b35;
  --navy-2: #1a2a4f;
  --blue: #246bfd;
  --blue-soft: #7aa6ff;
  --paper: #f5f7fc;
  --white: #ffffff;
  --ink: #101b35;
  --ink-muted: #56607a;
  --line: rgba(16, 27, 53, .14);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(1200px, 90vw);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font: 500 .95rem/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1a5bf0; }
.btn-ghost { color: var(--white); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--white); }
.btn-small { padding: .7rem 1.2rem; font-size: .85rem; background: var(--navy); color: var(--white); }
.btn-small:hover { background: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 6vw;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo-chip {
  display: block;
  background: var(--white);
  border-radius: 14px;
  padding: .55rem .9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.logo-chip img { width: clamp(150px, 16vw, 210px); height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3vw;
  padding: 9rem 6vw 6rem;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  animation: drift 40s linear infinite;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: float 16s ease-in-out infinite alternate;
}
.blob-a {
  width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  right: -8vw; top: 8%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
}
.blob-b {
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  left: -6vw; bottom: -6%;
  background: radial-gradient(circle, #3b5bdb 0%, transparent 70%);
  animation-delay: -6s;
  opacity: .35;
}

.hero-copy { max-width: 46rem; }

.label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--blue-soft);
  margin: 0 0 1.6rem;
}

.display {
  margin: 0 0 1.6rem;
  font-size: clamp(2.7rem, 7.2vw, 6.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.display .line > span {
  display: inline-block;
  animation: rise 1s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.lead {
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, .78);
  margin: 0 0 2.2rem;
}

.brand-block { margin-bottom: 2.4rem; }
.brand-name {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.services-line {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--blue-soft);
  letter-spacing: .04em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* 3D hex stack */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.stage {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  perspective: 1100px;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 107, 253, .55), transparent 65%);
  filter: blur(30px);
}
.tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, -8deg)) rotateY(var(--ty, 12deg));
  transition: transform .6s var(--ease);
}
.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: spin 26s linear infinite;
}
.slab {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
}
.slab-back  { inset: 6%;  background: linear-gradient(160deg, #22386a, #0c1528); transform: translateZ(-90px); }
.slab-mid   { inset: 14%; background: linear-gradient(135deg, #2e5fd6, #1b3d8f); transform: translateZ(-20px); opacity: .95; }
.slab-front { inset: 22%; background: linear-gradient(135deg, #6e9bff, var(--blue)); transform: translateZ(60px); box-shadow: 0 0 60px rgba(36, 107, 253, .6); }
.slab-core  { inset: 36%; background: var(--white); transform: translateZ(130px); opacity: .92; }

/* ---------- Countdown ---------- */
.countdown { padding: 7rem 0 6rem; }

.section-title {
  margin: 0 0 3rem;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cell {
  padding: 2.4rem 1rem 2rem;
  text-align: left;
  border-left: 1px solid var(--line);
}
.cell:first-child { border-left: 0; }
.cell span {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.cell small {
  display: block;
  margin-top: .8rem;
  font-size: .95rem;
  color: var(--ink-muted);
}

.timer-note {
  margin: 1.4rem 0 0;
  font-size: .95rem;
  color: var(--ink-muted);
  min-height: 1.6em;
}

/* ---------- Services ---------- */
.services { padding: 0 0 7rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  position: relative;
  padding: 2.4rem 2rem 2.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 107, 253, .35);
  box-shadow: 0 24px 50px -24px rgba(16, 27, 53, .35);
}
.service:hover::before { transform: scaleX(1); }

.service-num {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 2.2rem;
}
.service h3 {
  margin: 0 0 .9rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.service p {
  margin: 0;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 6rem 0 7rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.big-email {
  display: inline-block;
  font-size: clamp(1.6rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 100% / 0 3px;
  padding-bottom: .15em;
  transition: background-size .6s var(--ease), color .3s;
  overflow-wrap: anywhere;
}
.big-email:hover { background-size: 100% 3px; color: var(--blue); }

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  list-style: none;
  margin: 3.2rem 0 0;
  padding: 0;
}
.channels a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.channels a:hover { color: var(--blue); border-color: var(--blue); }
.channels svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
}
.footer-inner p { margin: 0; }

/* ---------- Entrance motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, -4vh, 0) scale(1.08); }
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}
@keyframes spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 8rem 6vw 4rem;
    min-height: auto;
  }
  .hero-visual { min-height: 320px; order: 2; }
  .stage { width: min(340px, 72vw); }
  .service-grid { grid-template-columns: 1fr; }
  .timer { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(3) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .hero { padding-top: 7.5rem; }
  .label { font-size: .68rem; letter-spacing: .16em; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .cell { padding: 1.8rem .6rem 1.5rem; }
  .countdown, .services { padding-bottom: 4.5rem; }
  .contact { padding: 4.5rem 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .cube { animation: none; transform: rotateY(25deg); }
  .reveal { opacity: 1; transform: none; }
}
