@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Color Palette - Mitti & Haryali */
  --bg-clay: #F7F5F0;       /* Warm linen / paper tone */
  --text-onyx: #111827;     /* High contrast charcoal */
  --brand-sienna: #C2652A;  /* Terracotta primary accent */
  --brand-forest: #1E3F20;  /* Organic green secondary accent */
  --bg-alabaster: #FFFFFF;  /* White highlights / cards */
  --border-stone: #D1CEC6;  /* Accent borders */
  --text-muted: #6B7280;    /* Muted metadata */
  
  /* Typography Scale */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-clay);
  color: var(--text-onyx);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-onyx);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section {
  padding: clamp(60px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--border-stone);
}

.section:last-of-type {
  border-bottom: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-stone);
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-onyx);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-sienna);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-sienna);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: left;
  overflow: hidden;
  border-bottom: 1px solid var(--border-stone);
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-sienna);
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  color: var(--text-onyx);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-onyx);
  opacity: 0.85;
  margin-bottom: 40px;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand-sienna);
  color: var(--bg-clay);
}

.btn-primary:hover {
  background-color: var(--text-onyx);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--brand-forest);
  color: var(--bg-clay);
}

.btn-secondary:hover {
  background-color: var(--text-onyx);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--text-onyx);
  color: var(--text-onyx);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--text-onyx);
  color: var(--bg-clay);
  transform: translateY(-2px);
}

/* Cards & Components */
.card {
  background-color: var(--bg-alabaster);
  border: 1px solid var(--border-stone);
  padding: 40px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: var(--brand-sienna);
  transform: translateY(-4px);
}

.card-icon {
  margin-bottom: 24px;
  color: var(--brand-sienna);
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Asymmetric Image Showcase */
.showcase-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-box {
  border: 1px solid var(--border-stone);
  background: var(--bg-alabaster);
  padding: 12px;
  border-radius: 8px;
  transform: rotate(-1deg);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.showcase-box:hover {
  transform: rotate(0deg) scale(1.02);
  border-color: var(--brand-sienna);
}

.showcase-image {
  border-radius: 4px;
  width: 100%;
}

/* App Feature Highlight */
.app-feature-list {
  list-style: none;
  margin-top: 30px;
}

.app-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-check {
  color: var(--brand-sienna);
  font-size: 1.25rem;
  font-weight: bold;
}

.feature-info h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sustainable Pillar Section */
.pillar-green {
  background-color: var(--brand-forest);
  color: var(--bg-clay);
  border: none;
}

.pillar-green h2, .pillar-green h3, .pillar-green p {
  color: var(--bg-clay);
}

.pillar-green .btn-outline {
  border-color: var(--bg-clay);
  color: var(--bg-clay);
}

.pillar-green .btn-outline:hover {
  background-color: var(--bg-clay);
  color: var(--brand-forest);
}

/* Screenshot Interactive Showcase */
.gallery-section {
  background-color: var(--bg-alabaster);
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 40px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-sienna) var(--border-stone);
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background-color: var(--brand-sienna);
  border-radius: 3px;
}

.gallery-track::-webkit-scrollbar-track {
  background-color: var(--border-stone);
}

.gallery-item {
  flex: 0 0 260px;
  border: 1px solid var(--border-stone);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-clay);
  padding: 8px;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: var(--brand-sienna);
}

.gallery-item img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Legal Document Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

@media (min-width: 992px) {
  .legal-layout {
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }
}

.legal-sidebar {
  position: static;
}

@media (min-width: 992px) {
  .legal-sidebar-sticky {
    position: sticky;
    top: 120px;
  }
}

.legal-menu {
  list-style: none;
  border-left: 2px solid var(--border-stone);
  padding-left: 20px;
}

.legal-menu-item {
  margin-bottom: 16px;
}

.legal-menu-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.legal-menu-link:hover, .legal-menu-link.active {
  color: var(--brand-sienna);
}

.legal-content {
  font-family: var(--font-body);
  max-width: 720px;
}

.legal-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-b: 1px solid var(--border-stone);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: rgba(17, 24, 39, 0.85);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: rgba(17, 24, 39, 0.85);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.legal-content th, .legal-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-stone);
  text-align: left;
}

.legal-content th {
  background-color: var(--bg-clay);
  font-weight: 700;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer styling */
footer {
  background-color: var(--text-onyx);
  color: var(--bg-clay);
  padding: 80px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
  }
}

.footer-about h3 {
  color: var(--bg-clay);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(247, 245, 240, 0.75);
  max-width: 400px;
  line-height: 1.6;
}

.footer-links-col h4 {
  color: var(--bg-clay);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link-item a {
  color: rgba(247, 245, 240, 0.7);
}

.footer-link-item a:hover {
  color: var(--brand-sienna);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 245, 240, 0.1);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  color: rgba(247, 245, 240, 0.5);
  font-size: 0.8rem;
}

.footer-copy a {
  color: rgba(247, 245, 240, 0.7);
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 16px;
  transition: var(--transition-fast);
  color: var(--bg-clay);
}

.store-badge:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-sienna);
}

.badge-text {
  text-align: left;
}

.badge-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.badge-main {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
