/* ═══════════════════════════════════════
   TENET WORK — Design System
   tenetwork.tech
   ═══════════════════════════════════════ */

/* ── 1. Custom Properties ── */
:root {
  --deep-graphite: #2B2D42;
  --slate-gray: #8D99AE;
  --sunrise-amber: #FF7A59;
  --warm-coral: #FF9F87;
  --soft-alabaster: #F2F1ED;
  --bg-tint: #FCF9F7;
  --ink-dark: #1A1B2E;
  --ink-medium: #3D3F5C;
  --mist: #E8E6E1;

  --font-heading: 'Ubuntu', sans-serif;
  --font-body: 'Fira Sans', sans-serif;

  --bg-page: var(--bg-tint);
  --bg-surface: #FFFFFF;
  --bg-surface-alt: var(--soft-alabaster);
  --bg-nav: rgba(252,249,247,0.8);
  --text-primary: var(--deep-graphite);
  --text-secondary: var(--ink-medium);
  --text-tertiary: var(--slate-gray);
  --border-color: var(--mist);
  --shadow-sm: 0 1px 3px rgba(43,45,66,0.06);
  --shadow-md: 0 4px 16px rgba(43,45,66,0.08);
  --shadow-lg: 0 12px 40px rgba(43,45,66,0.12);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg-page: #14152A;
  --bg-surface: #1E1F38;
  --bg-surface-alt: #272842;
  --bg-nav: rgba(20,21,42,0.85);
  --text-primary: #F2F1ED;
  --text-secondary: #B0B3C6;
  --text-tertiary: #7B7E96;
  --border-color: #33345A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sunrise-amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--warm-coral); }

/* ── 3. Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
.label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sunrise-amber); }

/* ── 4. Layout ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-dark { background: var(--deep-graphite); color: #F2F1ED; }
[data-theme="dark"] .section-dark { background: #0F1024; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── 5. Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; transition: all 0.3s; }
.nav.scrolled { background: var(--bg-nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-primary); text-decoration: none; }
.nav-logo .logo-bold { font-weight: 700; }
.nav-logo .logo-light { font-weight: 300; color: var(--slate-gray); }
.nav-links { display: none; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--sunrise-amber); }
.nav-login { padding: 0.4rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius); font-weight: 600 !important; transition: all 0.2s !important; }
.nav-login:hover { border-color: var(--sunrise-amber) !important; color: var(--sunrise-amber) !important; }
[data-theme="dark"] .nav-login { color: #F2F1ED !important; border-color: #5A5B7A; }
[data-theme="dark"] .nav-login:hover { border-color: var(--sunrise-amber) !important; color: var(--sunrise-amber) !important; }
@media(min-width:768px) { .nav-links { display: flex; } }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
@media(min-width:768px) { .hamburger { display: none; } }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg-surface); z-index: 99; padding: 5rem 2rem 2rem; flex-direction: column; gap: 1.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.25rem; font-weight: 500; color: var(--text-primary); text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }

/* ── 6. Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8125rem 1.75rem; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.25s; text-decoration: none; }
.btn-primary { background: var(--sunrise-amber); color: #fff; box-shadow: 0 4px 16px rgba(255,122,89,0.3); }
.btn-primary:hover { background: #e86840; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,89,0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--sunrise-amber); color: var(--sunrise-amber); }
[data-theme="dark"] .btn-outline { color: #F2F1ED; border-color: #5A5B7A; }
[data-theme="dark"] .btn-outline:hover { border-color: var(--sunrise-amber); color: var(--sunrise-amber); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-dark { background: var(--deep-graphite); color: #fff; }
[data-theme="dark"] .btn-dark { background: #F2F1ED; color: var(--deep-graphite); }
.btn-dark:hover { transform: translateY(-2px); }

/* ── 7. Cards ── */
.card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* ── 8. Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 5rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before { content: ''; position: absolute; top: -30%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,122,89,0.12) 0%, transparent 70%); border-radius: 50%; }
.hero-bg::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,159,135,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--sunrise-amber); }
.hero p { font-size: 1.1875rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-image { max-width: 900px; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-color); }
.hero-image img { width: 100%; }

