/**
 * DigiRox — Enterprise Light Theme Design System
 * Clean, High-Trust, Technology Enterprise Aesthetic
 */

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

:root {
  /* Brand Color Tokens */
  --primary: #1E40AF;
  --primary-hover: #1D4ED8;
  --primary-dark: #0A2540;
  --secondary: #4F46E5;
  --accent: #06B6D4;
  --accent-teal: #00D4B2;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Neutral Light Theme Palette */
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --surface: #FFFFFF;
  --surface-raised: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-focus: rgba(37, 99, 235, 0.4);

  /* Typography Hierarchy */
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;

  /* Gradients */
  --gradient-tech: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #06B6D4 100%);
  --gradient-text: linear-gradient(135deg, #0F172A 30%, #1E40AF 100%);
  --gradient-accent: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Font Families */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Container */
  --container-max: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dr-gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Header */
.dr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.dr-header.compact {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.dr-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}

.dr-header.compact .dr-navbar {
  height: 62px;
}

.dr-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.dr-logo span {
  color: var(--primary);
}

.dr-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.dr-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.dr-nav-link:hover, .dr-nav-link.active {
  color: var(--primary);
}

.dr-nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Button Component System */
.dr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dr-btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.3);
}

.dr-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(30, 64, 175, 0.4);
}

.dr-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.dr-btn-secondary:hover {
  background: var(--surface-raised);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.dr-btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.dr-btn-outline:hover {
  background: rgba(30, 64, 175, 0.05);
}

.dr-btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.dr-btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.dr-btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

/* Section Spacing & Badges */
.dr-section {
  padding: 96px 0;
}

.dr-section-light {
  background-color: var(--bg-subtle);
}

.dr-badge-wrapper {
  display: flex;
  margin-bottom: 16px;
}

.dr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.dr-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.dr-section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
}

.dr-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Hero Section */
.dr-hero {
  padding: 80px 0 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

.dr-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.dr-hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.dr-hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 620px;
}

.dr-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Telemetry Stats Bar */
.dr-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.dr-stat-item {
  display: flex;
  flex-direction: column;
}

.dr-stat-val {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
}

.dr-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 4px;
}

/* Interactive Visual Mockup / Hero Terminal */
.dr-hero-visual {
  position: relative;
}

.dr-visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
}

.dr-code-block {
  background: #0A1128;
  color: #E2E8F0;
  padding: 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* Cards & Bento Grid */
.dr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.dr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dr-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 64, 175, 0.3);
  box-shadow: var(--shadow-hover);
}

.dr-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.dr-card-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.dr-card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.dr-card-features {
  list-style: none;
  margin-bottom: 24px;
}

.dr-card-features li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-card-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

/* Process Timeline */
.dr-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dr-process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: all 0.3s;
}

.dr-process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dr-step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Portfolio Cards */
.dr-project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dr-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 64, 175, 0.25);
}

.dr-project-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.dr-project-industry {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dr-project-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.dr-project-results {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin: 18px 0;
}

/* Articles Card */
.dr-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
}

.dr-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* FAQ Accordion */
.dr-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.dr-faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.dr-faq-btn:hover {
  color: var(--primary);
}

.dr-faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.2s;
}

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

.dr-faq-body {
  display: none;
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Forms */
.dr-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.dr-form-group {
  margin-bottom: 22px;
}

.dr-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.dr-form-input, .dr-form-select, .dr-form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
  transition: all 0.2s;
}

.dr-form-input:focus, .dr-form-select:focus, .dr-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.dr-form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* Call to Action Banner */
.dr-cta-banner {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dr-cta-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.dr-cta-desc {
  color: #94A3B8;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

/* Footer */
.dr-footer {
  background: #0B132B;
  color: #94A3B8;
  padding: 80px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.dr-footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 16px 0 24px 0;
  max-width: 320px;
}

.dr-footer-title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.dr-footer-links {
  list-style: none;
}

.dr-footer-links li {
  margin-bottom: 12px;
}

.dr-footer-links a {
  color: #94A3B8;
  font-size: 14px;
}

.dr-footer-links a:hover {
  color: #FFFFFF;
}

.dr-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

/* Cookie Consent Banner */
.dr-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 24px;
  z-index: 9999;
  display: none;
}

.dr-cookie-banner.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile Nav Drawer */
.dr-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
}

.dr-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 9999;
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.dr-mobile-drawer.open {
  display: flex;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .dr-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .dr-hero-desc, .dr-hero-actions {
    margin-left: auto;
    margin-right: auto;
  }
  .dr-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .dr-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dr-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dr-nav-menu, .dr-nav-cta {
    display: none;
  }
  .dr-mobile-menu-btn {
    display: block;
  }
  .dr-grid-3, .dr-grid-2 {
    grid-template-columns: 1fr;
  }
  .dr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dr-process-grid {
    grid-template-columns: 1fr;
  }
  .dr-footer-grid {
    grid-template-columns: 1fr;
  }
  .dr-section {
    padding: 64px 0;
  }
}
