/* ============================================
   Satisfaction Drivers — Static Site Styles
   Design: Granola/YC-inspired clean minimal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --color-text: #111111;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-bg: #FAFAF8;
  --color-bg-white: #FFFFFF;
  --color-bg-alt: #F3F1EE;
  --color-border: #E8E5E0;
  --color-accent: #E86C3A;
  --color-accent-hover: #D05A2B;
  --color-accent-light: #FFF3ED;
  --max-width: 1120px;
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; color: var(--color-accent); }

p { color: var(--color-text-secondary); }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== HEADER ======================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo img { height: 36px; width: 36px; border-radius: 8px; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-alt); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition); cursor: pointer;
}
.nav-dropdown-trigger:hover { color: var(--color-text); background: var(--color-bg-alt); }
.nav-dropdown-trigger svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px; max-height: 440px;
  overflow-y: auto;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::-webkit-scrollbar { width: 4px; }
.nav-dropdown-menu::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.dropdown-item {
  display: block; padding: 10px 14px;
  font-size: 0.84rem; font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-item:hover { color: var(--color-text); background: var(--color-bg-alt); }

/* Mobile */
.mobile-menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.mobile-menu-btn:hover { background: var(--color-bg-alt); }

.hamburger { width: 20px; height: 14px; position: relative; }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--color-text); border-radius: 2px;
  position: absolute; left: 0; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { top: 12px; }

.mobile-menu-btn.active .hamburger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mobile-menu-btn.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  padding: 24px; overflow-y: auto; z-index: 999;
}
.nav-mobile.open { display: block; }

.mobile-nav-link {
  display: block; padding: 14px 0;
  font-size: 1rem; font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-apps-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 0;
  font-size: 1rem; font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-apps-toggle svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mobile-apps-toggle.active svg { transform: rotate(180deg); }

.mobile-apps-list { display: none; padding: 8px 0 8px 16px; }
.mobile-apps-list.open { display: block; }
.mobile-apps-list a {
  display: block; padding: 10px 0;
  font-size: 0.9rem; color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-apps-list a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ======================== HERO ======================== */
.hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.hero h1 { max-width: 720px; margin: 0 auto 20px; }
.hero p { max-width: 560px; margin: 0 auto; font-size: 1.15rem; line-height: 1.7; }

/* ======================== APPS GRID ======================== */
.apps-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D4D0CB;
  transform: translateY(-2px);
}

.app-card-image {
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden; background: var(--color-bg-alt);
}
.app-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.app-card:hover .app-card-image img { transform: scale(1.03); }

.app-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.app-card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.app-card-body p { font-size: 0.9rem; line-height: 1.6; flex: 1; margin-bottom: 16px; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--color-accent); transition: var(--transition);
}
.card-link:hover { gap: 10px; }

/* ======================== COMMITMENTS ======================== */
.commitments {
  padding: 80px 0;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.commitments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.commitment-item { text-align: center; }
.commitment-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.commitment-item h4 { margin-bottom: 8px; }
.commitment-item p { font-size: 0.9rem; }

@media (max-width: 768px) {
  .commitments-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ======================== APP DETAIL ======================== */
.app-hero { padding: calc(var(--header-height) + 60px) 0 60px; }
.app-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.app-hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.app-hero-content p { font-size: 1.05rem; margin-bottom: 28px; }

.app-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .app-hero-image { order: -1; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary {
  background: var(--color-bg-alt); color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-text-muted); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Features */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-sm); border-color: #D4D0CB; }

.feature-icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* Use Cases */
.use-cases-section {
  padding: 80px 0;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.use-case-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: var(--transition);
}
.use-case-card:hover { border-color: var(--color-accent); }
.use-case-card h4 { margin-bottom: 8px; }
.use-case-card p { font-size: 0.9rem; }

/* ======================== ABOUT ======================== */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.about-content { padding: 0 0 80px; }
.about-content .container { max-width: 720px; }
.about-block { margin-bottom: 48px; }
.about-block h3 { margin-bottom: 12px; }
.about-block p { font-size: 0.95rem; line-height: 1.75; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 24px;
}
.value-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card h4 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { font-size: 0.88rem; }

/* ======================== CONTACT ======================== */
.contact-section { padding: 0 0 80px; }
.contact-section .container { max-width: 720px; }
.contact-intro { margin-bottom: 32px; }
.contact-intro p { font-size: 0.95rem; line-height: 1.75; }

.form-placeholder {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px; text-align: center;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.form-placeholder p { color: var(--color-text-muted); font-size: 0.9rem; }

.contact-form-embed {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 1200px;
}
.contact-form-embed iframe {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: 0;
  background: var(--color-bg-white);
}

/* ======================== DOCS ======================== */
.doc-content { padding: 0 0 80px; }
.doc-content .container { max-width: 760px; }
.doc-content h2 {
  font-size: 1.4rem; margin-top: 40px; margin-bottom: 16px;
  padding-top: 24px; border-top: 1px solid var(--color-border);
}
.doc-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc-content p { font-size: 0.95rem; margin-bottom: 12px; line-height: 1.75; }
.doc-content ol, .doc-content ul { padding-left: 24px; margin-bottom: 16px; }
.doc-content li {
  font-size: 0.93rem; color: var(--color-text-secondary);
  margin-bottom: 6px; line-height: 1.7;
}
.doc-content strong { color: var(--color-text); }

/* ======================== LEGAL ======================== */
.legal-content { padding: 0 0 80px; }
.legal-content .container { max-width: 760px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-content p { font-size: 0.93rem; margin-bottom: 12px; line-height: 1.75; }

/* ======================== FOOTER ======================== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-white);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--color-text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--color-text); }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-email { font-size: 0.85rem; color: var(--color-text-secondary); }
.footer-email a { color: var(--color-accent); }
.footer-email a:hover { text-decoration: underline; }
.footer-copyright { font-size: 0.8rem; color: var(--color-text-muted); }

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.footer-logo img { height: 32px; width: 32px; border-radius: 8px; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 12px; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
  .hero { padding: calc(var(--header-height) + 48px) 0 48px; }
  .hero h1 { font-size: 2rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .apps-section, .features-section, .use-cases-section, .commitments { padding: 56px 0; }
  .contact-form-embed,
  .contact-form-embed iframe { min-height: 1320px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form-embed,
  .contact-form-embed iframe { min-height: 1460px; }
}
