/* Type2work Landing — animated & image-rich */

:root {
  --green: #10b981;
  --green-light: #34d399;
  --green-dark: #065f46;
  --green-soft: #ecfdf5;
  --gold: #f59e0b;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #fff;
  --radius: 20px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --topbar-h: 60px;
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-top: var(--topbar-h);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }

/* ── Animations ───────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content visible immediately */
.hero .anim-up {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }

/* ── Top bar ──────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.topbar__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  animation: phoneFloat 4s ease-in-out infinite;
}

.topbar__name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar__name span { color: var(--green); }

.topbar__links {
  display: flex;
  gap: 4px;
}

.topbar__links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.topbar__links a:hover {
  color: var(--green-dark);
  background: var(--green-soft);
  text-decoration: none;
}

/* ── Floating decorations ─────────────────────────────── */

.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floater {
  position: absolute;
  opacity: 0.12;
  filter: blur(0.5px);
}

.floater--1 { width: 48px; top: 18%; left: 4%; animation: float 6s ease-in-out infinite; }
.floater--2 { width: 40px; top: 35%; right: 6%; animation: floatSlow 7s ease-in-out infinite 1s; }
.floater--3 { width: 44px; bottom: 30%; left: 8%; animation: float 8s ease-in-out infinite 2s; }
.floater--4 { width: 36px; bottom: 22%; right: 5%; animation: floatSlow 5s ease-in-out infinite 0.5s; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  text-align: center;
  padding: 32px 20px 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--white) 50%, var(--bg) 100%);
}

.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.shape--1 {
  width: 220px; height: 220px;
  background: rgba(16, 185, 129, 0.2);
  top: -60px; left: -80px;
  animation: floatSlow 10s ease-in-out infinite;
}

.shape--2 {
  width: 180px; height: 180px;
  background: rgba(245, 158, 11, 0.15);
  top: 40px; right: -60px;
  animation: float 12s ease-in-out infinite 2s;
}

.shape--3 {
  width: 120px; height: 120px;
  background: rgba(99, 102, 241, 0.1);
  bottom: 20%; left: 30%;
  animation: spinSlow 20s linear infinite;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 340px;
  margin: 0 auto 20px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.chip img { width: 20px; height: 20px; object-fit: contain; }

/* Phone stack */
.hero__phones {
  padding-bottom: 24px;
}

.phone-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 480px;
  margin: 32px auto 0;
  perspective: 1000px;
}

.phone-frame {
  background: #090d16; /* Deep dark obsidian glass body */
  border: 4.5px solid #1e293b; /* Premium metallic bezel border */
  border-radius: 36px;
  padding: 4px;
  box-shadow: 0 25px 60px rgba(9, 13, 22, 0.35),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glass Screen Glare Reflection */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 5;
  pointer-events: none;
  border-radius: 32px;
}

/* Dynamic Island */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 12px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.phone-frame img {
  width: 100%;
  border-radius: 30px;
  aspect-ratio: 9/19.5; /* Modern tall aspect ratio */
  object-fit: cover;
  background: var(--green-soft);
  display: block;
  z-index: 1;
}

.phone-frame--main {
  width: min(230px, 58vw);
  z-index: 3;
  box-shadow: 0 35px 80px rgba(9, 13, 22, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: phoneFloatMain 5s ease-in-out infinite;
}

.phone-frame--back {
  width: min(170px, 38vw);
  z-index: 1;
  opacity: 0.85;
  filter: brightness(0.92);
}

.phone-frame--back:first-child {
  margin-right: -55px;
  animation: phoneFloatLeft 6s ease-in-out infinite 0.5s;
}

.phone-frame--right {
  margin-left: -55px;
  animation: phoneFloatRight 6s ease-in-out infinite 1.5s;
}

@keyframes phoneFloatMain {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes phoneFloatLeft {
  0%, 100% { transform: rotate(-10deg) translateY(12px) scale(0.85); }
  50%      { transform: rotate(-10deg) translateY(2px) scale(0.85); }
}

@keyframes phoneFloatRight {
  0%, 100% { transform: rotate(10deg) translateY(12px) scale(0.85); }
  50%      { transform: rotate(10deg) translateY(2px) scale(0.85); }
}

/* ── Marquee ──────────────────────────────────────────── */

.marquee-wrap {
  overflow: hidden;
  margin: 28px 0 8px;
  background: var(--white);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.marquee {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Main ─────────────────────────────────────────────── */

.main {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

.block { margin-top: 40px; }

.block__title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.block__title--light { color: var(--white); }

.block__sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.block--green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.3);
}

/* ── Stats ────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stats__item {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.stats__item:hover { transform: translateY(-4px); }

.stats__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.stats__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.stats__suffix {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}

.stats__label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Gallery ──────────────────────────────────────────── */

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 68%;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
}

.gallery__item:hover { transform: scale(1.02); }

.gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery__item figcaption {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  padding: 10px;
  background: var(--green-soft);
}

/* ── Feature grid ─────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
}

.feature-card__img-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border-radius: 16px;
  animation: phoneFloat 5s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-card__img-wrap { animation-delay: 0.5s; background: #fffbeb; }
.feature-card:nth-child(3) .feature-card__img-wrap { animation-delay: 1s; background: #eff6ff; }
.feature-card:nth-child(4) .feature-card__img-wrap { animation-delay: 1.5s; background: #faf5ff; }
.feature-card:nth-child(5) .feature-card__img-wrap { animation-delay: 2s; background: #fef2f2; }
.feature-card:nth-child(6) .feature-card__img-wrap { animation-delay: 2.5s; background: #f0fdf4; }

.feature-card__img-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Banner card ──────────────────────────────────────── */

.banner-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.banner-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: var(--white);
}

.banner-card__overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-card__overlay p {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* ── Steps ────────────────────────────────────────────── */

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.steps__visual {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.steps__visual img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.steps__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.7;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.steps__item strong {
  display: block;
  font-size: 0.95rem;
}

.steps__item p {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* ── Reviews ──────────────────────────────────────────── */

.reviews {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.review:hover { transform: translateX(4px); }

.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--green-soft);
}

.review__stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.review cite {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

/* ── Trust ────────────────────────────────────────────── */

.trust {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0 0 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.trust__banner {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.trust__logo {
  margin: 0 auto 10px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.trust__text {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0 20px;
}

.trust__text strong { color: var(--green-dark); }

.trust__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 20px 10px;
}

.trust__badges span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.trust__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 32px 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__logo {
  margin: 0 auto 12px;
  border-radius: 12px;
  opacity: 0.8;
}

/* ── Download bar ─────────────────────────────────────── */

.download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.08);
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  animation: pulse-grow 2s infinite ease-in-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  text-decoration: none;
  animation-play-state: paused;
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6);
}

.download-btn:active {
  transform: scale(0.98);
}

.download-btn.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-grow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.65);
  }
}

/* ── Responsive ───────────────────────────────────────── */

@media (min-width: 640px) {
  .hero__title { font-size: 3rem; }
  .phone-frame--main { width: 250px; }
  .gallery__item { flex: 0 0 42%; }
  .topbar__links a { font-size: 0.85rem; padding: 6px 14px; }
}

@media (max-width: 380px) {
  .topbar__links { display: none; }
  .phone-frame--back { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
