/* ============================================================
   GRIHAX — Coming Soon Page Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g:    #228b3c;
  --gm:   #1a7030;
  --gl:   #4caf68;
  --gxl:  #e8f5ec;
  --dk:   #133d1e;
  --dk2:  #0e2d16;
  --or:   #f97316;
  --orl:  #fff3eb;
  --tx:   #111827;
  --tx2:  #4b5563;
  --bd:   #e5e7eb;
  --wh:   #ffffff;
  --bg:   #f8faf8;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--dk2);
  color: var(--wh);
  overflow-x: hidden;
}

/* ---------- Background Canvas ---------- */
.cs-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0a1f0e 0%, #133d1e 40%, #0e2d16 70%, #061209 100%);
  overflow: hidden;
}

/* Animated gradient orbs */
.cs-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,139,60,0.18) 0%, transparent 70%);
  top: -180px; left: -180px;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.cs-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  bottom: -120px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

/* Grid overlay */
.cs-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Wrapper ---------- */
.cs-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 0;
}

/* ---------- Logo ---------- */
.cs-logo {
  margin-bottom: 48px;
  animation: fadeDown .7s ease both;
}
.cs-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* ---------- Badge ---------- */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,139,60,.18);
  border: 1px solid rgba(76,175,104,.35);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gl);
  margin-bottom: 28px;
  animation: fadeDown .7s .1s ease both;
}
.cs-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gl);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.5); }
}

/* ---------- Headline ---------- */
.cs-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin-bottom: 24px;
  animation: fadeDown .7s .18s ease both;
}
.cs-headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gl) 0%, #a8e6b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Sub ---------- */
.cs-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.65);
  text-align: center;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 52px;
  animation: fadeDown .7s .25s ease both;
}

/* ---------- Countdown ---------- */
.cs-countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeDown .7s .32s ease both;
}
.cs-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}
.cs-num {
  width: 90px; height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.cs-num::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, transparent 50%);
  pointer-events: none;
}
.cs-num.flip {
  animation: flip .35s ease;
}
@keyframes flip {
  0%   { transform: rotateX(0); }
  50%  { transform: rotateX(-90deg); opacity: .4; }
  100% { transform: rotateX(0); opacity: 1; }
}
.cs-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.cs-sep {
  font-size: 36px;
  font-weight: 300;
  color: rgba(255,255,255,.25);
  align-self: flex-start;
  margin-top: 20px;
  line-height: 1;
}

/* ---------- Notify Form ---------- */
.cs-notify {
  width: 100%;
  max-width: 500px;
  margin-bottom: 56px;
  animation: fadeDown .7s .4s ease both;
}
.cs-notify-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .5px;
  margin-bottom: 12px;
  text-align: center;
}
.cs-form {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  transition: border-color .25s;
}
.cs-form:focus-within {
  border-color: rgba(76,175,104,.5);
  background: rgba(255,255,255,.09);
}
.cs-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fff;
  min-width: 0;
}
.cs-input::placeholder { color: rgba(255,255,255,.35); }
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.cs-btn:hover { background: var(--gm); transform: translateY(-1px); }
.cs-btn:active { transform: translateY(0); }
.cs-btn svg { flex-shrink: 0; }

/* Success state */
.cs-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(34,139,60,.18);
  border: 1px solid rgba(76,175,104,.35);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gl);
}
.cs-success.show { display: flex; animation: fadeIn .4s ease both; }

/* ---------- Features Strip ---------- */
.cs-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-bottom: 56px;
  animation: fadeDown .7s .48s ease both;
}
.cs-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.cs-feat-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,139,60,.18);
  border-radius: 8px;
  font-size: 14px;
}

/* ---------- Social Links ---------- */
.cs-social {
  display: flex;
  gap: 12px;
  animation: fadeDown .7s .55s ease both;
}
.cs-social-link {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 16px;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.cs-social-link:hover {
  background: rgba(34,139,60,.25);
  border-color: rgba(76,175,104,.4);
  color: var(--gl);
  transform: translateY(-2px);
}

/* ---------- Bottom Copyright ---------- */
.cs-copy {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.25);
  z-index: 2;
  letter-spacing: .3px;
}

/* ---------- Animations ---------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Particles ---------- */
.cs-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cs-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(76,175,104,.18);
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(0) scale(1); opacity: .7; }
  100% { transform: translateY(-110vh) scale(.4); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .cs-logo img { height: 60px; }
  .cs-num { width: 72px; height: 72px; font-size: 28px; border-radius: 12px; }
  .cs-unit { min-width: 72px; }
  .cs-sep { font-size: 26px; margin-top: 16px; }
  .cs-countdown { gap: 10px; }
  .cs-form { flex-direction: column; padding: 10px; gap: 8px; border-radius: 12px; }
  .cs-btn { justify-content: center; border-radius: 8px; }
  .cs-features { gap: 10px 20px; }
}

@media (max-width: 380px) {
  .cs-num { width: 62px; height: 62px; font-size: 24px; }
  .cs-sep { font-size: 22px; }
}
