/* One17 Technologies - Global Design System & Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary-dark: #111315;
  --color-canvas: #FAFAF8;
  --color-white: #FFFFFF;
  --color-orange: #FF6B2C;
  --color-orange-hover: #E55A1F;
  --color-orange-light: #FFF0EB;
  --color-green: #16A36A;
  --color-green-light: #E8F7F0;
  --color-text-main: #17191C;
  --color-text-secondary: #62666D;
  --color-text-muted: #8A8F98;
  --color-border: #E8E8E4;
  --color-border-subtle: #F0F0EC;
  --color-card-bg: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-subtle: 0 1px 3px rgba(17, 19, 21, 0.04), 0 10px 24px -8px rgba(17, 19, 21, 0.04);
  --shadow-hover: 0 8px 30px rgba(17, 19, 21, 0.08);
  --shadow-glow: 0 0 40px rgba(255, 107, 44, 0.12);
}

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

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-canvas);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  color: var(--color-text-main);
  background-color: var(--color-canvas);
}

/* Typography Scale */
.hero-heading {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-primary-dark);
}

.h1-heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
}

.h2-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark);
}

.h3-heading {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary-dark);
}

.body-large {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Interactive Components */
.card-modern {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modern:hover {
  border-color: #D6D6CF;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-highlight {
  background: #FFFFFF;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-orange);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 44, 0.35);
  color: #FFFFFF !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #F5F5F0;
  border-color: #D1D1C7;
  transform: translateY(-1px);
  color: var(--color-primary-dark);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary-dark);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-primary-dark);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dark:hover {
  background-color: #24282D;
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

/* Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-orange {
  background: var(--color-orange-light);
  color: var(--color-orange);
  border: 1px solid rgba(255, 107, 44, 0.2);
}

.badge-green {
  background: var(--color-green-light);
  color: var(--color-green);
  border: 1px solid rgba(22, 163, 106, 0.2);
}

.badge-dark {
  background: #EFEFEA;
  color: var(--color-primary-dark);
}

/* Growth Engine & Flow Nodes */
.engine-step-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
}

.engine-step-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 44, 0.1);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

/* Accordion FAQ */
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #D6D6CF;
}

.faq-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  user-select: none;
  transition: background 0.15s ease;
}

.faq-header:hover {
  background: #FBFBFA;
}

.faq-body {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateX(0) !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 21, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Sticky Mobile Bar */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
