/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  --company-primary: #002A3A;
  --company-primary-light: #24F69B;
  --company-primary-dark: #001a25;
  --company-primary-alpha: rgba(0, 42, 58, 0.08);

  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #002A3A;
  --text-muted: #475569;

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-max-width: 1200px;
  --navbar-height: 80px;
}

/* ==========================================================================
   Global Resets
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--company-primary);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 42, 58, 0.2), 0 2px 4px -1px rgba(0, 42, 58, 0.1);
}

.btn-primary:hover {
  background-color: var(--company-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 42, 58, 0.25), 0 4px 6px -2px rgba(0, 42, 58, 0.15);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

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

.btn-outline:hover {
  background-color: var(--company-primary-alpha);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Typography & Gradients
   ========================================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--company-primary), var(--company-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--company-primary-alpha);
  color: var(--company-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 72px;
  width: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 4px;
  background: white;
}

.logo-img-footer {
  height: 80px;
  background: white;
  border-radius: 0.75rem;
  padding: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nav-links li a:hover {
  color: var(--company-primary);
}

.nav-links li a.btn {
  color: inherit;
}

.nav-links li a.btn-primary {
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(36, 246, 155, 0.08) 0%, transparent 40%),
              radial-gradient(circle at bottom left, rgba(0, 42, 58, 0.06) 0%, transparent 40%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Hero Visual / Mockup */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
}

.mock-header {
  height: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mock-body {
  flex: 1;
  display: flex;
  padding: 1rem;
  gap: 1rem;
}

.mock-sidebar {
  width: 25%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
}

.mock-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.mock-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mock-card-large {
  grid-column: span 2;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.section {
  padding: 6rem 0;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section-alternate {
  background-color: #f1f5f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 42, 58, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background-color: var(--company-primary-alpha);
  color: var(--company-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Stepper
   ========================================================================== */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.step-card {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  border-color: var(--company-primary-alpha);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--company-primary-alpha);
  color: var(--company-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Tabs Component
   ========================================================================== */
.tabs-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-color);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.tabs-header {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tab-btn {
  flex: 1;
  padding: 1.25rem 1rem;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--company-primary);
  background: white;
}

.tab-btn.active {
  color: var(--company-primary);
  border-bottom-color: var(--company-primary);
  background: white;
}

.tabs-content {
  padding: 2.5rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tab-pane p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ==========================================================================
   Security Section
   ========================================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.security-card {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.security-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
}

.security-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--company-primary-alpha), rgba(36, 246, 155, 0.08));
  color: var(--company-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.security-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-family);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--company-primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-question::after {
  content: '\2212';
  color: var(--company-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding-top: 1rem;
}

.contact-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.contact-detail-item svg {
  flex-shrink: 0;
  color: var(--company-primary);
}

.contact-detail-item a {
  color: var(--company-primary);
  font-weight: 500;
}

.contact-detail-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--company-primary);
  box-shadow: 0 0 0 3px var(--company-primary-alpha);
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success svg {
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--company-primary);
  border-top: none;
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
  color: var(--company-primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Language Button
   ========================================================================== */
.lang-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--company-primary-alpha);
  color: var(--company-primary);
  border-color: var(--company-primary);
}

/* ==========================================================================
   Split Layout & Media
   ========================================================================== */
.split-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.split-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-reverse {
  flex-direction: row-reverse;
}

.split-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.split-image:hover img {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 42, 58, 0.2);
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 42, 58, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 42, 58, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .glass-panel {
    max-width: 800px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stepper-container {
    flex-direction: column;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
