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

:root {
  --primary: #0A398F;
  --primary-light: #0D61B2;
  --primary-dark: #0B267E;
  --primary-bg: #e8eef8;
  --accent: #E97125;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

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

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

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

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

ul {
  list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 57, 143, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

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

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

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

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

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

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-light);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.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(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-bg) 50%, #dce4f2 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -80px;
  left: -60px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(10, 57, 143, 0.12);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Section Commons ===== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-header h2,
.about-content h2,
.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.02rem;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--bg);
}

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

.service-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.service-card.visible:hover {
  transform: translateY(-4px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-bg);
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.code-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #1e1e2e;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #2a2a3e;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-title {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.code-body {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: #cdd6f4;
}

.code-keyword { color: #7eb8f0; }
.code-var { color: #ED822A; }
.code-prop { color: #6ec8a0; }
.code-string { color: #F7B01A; }

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Why Lasmia ===== */
.why-us {
  padding: 100px 0;
  background: var(--bg);
}

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

.why-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.why-card.visible:hover {
  transform: translateY(-4px);
}

.why-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== Process ===== */
.process {
  padding: 100px 0;
  background: var(--bg-soft);
}

.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.process-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 24px 16px;
  opacity: 0;
  transform: translateY(24px);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

.process-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 47px;
  flex-shrink: 0;
}

/* ===== Industries ===== */
.industries {
  padding: 100px 0;
  background: var(--bg);
}

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

.industry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.industry-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.industry-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.industry-card.visible:hover {
  transform: translateY(-2px);
}

.industry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary);
  flex-shrink: 0;
}

.industry-card span {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 0.92rem;
}

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

/* ===== Contact Visual ===== */
.contact-visual {
  position: relative;
}

.terminal-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1e293b;
}

.terminal-title {
  margin-left: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
  padding: 24px;
  min-height: 220px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 2;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.terminal-prompt {
  color: #ED822A;
  font-weight: 600;
}

.terminal-cmd {
  color: #e2e8f0;
}

.terminal-cursor {
  color: #ED822A;
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

.terminal-output {
  color: #94a3b8;
  padding-left: 20px;
  font-size: 0.8rem;
  min-height: 1.6em;
}

.terminal-success {
  color: #F7B01A;
}

@keyframes blink {
  50% { opacity: 0; }
}

.contact-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  background: var(--primary);
  color: #fff;
  top: -16px;
  right: -8px;
  animation-delay: 0s;
}

.badge-2 {
  background: var(--accent);
  color: #fff;
  bottom: 40px;
  right: -20px;
  animation-delay: 1.2s;
}

.badge-3 {
  background: #F7B01A;
  color: #fff;
  bottom: -12px;
  left: -16px;
  animation-delay: 2.4s;
}

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

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #cbd5e1;
  padding-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #64748b;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

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

  .process-connector {
    display: none;
  }

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

  .process-step {
    max-width: none;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero-stats {
    gap: 32px;
  }

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

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

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

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

  .about-visual {
    order: -1;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

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

  .contact-form {
    padding: 24px;
  }
}
