:root {
  --primary: #12C26E;
  --primary-hover: #0e9655;
  --primary-light: #e6f8ef;
  --text-dark: #18181b;     /* Zinc 900 */
  --text-gray: #52525b;     /* Zinc 600 */
  --bg-body: #fafafa;       /* Zinc 50 */
  --bg-card: #ffffff;
  --border-light: #e4e4e7;  /* Zinc 200 */
  --shadow-soft: 0 12px 32px -4px rgba(0, 0, 0, 0.04), 0 4px 12px -4px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px -4px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Animated Background */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.bg-gradient {
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  z-index: -1;
  background: radial-gradient(ellipse at top, rgba(18, 194, 110, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  animation: slowPulse 12s ease-in-out infinite alternate;
}

@keyframes slowPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--text-dark);
}

/* Main Layout */
main {
  max-width: 1100px;
  margin: 7rem auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

section {
  scroll-margin-top: 8rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.hero-brand img {
  height: 20px;
  width: auto;
  border-radius: 4px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(270deg, var(--primary), #34D399, #0ea5e9, var(--primary));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.05rem;
}

/* Features Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s;
  position: relative;
  z-index: 1;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--border-light);
  pointer-events: none;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card:hover::after {
  opacity: 0;
}

.icon-wrapper {
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.card:hover .icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
  background-color: #12C26E;
  color: white;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Info Section (Contact & Deletion) */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.info-box:hover {
  transform: scale(1.01);
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.info-box.danger::before {
  background-color: #ef4444; 
}

.info-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.info-box p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-body);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-chip svg {
  width: 18px;
  height: 18px;
  color: var(--text-gray);
  transition: color 0.3s;
}

.contact-chip:hover {
  border-color: var(--text-gray);
  background-color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-chip:hover svg {
  color: var(--primary);
}

.instruction-list {
  margin-top: 1.5rem;
  margin-left: 1.5rem;
  color: var(--text-gray);
}

.instruction-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.instruction-list li strong {
  color: var(--text-dark);
}

/* Document specific styling */
.doc-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.doc-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.doc-content .meta {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  display: block;
}

.doc-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.doc-content p {
  margin-bottom: 1.25rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.doc-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-gray);
}

.doc-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Footer */
footer {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 2rem;
  z-index: 10;
}

footer a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reveal Delays for Grids */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@media (max-width: 768px) {
  nav ul {
    gap: 1.5rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .doc-content {
    padding: 2rem;
  }
  main {
    gap: 4rem;
  }
  /* Remove delay on mobile to avoid long blank screens when stacked */
  .delay-1, .delay-2, .delay-3, .delay-4, .delay-5, .delay-6 {
    transition-delay: 0s;
  }
}
