/* ==========================================================================
   EKSTRON Landing Page v2 - Minimal Clean Design
   ========================================================================== */

/* Design Tokens */
:root {
  /* Colors */
  --color-bg-primary: #0a0b0c;
  --color-bg-secondary: #191a1c;
  --color-bg-card: #141516;
  --color-border: #242628;
  --color-border-light: rgba(255, 255, 255, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #9ca3af;

  --color-accent: #1a60d1;
  --color-accent-hover: #1654b8;
  --color-accent-light: rgba(31, 113, 255, 0.1);

  /* Typography */
  --font-family: "Blinker", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-lg) 0;
  background: transparent;
  transition: background var(--transition-normal);
}

.nav.scrolled {
  background: rgba(10, 11, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-svg {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link.active {
  color: var(--color-text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 12px var(--spacing-xl);
  font-size: 15px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Animated Lines */
.hero-lines {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-lines-svg {
  width: 100%;
  height: 100%;
}

.hero-line {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards, wave 8s ease-in-out infinite;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero-line-1,
.hero-line-3 {
  stroke-width: 2;
}
.hero-line-2,
.hero-line-4 {
  stroke-width: 1.5;
}
.hero-line-5 {
  stroke-width: 1;
}

.hero-line-1 {
  animation-delay: 0.3s, 0.3s;
}
.hero-line-2 {
  animation-delay: 0.6s, 0.6s;
}
.hero-line-3 {
  animation-delay: 0.9s, 0.9s;
}
.hero-line-4 {
  animation-delay: 1.2s, 1.2s;
}
.hero-line-5 {
  animation-delay: 1.5s, 1.5s;
}

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

@keyframes wave {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0) translateX(0);
  }
  25% {
    opacity: 0.7;
    transform: translateY(-15px) translateX(10px);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-25px) translateX(-5px);
  }
  75% {
    opacity: 0.6;
    transform: translateY(-10px) translateX(15px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-xl) var(--spacing-2xl);
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
}

/* Hero Extended */
.hero-extended {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-primary);
}

.hero-extended-text {
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 1025px;
  margin: 0 auto;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  background: rgba(36, 38, 40, 0.6);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.product-card-reverse {
  direction: rtl;
}

.product-card-reverse > * {
  direction: ltr;
}

.product-content {
  padding: var(--spacing-lg) 0;
}

.product-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.product-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.product-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0;
}

.product-description {
  font-size: 15px;
  line-height: 1.625;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.product-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.product-benefits li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 14px;
  color: #4d8bff;
}

.product-benefits li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d8bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.product-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-card);
}

.product-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.about-card {
  background: rgba(36, 38, 40, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
}

.about-card p {
  font-size: 15px;
  line-height: 1.625;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.section-contact {
  background: var(--color-bg-primary);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(36, 38, 40, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
}

.form-field .required {
  color: #ef4444;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  transition: border-color var(--transition-fast);
}

.form-field select {
  cursor: pointer;
  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' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-field select option {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.form-field select optgroup {
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-captcha {
  display: flex;
  justify-content: center;
  margin: var(--spacing-md) 0;
}

.form-message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  margin-top: var(--spacing-md);
}

.form-message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-bg-primary);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-column h3.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-column a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-sm);
}

.footer-bottom-links {
  margin-top: var(--spacing-sm);
}

.footer-bottom-links a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text-primary);
}

/* ==========================================================================
   Policy Pages
   ========================================================================== */
.policy-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: var(--spacing-3xl);
}

.policy-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  animation: policyFadeIn 0.6s ease-out;
}

.policy-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
}

.policy-meta {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(36, 38, 40, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-3xl);
  animation: policySlideUp 0.7s ease-out 0.2s both;
}

.policy-section {
  margin-bottom: var(--spacing-2xl);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.policy-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.policy-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.policy-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.policy-section li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.policy-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}

.policy-table th,
.policy-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.policy-table th {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: 600;
}

.policy-table td {
  color: var(--color-text-secondary);
}

/* Policy page footer (simplified) */
.policy-footer {
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
  animation: policyFadeIn 0.5s ease-out 0.5s both;
}

.policy-footer p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.policy-footer a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.policy-footer a:hover {
  color: var(--color-text-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1600px) {
  .hero-bg-image {
    height: 500px;
  }
}

@media (min-width: 1920px) {
  .hero-bg-image {
    height: 600px;
  }
}

@media (max-width: 1024px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .product-card-reverse {
    direction: ltr;
  }

  .product-image {
    order: -1;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .logo {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: var(--spacing-md);
  }

  .hero-content {
    padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-xl);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-bg-image {
    height: 250px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-3xl) 0;
  }

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

  .contact-form-wrapper {
    padding: var(--spacing-xl);
  }

  /* Cards to full-width sections on mobile */
  .product-card,
  .about-card,
  .contact-form-wrapper {
    border-radius: 0;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .product-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }

  .policy-page {
    padding-top: 140px;
  }

  .policy-content {
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: 0;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
  }

  .policy-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes policyFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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