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

:root {
  --bg: #eef3f2;
  --surface: #f7fafa;
  --text: #1a2e2a;
  --text-secondary: #506b65;
  --accent: #2a8c7a;
  --accent-hover: #237a6a;
  --border: #d0ddd9;
  --section-alt: #e4edeb;
  --radius: 16px;
  --max-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== Section Shared ===== */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* ===== Header / Hero ===== */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, #dde8e5 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== About ===== */
.about {
  background: var(--surface);
}

.about-text {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== Apps ===== */
.apps {
  background: var(--section-alt);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- App Card --- */
.app-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.app-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 0;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-card-body {
  padding: 16px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Screenshot gallery */
.screenshot-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-gallery::-webkit-scrollbar {
  height: 4px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.screenshot-gallery img {
  height: 260px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Buttons */
.app-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-coming-soon {
  background: var(--section-alt);
  color: var(--text-secondary);
  cursor: default;
  border: 1px solid var(--border);
}

/* ===== Contact ===== */
.contact {
  background: var(--surface);
  text-align: center;
}

.contact p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
footer {
  background: #1a2e2a;
  color: #8fa8a2;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a {
  color: #8fa8a2;
}

footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  section {
    padding: 56px 16px;
  }

  .hero {
    padding: 80px 16px 56px;
    min-height: 40vh;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .screenshot-gallery img {
    height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
