/* =========================================
   Global Styles & Design System
   Brand: WhatsApp Official Site Style
   Theme: Morandi Low Saturation + White Space
   Typography: Serif Headings + Sans-serif Body
   ========================================= */

/* --- Reset & Variables --- */
:root {
  /* Colors: Morandi Palette */
  --color-primary: #52796F;          /* Muted Teal Green */
  --color-primary-hover: #3A5A4F;    /* Darker Green */
  --color-secondary: #B4A88A;        /* Warm Taupe/Sand */
  --color-accent: #D4A373;           /* Soft Terracotta */
  
  --color-text-main: #2C2C2C;        /* Charcoal */
  --color-text-muted: #666666;       /* Medium Grey */
  --color-text-light: #888888;
  
  --color-bg-body: #FDFCFB;          /* Warm Off-white */
  --color-bg-card: #FFFFFF;          /* Pure White */
  --color-bg-alt: #F2F0EB;           /* Light Sand */
  
  --border-color: #E0DCD5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-base: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 252, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 32px;
  width: auto;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

.nav-link:hover, 
.nav-link[aria-current="page"] {
  color: var(--color-primary);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82, 121, 111, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-text-main);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-svg-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
}

/* --- Value Props --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.value-card {
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Features Section --- */
.features-section {
  background-color: var(--color-bg-alt);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-secondary);
  line-height: 1;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Interface Mockup --- */
.interface-section {
  text-align: center;
}

.interface-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.mockup-svg {
  width: 100%;
  height: auto;
}

/* --- Scenarios --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .scenarios-grid { grid-template-columns: 1fr; }
}

.scenario-card {
  text-align: left;
}

.scenario-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scenario-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.scenario-card ul {
  margin-top: 16px;
}

.scenario-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.scenario-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* --- Version Table --- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.platform-table th {
  background-color: var(--color-bg-alt);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.platform-table td {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.platform-table tr:last-child td {
  border-bottom: none;
}

/* --- Security & Privacy --- */
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .security-layout { grid-template-columns: 1fr; }
}

.security-benefits li {
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
}

.security-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 1px;
  background: var(--color-text-muted);
}

/* --- Download CTA --- */
.download-section {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
}

.download-section .section-title {
  color: #fff;
}

.download-section .section-desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
}

.download-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dl-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 16px;
  font-size: 0.95rem;
}

.dl-btn-large {
  background-color: #fff;
  color: var(--color-primary);
  padding: 16px 32px;
  font-size: 1.1rem;
  margin-top: 20px;
}

.dl-btn-large:hover {
  background-color: #f0f0f0;
  color: var(--color-primary-hover);
}

/* --- News & Footer --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: var(--shadow-sm);
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.news-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.related-links {
  columns: 2;
  gap: 40px;
}

@media (max-width: 768px) {
  .related-links { columns: 1; }
}

.rel-link-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-primary);
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 4px;
}

.rel-link-item:hover {
  text-decoration: underline;
}

.site-footer {
  background-color: var(--color-bg-alt);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: block;
}

.copyright {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* --- FAQ Accordion --- */
.faq-list details {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.faq-list summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '-';
}

.faq-list details p {
  color: var(--color-text-muted);
  padding-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- SVG Animations --- */
.flow-path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 4s linear infinite alternate;
}

.flow-dot {
  fill: var(--color-accent);
  opacity: 0.8;
}

.dot-move {
  animation: moveAlongPath 6s linear infinite;
  offset-distance: 0%;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@keyframes moveAlongPath {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .flow-path, .dot-move {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  html { scroll-behavior: auto; }
}
