/* ============================================================
   Jhuri — style.css
   Structure:
   1.  Reset & Base
   2.  Typography
   3.  Layout Helpers
   4.  Hero
   5.  Promise Strip
   6.  Section Commons
   7.  Categories
   8.  Features Bento
   9.  Screenshots
   10. Download
   11. Privacy Teaser
   12. Support
   13. Buttons
   14. Animations & Reveal
   15. Responsive
============================================================ */


/* ─── 1. RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ─── 2. TYPOGRAPHY ─────────────────────────────────────────── */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

em {
  font-style: italic;
  color: var(--green);
}


/* ─── 3. LAYOUT HELPERS ─────────────────────────────────────── */
.center {
  text-align: center;
}

.center.section-label {
  justify-content: center;
}

.center.section-label::before {
  display: none;
}


/* ─── 4. HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 110px 5vw 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 580px;
  height: 580px;
  background: radial-gradient(ellipse, var(--green-mid) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(ellipse, var(--orange-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Phone frame — hero */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.15s ease both;
}

.phone-frame {
  width: 260px;
  height: 560px;
  background: #1A1A1A;
  border-radius: 36px;
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  flex-shrink: 0;
}

.phone-frame.small {
  width: 200px;
  height: 432px;
  border-radius: 28px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-frame.small .phone-screen {
  border-radius: 22px;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

.placeholder-logo {
  width: 17px;
  height: 17px;
  object-fit: contain;
  margin-bottom: 6px;
  padding: 16px;
}

.placeholder-title {
  width: 33px;
  height: 10px;
  object-fit: contain;
  padding: 8px 16px;
}

.placeholder-icon {
  font-size: 2.5rem;
}

/* Floating cards around phone */
.hero-float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.float-emoji {
  font-size: 1.1rem;
}

.float-count {
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 600;
  background: var(--green-light);
  padding: 2px 6px;
  border-radius: 100px;
}

.card-1 {
  top: 60px;
  left: -80px;
  animation: floatA 4s ease-in-out infinite;
}

.card-2 {
  bottom: 120px;
  left: -90px;
  animation: floatB 4.5s ease-in-out infinite;
}

.card-3 {
  top: 40%;
  right: -80px;
  animation: floatA 3.8s 0.5s ease-in-out infinite;
  color: var(--green);
  background: var(--green-light);
  border-color: var(--green-mid);
}

.float-confetti {
  font-size: 1.1rem;
}

.ss-placeholder {
  display: none;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


/* ─── 5. PROMISE STRIP ──────────────────────────────────────── */
.promise-strip {
  background: var(--green);
  padding: 1rem 5vw;
}

.promise-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.promise-icon {
  font-size: 1rem;
}

.promise-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}


/* ─── 6. SECTION COMMONS ────────────────────────────────────── */
section {
  padding: 100px 5vw;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 560px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 1rem;
}


/* ─── 7. CATEGORIES ─────────────────────────────────────────── */
#categories {
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: all var(--transition);
  transition-delay: var(--delay, 0ms);
  cursor: default;
}

.cat-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  background: var(--green-light);
}

.cat-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.cat-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cat-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cat-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 0.2rem;
}


/* ─── 8. FEATURES BENTO ─────────────────────────────────────── */
#features {
  background: var(--cream);
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--orange));
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.bento-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-dim);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}


/* ─── 9. SCREENSHOTS ────────────────────────────────────────── */
#screenshots {
  background: var(--white);
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.ss-label {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.ss-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 170px;
  line-height: 1.5;
}


/* ─── 10. DOWNLOAD ──────────────────────────────────────────── */
#download {
  background: var(--green);
  text-align: center;
}

.download-inner {
  max-width: 480px;
  margin: 0 auto;
}

.download-logo {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.download-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.download-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}


/* ─── 11. PRIVACY TEASER ────────────────────────────────────── */
#privacy {
  background: var(--cream);
}

.privacy-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.privacy-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1rem 0 2rem;
}

.privacy-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.privacy-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.privacy-pill.good {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
}

.privacy-pill.good svg {
  stroke: var(--green);
}

.privacy-pill.neutral {
  background: #FFF8E6;
  color: #7A5C00;
  border: 1px solid #FFE9A0;
}

.privacy-pill.neutral svg {
  stroke: #C49000;
}


/* ─── 12. SUPPORT ───────────────────────────────────────────── */
#support {
  background: var(--white);
  text-align: center;
}

.support-inner {
  max-width: 480px;
  margin: 0 auto;
}

.support-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-email svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.contact-email:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}


/* ─── 13. BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary.large {
  padding: 16px 36px;
  background: var(--white);
  color: var(--green);
}

.btn-primary.large:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-sub {
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
}

.btn-main {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.btn-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-privacy svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition);
}

.btn-privacy:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.btn-privacy:hover svg {
  transform: translateX(4px);
}


/* ─── 14. ANIMATIONS & REVEAL ───────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── 15. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-tagline {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .privacy-teaser {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-bento {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }
}