/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #1a6bb5;
  --primary-dark: #0f4c81;
  --primary-light: #2d8ad4;
  --accent: #00b4d8;
  --accent-light: #48cae4;
  --dark: #0b0f19;
  --dark-lighter: #111827;
  --surface: #1a1f2e;
  --surface-light: #232938;
  --surface-border: rgba(255, 255, 255, 0.06);
  --text-primary: #e8ecf1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 181, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  background: rgba(11, 15, 25, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 15, 25, 1) 0%, rgba(17, 24, 39, 0.95) 50%, rgba(15, 76, 129, 0.8) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 180, 216, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 107, 181, 0.15) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='30'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.015)' stroke-width='0.5' d='M0 15h9l8.5-15h17L43 15h9M17.5 30L9 15M34.5 30l8.5-15'/%3E%3C/svg%3E");
  background-size: 156px 90px;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* ===== Section Utilities ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

.bg-light {
  background: var(--dark-lighter);
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 180, 216, 0.15);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.card-icon.blue { background: rgba(26, 107, 181, 0.15); color: var(--primary-light); }
.card-icon.cyan { background: rgba(0, 180, 216, 0.15); color: var(--accent); }
.card-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.card-icon.orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Features / Highlights Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== Product Cards ===== */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 180, 216, 0.15);
}

.product-card-header {
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.product-card-header::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.product-card-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.product-card-header .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 28px 32px 32px;
}

.product-card-body p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.product-card-body ul {
  margin-bottom: 24px;
}

.product-card-body li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card-body li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
  padding-left: 40px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item h4 {
  color: var(--accent-light);
  margin-bottom: 4px;
}

.timeline-item .year {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.93rem;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  max-width: 560px;
}

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
}

.value-item .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-item h4 {
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.88rem;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group label .required {
  color: #f87171;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--surface-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--surface);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--surface-border);
}

.contact-info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card p {
  font-size: 0.88rem;
  margin: 0;
}

.contact-info-card a {
  color: var(--accent);
  font-weight: 500;
}

.contact-info-card a:hover {
  color: var(--accent-light);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 180, 216, 0.12) 0%, transparent 50%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 80px 0 0;
  border-top: 1px solid var(--surface-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--surface-border);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.4);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== Form Feedback ===== */
.form-status {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
  margin-top: 16px;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Contact Form Integration - Data Attribute Selectors */
[data-contact-success],
[data-contact-error] {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
  margin-bottom: 16px;
}

[data-contact-success] {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-contact-error] {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ===== Careers ===== */
.careers-form-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
}

.file-upload {
  position: relative;
  border: 2px dashed var(--surface-light);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.file-upload:hover {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.05);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload .icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.file-upload p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.file-upload .limit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--dark-lighter);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    border-left: 1px solid var(--surface-border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .features-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .form-row { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .careers-form-section { padding: 28px 20px; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 24px; }
  .container { padding: 0 16px; }
}

/* ===== CAPTCHA ===== */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.captcha-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.captcha-refresh {
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Overlay for mobile nav ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
