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

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --text-primary: var(--stone-900);
  --text-secondary: var(--stone-600);
  --text-muted: var(--stone-400);
  --bg-page: var(--stone-50);
  --bg-card: #ffffff;
  --bg-card-hover: var(--stone-100);
  --border-color: var(--stone-200);
  --accent: var(--green-600);
  --accent-light: var(--green-100);
  --accent-dark: var(--green-800);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --max-width: 960px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--border-color);
}

/* ── Header / Nav ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header .logo span {
  color: var(--text-primary);
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
}

/* ── Hero ── */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section headers ── */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1.025rem;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* ── Feature cards ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Philosophy / story section ── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-block {
  max-width: 640px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, var(--green-50) 0%, var(--stone-100) 55%, var(--green-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-block p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.highlight-list li {
  background: var(--accent-light);
  color: var(--green-800);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Privacy / data section ── */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.privacy-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.privacy-card ul {
  list-style: none;
  padding: 0;
}

.privacy-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy-card.stores ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.privacy-card.does-not ul li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--stone-400);
}

.privacy-summary {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Tech stack ── */

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

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stack-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

.stack-role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.stack-item h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.stack-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Disclaimer ── */

.disclaimer {
  background: var(--stone-100);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 640px;
}

.disclaimer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Footer ── */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── Hero image ── */

.hero-image-wrapper {
  margin-top: 3rem;
  perspective: 1200px;
}

.hero-image-frame {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-image-frame:hover {
  transform: rotateX(0deg);
}

.hero-image-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  background: var(--stone-100);
  border-bottom: 1px solid var(--border-color);
}

.hero-image-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone-300);
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--green-50) 0%, var(--stone-100) 50%, var(--green-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Showcase (text + image side-by-side) ── */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase.reverse {
  direction: rtl;
}

.showcase.reverse > * {
  direction: ltr;
}

.showcase-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.showcase-text p:last-child {
  margin-bottom: 0;
}

.showcase-image {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.showcase-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, var(--green-50) 0%, var(--stone-100) 60%, var(--green-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.showcase-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PlantDB section ── */

.plantdb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.plantdb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.plantdb-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

.plantdb-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.plantdb-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.plantdb-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.plantdb-how {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.plantdb-how h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.plantdb-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.plantdb-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.plantdb-steps li:last-child {
  margin-bottom: 0;
}

.plantdb-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

.plantdb-steps a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.plantdb-steps a:hover {
  text-decoration: underline;
}

/* ── Privacy PlantDB note ── */

.privacy-plantdb {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 640px;
}

.privacy-plantdb h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.privacy-plantdb p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Screenshot placeholder label ── */

.placeholder-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  letter-spacing: 0.02em;
}

/* ── Philosophy grid (inside About) ── */

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 0.25rem;
}

.philosophy-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
}

.philosophy-heading {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.philosophy-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.scale-in {
  transform: scale(0.95);
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger > .reveal:nth-child(9) { transition-delay: 0.64s; }

/* ── Back to top ── */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background-color 0.15s ease, color 0.15s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.back-to-top svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ── */

/* ── Large tablets / small desktops ── */
@media (max-width: 960px) {
  .container {
    padding: 0 1.25rem;
  }

  .showcase {
    gap: 2rem;
  }

  .about-layout {
    gap: 2rem;
  }
}

/* ── Tablets ── */
@media (max-width: 820px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 5rem 0 3.5rem;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .showcase-text h3 {
    font-size: 1.2rem;
  }

  .showcase-text p {
    font-size: 0.925rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* ── Large phones / small tablets ── */
@media (max-width: 680px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-image-frame {
    transform: none;
  }

  .site-header nav {
    gap: 1rem;
  }

  .site-header nav a {
    font-size: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .plantdb-grid {
    grid-template-columns: 1fr;
  }

  .plantdb-card {
    padding: 1.25rem;
  }

  .plantdb-how {
    padding: 1.25rem;
  }

  .privacy-plantdb {
    padding: 1.25rem;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .showcase.reverse {
    direction: ltr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    padding: 1.25rem;
  }

  .stack-item {
    padding: 1.25rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .disclaimer {
    padding: 1.25rem;
  }

  .story-block p {
    font-size: 0.975rem;
  }

  .section-desc {
    font-size: 0.975rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .reveal {
    transform: translateY(20px);
  }

  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(20px);
  }
}

/* ── Small phones ── */
@media (max-width: 400px) {
  .container {
    padding: 0 0.75rem;
  }

  .site-header .container {
    height: 3rem;
  }

  .site-header .logo {
    font-size: 1.1rem;
  }

  .site-header nav {
    gap: 0.65rem;
  }

  .site-header nav a {
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.35rem;
  }

  .highlight-list {
    gap: 0.4rem;
  }

  .highlight-list li {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}
