/* ============================================
   Digital Fern Labs — styles.css
   See BRAND.md for full design system reference
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg:            #F5F0E8;
  --color-bg-card:       #FDFAF4;
  --color-bg-alt:        #EDE8DC;
  --color-bg-dark:       #2C3A2E;
  --color-bg-dark-deep:  #1A2A1C;
  --color-bg-panel:      #DCE8CC;
  --color-bg-panel-blue: #DCE8F0;

  --color-text-primary:  #1E2E20;
  --color-text-body:     #4A5E4C;
  --color-text-muted:    #5A6E5C;
  --color-text-label:    #5A7A52;

  --color-accent-dark:   #3B5E3A;
  --color-accent:        #4A7A40;
  --color-accent-mid:    #5A7A52;
  --color-accent-light:  #7DAA6B;

  --color-dark-heading:  #E8F0E0;
  --color-dark-body:     #8AAA84;
  --color-dark-italic:   #A0C890;

  --color-border:        rgba(60, 90, 55, 0.12);
  --color-border-hover:  rgba(74, 122, 64, 0.40);

  --font-display:        'Playfair Display', Georgia, serif;
  --font-body:           'DM Sans', sans-serif;

  --radius-card:         16px;
  --radius-pill:         100px;
  --radius-icon:         10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-icon { flex-shrink: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--color-accent); }

.btn-contact {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent-dark);
  background: rgba(74, 122, 64, 0.10);
  border: 1.5px solid rgba(74, 122, 64, 0.25);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-contact:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82vh;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-label);
  margin-bottom: 1.4rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.13;
  color: var(--color-text-primary);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-body);
  max-width: 420px;
  margin-bottom: 2.4rem;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8A9E8C;
}

.scroll-line {
  width: 32px;
  height: 1px;
  background: rgba(74, 122, 64, 0.3);
}

/* Hero right — plant panel */
.hero-right {
  background: var(--color-bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.plant-illustration {
  width: 55%;
  animation: plantRise 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes plantRise {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- Section rule --- */
.section-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 2.5rem;
}

/* --- Apps section --- */
.apps {
  padding: 3.5rem 2.5rem 5rem;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 2rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* --- App card --- */
.app-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual--green { background: #E8F0DC; }
.card-visual--blue  { background: var(--color-bg-panel-blue); }

.card-body {
  padding: 1.6rem 1.8rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-label);
  margin-bottom: 0.8rem;
}

.card-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-light);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.7rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-bottom: 1.4rem;
}

.feature-pills li {
  font-size: 11px;
  font-weight: 500;
  background: rgba(74, 122, 64, 0.09);
  color: var(--color-accent-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(74, 122, 64, 0.15);
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-dark);
  border-bottom: 1.5px solid rgba(59, 94, 58, 0.3);
  padding-bottom: 2px;
  width: fit-content;
  align-self: flex-start;
}

/* --- About section --- */
.about {
  background: var(--color-bg-dark);
  padding: 3.5rem 2.5rem;
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text { flex: 1; }

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-dark-heading);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-text h2 em {
  font-style: italic;
  color: var(--color-dark-italic);
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-dark-body);
}

.about-contact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.about-email {
  font-size: 14px;
  color: var(--color-dark-body);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.about-email:hover { opacity: 1; }

.about-badge {
  flex-shrink: 0;
  background: rgba(125, 170, 107, 0.12);
  border: 1px solid rgba(125, 170, 107, 0.2);
  border-radius: 14px;
  padding: 1.6rem 2rem;
  text-align: center;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}

.badge-label {
  font-size: 12px;
  color: #5A7A52;
  margin-top: 6px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.8rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}

.footer-copy {
  font-size: 12px;
  color: #8A9E8C;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-right {
    height: 320px;
  }

  .plant-illustration { width: 45%; }

  .apps { padding: 3rem 1.5rem 4rem; }
  .section-rule { margin: 0 1.5rem; }

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

  .about {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .about-badge { width: 100%; }

  .nav { padding: 1rem 1.5rem; }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
  }
}
