/* ═══════════════════════════════════════════
   LinkLabs Corporate Website — Design System
   ═══════════════════════════════════════════ */

/* ── CSS Variables / Design Tokens ── */
:root {
  /* Colors */
  --color-primary: #111827;
  --color-primary-light: #374151;
  --color-primary-dark: #030712;
  --color-secondary: #2563EB;
  --color-secondary-light: #60A5FA;
  --color-accent: #F59E0B;
  --color-bg: #F8FAFC;
  --color-bg-dark: #F1F5F9;
  --color-bg-dark-card: #FFFFFF;
  --color-text: #111827;
  --color-text-muted: #4B5563;
  --color-text-light: #1F2937;
  --color-text-light-muted: #6B7280;
  --color-white: #FFFFFF;
  --color-border: rgba(17, 24, 39, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-hero: linear-gradient(180deg, #F8FAFC 0%, #DBEAFE 60%, #F8FAFC 100%);
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #60A5FA 50%, #2563EB 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-bg-light: rgba(255, 255, 255, 0.95);
  --glass-border-light: rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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-size-hero: clamp(2.5rem, 6vw, 4.5rem);

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;

  /* Effects */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* ── Shared Section Styles ── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.section__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section--dark .section__subtitle {
  color: var(--color-text-light-muted);
}

/* ── Glass Card ── */
.glass {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(17, 24, 39, 0.3);
}

.btn--outline:hover {
  background: rgba(17, 24, 39, 0.05);
  border-color: rgba(17, 24, 39, 0.5);
  transform: translateY(-2px);
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

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

.nav__logo-img {
  height: 32px;
  width: auto;
  transition: opacity var(--transition-base);
}

.nav__logo-img:hover {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(17, 24, 39, 0.7);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: all var(--transition-base);
}

/* ══════════════════════════════════
   HERO SECTION
   ══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__tagline {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(17, 24, 39, 0.6);
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-indicator span {
  font-size: var(--font-size-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.3);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-secondary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card {
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.about__card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(17, 24, 39, 0.1));
}

.about__card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-secondary);
}

.about__card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.about__card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ══════════════════════════════════
   HISTORY / TIMELINE
   ══════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-secondary), rgba(37, 99, 235, 0.1));
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -39px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline__dot--future {
  background: transparent;
  border: 2px solid var(--color-secondary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1); }
}

.timeline__content {
  padding: 28px 32px;
}

.timeline__date {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.timeline__content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline__content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light-muted);
  line-height: 1.8;
}

/* ══════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════ */
.product__showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product__image {
  width: 100%;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-slow);
}

.product__image-wrapper:hover .product__image {
  transform: scale(1.03);
}

.product__image-glow {
  position: absolute;
  bottom: -20%;
  left: 10%;
  right: 10%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.25), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.product__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 16px;
}

.product__name {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.product__tagline {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-style: italic;
}

.product__description {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.product__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.05);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all var(--transition-base);
}

.product__feature:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

.product__feature-icon {
  font-size: var(--font-size-xl);
}

/* ══════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact__card {
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.contact__card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact__card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.contact__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-secondary);
  transition: color var(--transition-base);
}

.contact__link:hover {
  color: var(--color-secondary-light);
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  height: 28px;
  opacity: 1;
  margin-bottom: 8px;
}

.footer__brand {
  text-align: center;
}

.footer__slogan {
  font-size: var(--font-size-sm);
  color: var(--color-text-light-muted);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-light-muted);
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  width: 100%;
  text-align: center;
}

.footer__bottom p {
  font-size: var(--font-size-xs);
  color: var(--color-text-light-muted);
  opacity: 0.6;
}

/* ══════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .product__showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product__info {
    text-align: center;
  }

  .product__features {
    max-width: 400px;
    margin: 0 auto 32px;
  }

  .product__info .btn {
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  /* Nav Mobile */
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .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 */
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline */
  .timeline {
    padding-left: 36px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline__dot {
    left: -34px;
  }

  .timeline__content {
    padding: 20px 24px;
  }

  /* Product */
  .product__features {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}
