/* ============================================================
   NABAT Nature — Coming Soon  (split / horizontal layout)
   Palette extracted directly from the brand logo
   ============================================================ */

:root {
  --sage:       #7f9878;
  --sage-deep:  #5f7a59;
  --sage-dark:  #4c6347;
  --brown:      #59281a;
  --brown-soft: #6e3526;
  --gold:       #eec545;
  --gold-deep:  #d9ab2c;
  --terracotta: #cf6c46;

  --cream:      #fbf6ec;
  --cream-warm: #f5ecd9;
  --sand:       #efe2c4;   /* logo panel base */
  --sand-deep:  #e7d6ad;
  --ink:        #3c2218;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Outfit", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;          /* allow vertical scroll, no horizontal */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(130% 130% at 85% 10%, var(--cream-warm) 0%, var(--cream) 55%, #f7f0e2 100%);
  background-attachment: fixed;
}

/* ---- Outer frame guarantees safe top/bottom/side margins ---- */
.frame {
  min-height: 100vh;
  min-height: 100svh;            /* mobile-safe viewport height */
  width: 100%;
  padding: clamp(1.25rem, 5vh, 5rem) clamp(1.25rem, 6vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- The split card ---- */
.layout {
  width: min(1320px, 100%);
  min-height: min(660px, 100%);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(89, 40, 26, 0.08);
  border-radius: clamp(22px, 2.4vw, 36px);
  overflow: hidden;
  box-shadow:
    0 40px 90px -30px rgba(89, 40, 26, 0.30),
    0 8px 24px -8px rgba(89, 40, 26, 0.12);
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  animation: card-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
/* glassy translucency only where supported, else the solid bg above holds up */
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .layout {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   LEFT PANEL — logotype (logo on white card, green panel)
   ============================================================ */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    linear-gradient(150deg, var(--sage) 0%, var(--sage-deep) 60%, var(--sage-dark) 100%);
  overflow: hidden;
}
/* faint leaf-vein texture */
.panel__texture {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,0.6) 38px 39px);
  pointer-events: none;
}
/* decorative sprout bottom-left */
.panel__sprout {
  position: absolute;
  bottom: -10px;
  left: 26px;
  width: 64px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* logo sits on a white card */
.panel__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 28px;
  padding: 2.6rem 2.4rem;
  box-shadow:
    0 26px 50px -18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.logo {
  display: block;
  width: clamp(170px, 18vw, 250px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(89, 40, 26, 0.12));
}

.panel__caption {
  position: absolute;
  bottom: clamp(1.4rem, 3vh, 2.2rem);
  right: clamp(1.4rem, 2.4vw, 2.4rem);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
  opacity: 0;
  animation: fade 0.9s ease 1s forwards;
}

/* ============================================================
   RIGHT PANEL — content
   ============================================================ */
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.4rem);
}
.content__glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.30;
  filter: blur(40px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-22px, 26px); }
}

/* staggered reveals */
.content > .kicker,
.content > .headline,
.content > .lede,
.content > .divider,
.content > .cta,
.content > .foot {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}
.kicker  { animation-delay: 0.55s; }
.headline{ animation-delay: 0.68s; }
.lede    { animation-delay: 0.80s; }
.divider { animation-delay: 0.90s; }
.cta     { animation-delay: 1.00s; }
.foot    { animation-delay: 1.12s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---- kicker badge ---- */
.kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(89, 40, 26, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.8rem;
}
.kicker__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(207,108,70,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(207,108,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(207,108,70,0); }
}

/* ---- headline ---- */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--brown);
  margin-bottom: 1.4rem;
}
.headline__accent {
  font-style: italic;
  font-weight: 500;
  color: var(--sage-deep);
  position: relative;
  display: inline-block;
}
.headline__accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.15em;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: 999px;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.9s cubic-bezier(0.16,1,0.3,1) 1.3s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

/* ---- lede ---- */
.lede {
  max-width: 480px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--brown-soft);
  margin-bottom: 1.8rem;
}

/* ---- divider ---- */
.divider {
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin-bottom: 1.8rem;
}

/* ---- CTA ---- */
.cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--cream);
  padding: 0.95rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-soft) 100%);
  box-shadow: 0 12px 26px rgba(89,40,26,0.28);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(89,40,26,0.36);
  background: linear-gradient(135deg, var(--brown-soft) 0%, var(--terracotta) 140%);
}
.btn__icon { width: 19px; height: 19px; flex-shrink: 0; }

.email-link {
  font-size: 0.98rem;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  word-break: break-word;
}
.email-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ---- footer ---- */
.foot {
  margin-top: 2.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(89, 40, 26, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Shorter laptop screens — keep things compact */
@media (min-width: 881px) and (max-height: 700px) {
  .layout  { min-height: auto; }
  .logo    { width: clamp(150px, 16vw, 200px); }
  .kicker  { margin-bottom: 1.2rem; }
  .headline{ margin-bottom: 1rem; }
  .lede    { margin-bottom: 1.2rem; }
  .divider { margin-bottom: 1.2rem; }
  .foot    { margin-top: 1.6rem; }
}

/* Tablet & below — stack the panels vertically */
@media (max-width: 880px) {
  .frame  { padding: clamp(1rem, 4vw, 2rem); align-items: flex-start; }
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    width: 100%;
    max-width: 560px;
  }
  .panel {
    padding: 2.4rem 2rem 2rem;
    min-height: 240px;
  }
  .logo { width: clamp(160px, 42vw, 220px); }
  .panel__caption {
    position: static;
    margin-top: 1.2rem;
    text-align: center;
  }
  .panel__sprout { display: none; }
  .content {
    padding: 2.4rem 2rem 2.6rem;
    text-align: left;
  }
  .content__glow { width: 280px; height: 280px; top: -90px; right: -90px; }
}

/* Phones */
@media (max-width: 480px) {
  .frame  { padding: 0; align-items: stretch; }
  .layout {
    border-radius: 0;
    border: none;
    min-height: 100svh;
    height: auto;                       /* grow with content */
    max-width: 100%;
    grid-template-rows: auto 1fr;        /* logo row sizes to its content */
    box-shadow: none;
  }
  .panel {
    padding: 2.6rem 1.5rem 2rem;
    min-height: 0;                       /* no forced height clipping the logo */
  }
  .logo  { width: clamp(180px, 56vw, 240px); }
  .content {
    padding: 2.4rem 1.5rem 2.8rem;
    justify-content: flex-start;
  }
  .kicker { margin-bottom: 1.4rem; }
  .headline { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .lede { font-size: 1rem; margin-bottom: 1.5rem; }
  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .btn { width: 100%; justify-content: center; }
  .foot { margin-top: 2rem; }
}

/* Very short landscape phones */
@media (max-height: 440px) and (max-width: 900px) {
  .frame { padding: 0; }
  .layout {
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: 1fr;
    min-height: 100svh;
    border-radius: 0;
  }
  .panel__caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layout, .panel__inner, .panel__caption,
  .content > * { opacity: 1 !important; transform: none !important; }
  .headline__accent::after { transform: scaleX(1) !important; }
}
