/* ========================================
   L2Ksoft Company Homepage Styles
   ======================================== */

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

:root {
  --primary: #be1622;
  --primary-dark: #9a1019;
  --primary-light: #d42a36;
  --accent: #f47b20;
  --bg: #ffffff;
  --bg-alt: #fdf8f6;
  --bg-dark: #1a0c0a;
  --text: #2d1a17;
  --text-secondary: #6b5550;
  --text-light: #a08a85;
  --border: #ede0dc;
  --border-light: #f5eeec;
  --gradient: linear-gradient(135deg, #be1622 0%, #f47b20 100%);
  --gradient-text: linear-gradient(135deg, #be1622 0%, #f47b20 50%, #be1622 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.footer-logo-svg {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  background: var(--bg-alt);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(190, 22, 34, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(244, 123, 32, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(190, 22, 34, 0.04) 0%, transparent 70%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(circle, rgba(190, 22, 34, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: drift 30s linear infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(190, 22, 34, 0.08);
  border: 1px solid rgba(190, 22, 34, 0.15);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--bg-dark);
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(190, 22, 34, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(190, 22, 34, 0.4);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: 120px 0;
}

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

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  border-color: rgba(190, 22, 34, 0.2);
  background: linear-gradient(180deg, rgba(190, 22, 34, 0.02) 0%, var(--bg) 100%);
}

.service-card.featured::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 22, 34, 0.08);
  border-radius: 14px;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(190, 22, 34, 0.06);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.service-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.service-tagline {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========================================
   Technology Section
   ======================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(190, 22, 34, 0.15);
}

.tech-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(190, 22, 34, 0.1) 0%, rgba(244, 123, 32, 0.1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.tech-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.tech-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.tech-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Clients Section
   ======================================== */
.clients {
  background: var(--bg-alt);
  overflow: hidden;
}

.clients-marquee {
  overflow: hidden;
  margin-bottom: 64px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 24px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.client-item {
  flex-shrink: 0;
  padding: 16px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.contact-info .section-title {
  text-align: left;
}

.contact-info .section-label {
  text-align: left;
  display: block;
}

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

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

.contact-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

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

.required {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(190, 22, 34, 0.1);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.footer-links-group {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-company-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-legal {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 8px;
}

/* ========================================
   Animations (Scroll Reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-btn {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-description br {
    display: none;
  }

  .services-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-info .section-title {
    text-align: center;
  }

  .contact-info .section-label {
    text-align: center;
  }

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

  .contact-desc br {
    display: none;
  }

  .contact-details {
    align-items: center;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links-group {
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .stat-item {
    padding: 24px 12px;
  }

  .stat-number {
    font-size: 32px;
  }
}