/* ── 9. Stats Bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 3rem 0; }
@media(min-width:768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--sunrise-amber); }
.stat-label { font-size: 0.875rem; color: var(--text-tertiary); margin-top: 0.25rem; }

/* ── 10. Feature Sections ── */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
@media(min-width:768px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.feature-row.reverse .feature-text { order: 2; }
@media(min-width:768px) { .feature-row.reverse .feature-text { order: -1; } }
.feature-text h2 { margin-bottom: 1rem; }
.feature-text p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }
.feature-visual { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface-alt); border: 1px solid var(--border-color); }
.feature-visual img { width: 100%; }
.feature-check-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.feature-check-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--text-secondary); }
.feature-check-list li svg { width: 18px; height: 18px; color: var(--sunrise-amber); flex-shrink: 0; }

/* ── 11. Pricing ── */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.pricing-toggle span { font-size: 0.9375rem; color: var(--text-tertiary); }
.pricing-toggle span.active { color: var(--text-primary); font-weight: 600; }
.toggle-switch { width: 48px; height: 26px; background: var(--border-color); border-radius: 13px; position: relative; cursor: pointer; transition: background 0.3s; }
.toggle-switch.on { background: var(--sunrise-amber); }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.3s; }
.toggle-switch.on::after { transform: translateX(22px); }
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--sunrise-amber); box-shadow: 0 0 0 1px var(--sunrise-amber), var(--shadow-md); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.05); }
.pricing-badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--sunrise-amber); color: #fff; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 1rem; border-radius: var(--radius); }
.pricing-card h3 { margin-bottom: 0.5rem; }
.price { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; margin: 1rem 0 0.25rem; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-tertiary); }
.pricing-card .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); }
.pricing-features li svg { width: 16px; height: 16px; color: var(--sunrise-amber); flex-shrink: 0; }

/* ── 12. Testimonials ── */
.testimonial-card { padding: 2.5rem; }
.testimonial-card blockquote { font-size: 1.0625rem; font-style: italic; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--sunrise-amber); font-size: 1.125rem; }
.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-tertiary); }

/* ── 13. CTA Section ── */
.cta-section { text-align: center; background: linear-gradient(135deg, var(--sunrise-amber) 0%, var(--warm-coral) 100%); color: #fff; border-radius: var(--radius-lg); padding: 5rem 2rem; margin: 2rem 0; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 500px; margin: 0 auto 2rem; }
.cta-section .btn { background: #fff; color: var(--sunrise-amber); }
.cta-section .btn:hover { background: var(--soft-alabaster); transform: translateY(-2px); }

/* ── 14. Footer ── */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media(min-width:768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 0.875rem; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-tertiary); text-decoration: none; }
.footer-links a:hover { color: var(--sunrise-amber); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.8125rem; color: var(--text-tertiary); gap: 1rem; }
.footer-bottom a { color: var(--text-tertiary); }

/* ── 15. Waitlist Modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; cursor: pointer; color: var(--text-tertiary); padding: 0.25rem; }
.modal h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--text-secondary); }
.form-group input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-page); color: var(--text-primary); font-size: 0.9375rem; font-family: var(--font-body); transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: var(--sunrise-amber); box-shadow: 0 0 0 3px rgba(255,122,89,0.1); }
.modal .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal-success { text-align: center; padding: 2rem 0; }
.modal-success svg { width: 48px; height: 48px; color: var(--sunrise-amber); margin-bottom: 1rem; }
.modal-success h3 { margin-bottom: 0.5rem; }
.modal-success p { color: var(--text-secondary); }

/* ── 16. Theme Toggle ── */
.theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 0.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; }
.theme-toggle:hover { border-color: var(--sunrise-amber); color: var(--sunrise-amber); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── 17. FAQ ── */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.25rem 0; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-primary); text-align: left; }
.faq-question svg { width: 20px; height: 20px; color: var(--text-tertiary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-answer p { padding: 0 0 1.25rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ── 18. Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.hero-content { animation: fadeUp 0.8s ease forwards; }
.hero-image { animation: fadeUp 0.8s 0.3s ease forwards; opacity: 0; }

/* ── 19. About Page ── */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:768px) { .values-grid { grid-template-columns: 1fr 1fr; } }
.value-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.value-icon { width: 56px; height: 56px; border-radius: var(--radius); background: rgba(255,122,89,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.value-icon svg { width: 28px; height: 28px; color: var(--sunrise-amber); }

/* ── 20. 404 ── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-404 h1 { font-size: 8rem; color: var(--sunrise-amber); line-height: 1; }
.page-404 p { color: var(--text-secondary); margin: 1rem 0 2rem; }

/* ── 21. Responsive ── */
@media(max-width:767px) {
  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .cta-section { padding: 3rem 1.5rem; margin: 1rem 0; }
  .feature-row { padding: 2rem 0; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sunrise-amber); }
