/* ========================================
   LINEARITY - Design System & Styles
   Modern Industrial | Aero-Defense
   ======================================== */

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors */
  --color-bg-primary: #0B132B;
  --color-bg-secondary: #1C2541;
  --color-bg-tertiary: #252F4A;
  --color-accent-primary: #5BC0BE;
  --color-accent-hover: #6ED4D2;
  --color-accent-glow: rgba(91, 192, 190, 0.3);
  --color-silver: #C0C5D0;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0A8B8;
  --color-text-muted: #6B7280;
  --color-success: #10B981;
  --color-divider: rgba(91, 192, 190, 0.2);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--color-accent-glow);
}

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

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

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

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

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ===== Utility Classes ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-accent {
  color: var(--color-accent-primary);
}

.text-silver {
  color: var(--color-silver);
}

.text-muted {
  color: var(--color-text-secondary);
}

/* ===== Technical Grid Background ===== */
.tech-grid-bg {
  position: relative;
  background-color: var(--color-bg-primary);
}

.tech-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 192, 190, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 192, 190, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-primary), #3A9896);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--color-accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent-primary);
  border: 1px solid var(--color-accent-primary);
}

.btn-secondary:hover {
  background: rgba(91, 192, 190, 0.1);
  transform: translateY(-2px);
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

/* ===== Section Titles ===== */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ===== Cards ===== */
.card {
  background: rgba(28, 37, 65, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 192, 190, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(91, 192, 190, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== Icons ===== */
.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(91, 192, 190, 0.2), rgba(91, 192, 190, 0.05));
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-4);
}

.icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent-primary);
  stroke-width: 1.5;
  fill: none;
}

.icon-small {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.icon-small svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   SECTION 1: Hero
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(91, 192, 190, 0.1);
  border: 1px solid rgba(91, 192, 190, 0.3);
  border-radius: 100px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--color-accent-primary), #3A9896);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.hero-form input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  background: rgba(28, 37, 65, 0.8);
  border: 1px solid rgba(91, 192, 190, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

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

.hero-form input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(91, 192, 190, 0.1));
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: var(--border-radius-xl);
}

/* Floating elements */
.hero-float {
  position: absolute;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.hero-float:nth-child(1) {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-float:nth-child(2) {
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

.hero-float:nth-child(3) {
  bottom: 10%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ========================================
   SECTION 2: Value Proposition
   ======================================== */
.value-prop {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.value-prop .section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.value-prop .section-subtitle {
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

.value-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.value-card .partner-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   SECTION 3: Trust Mechanism
   ======================================== */
.trust-section {
  padding: var(--space-24) 0;
  position: relative;
}

.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(91, 192, 190, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(91, 192, 190, 0.03) 0%, transparent 50%);
}

.trust-section .container {
  position: relative;
  z-index: 1;
}

.trust-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.trust-text h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.trust-text p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.trust-visual {
  background: rgba(28, 37, 65, 0.4);
  border: 1px solid rgba(91, 192, 190, 0.15);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
}

.trust-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.trust-seal {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent-primary), #3A9896);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-seal svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-bg-primary);
  stroke-width: 2;
  fill: none;
}

.trust-header-text h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.trust-header-text span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.trust-params {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.param-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.param-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.param-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.param-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent-primary);
  stroke-width: 2;
  fill: none;
}

.param-focus {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.param-bar {
  height: 6px;
  background: rgba(91, 192, 190, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.param-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-primary), #3A9896);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.param-weight {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-primary);
  min-width: 60px;
  text-align: right;
}

/* ========================================
   SECTION 4: Dual Track
   ======================================== */
.dual-track {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.dual-track .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.track-card {
  padding: var(--space-10);
  border-radius: var(--border-radius-xl);
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.track-suppliers {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(28, 37, 65, 0.6));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.track-suppliers::before {
  background: linear-gradient(90deg, var(--color-success), #059669);
}

.track-oems {
  background: linear-gradient(180deg, rgba(91, 192, 190, 0.05), rgba(28, 37, 65, 0.6));
  border: 1px solid rgba(91, 192, 190, 0.2);
}

.track-oems::before {
  background: linear-gradient(90deg, var(--color-accent-primary), #3A9896);
}

.track-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

.track-suppliers .track-label {
  color: var(--color-success);
}

.track-oems .track-label {
  color: var(--color-accent-primary);
}

.track-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.track-card .track-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.track-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.track-list .list-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.track-suppliers .list-icon svg {
  stroke: var(--color-success);
}

.track-oems .list-icon svg {
  stroke: var(--color-accent-primary);
}

.track-list .list-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  fill: none;
}

.track-list .list-content h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.track-list .list-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.track-suppliers .btn {
  background: linear-gradient(135deg, var(--color-success), #059669);
  color: white;
}

.track-suppliers .btn:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.3);
}

/* ========================================
   SECTION 5: Regional Advantage
   ======================================== */
.regional {
  padding: var(--space-20) 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, rgba(91, 192, 190, 0.05) 100%);
  overflow: hidden;
}

.regional::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='rgba(91,192,190,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.5;
}

.regional .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.regional h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}

.regional p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.regional-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-12);
}

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

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   SECTION 6: Footer
   ======================================== */
.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-divider);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(91, 192, 190, 0.1);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  background: rgba(91, 192, 190, 0.2);
  transform: translateY(-2px);
}

.footer-links svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent-primary);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: var(--space-8);
  margin-top: var(--space-6);
  border-top: 1px solid rgba(91, 192, 190, 0.1);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

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

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

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

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-subtitle {
    margin: 0 auto var(--space-8);
  }

  .hero-form {
    margin: 0 auto;
    flex-direction: column;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .trust-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-image img {
    max-width: 100%;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .regional h2 {
    font-size: var(--font-size-2xl);
  }

  .regional-stats {
    flex-direction: column;
    gap: var(--space-8);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Form Success State ===== */
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--border-radius-md);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-success);
  stroke-width: 2;
  fill: none;
}