/* ========================================
   Osynex — Landing Page Styles (Light Modern)
   ======================================== */

:root {
  --primary: #14396d;
  --primary-dark: #0e2a52;
  --primary-light: #1a4f8b;
  --accent: #1a3f8b;
  --accent-light: #2456a8;
  --accent-soft: rgba(26, 63, 139, 0.08);
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-accent: 0 8px 32px rgba(37, 99, 235, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
  text-align: center;
  color: var(--text);
}

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

.section-subtitle {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-size: 0.85rem;
  border-radius: 10px;
}
.btn-nav:hover {
  background: var(--primary);
  box-shadow: var(--shadow-accent);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.logo-icon {
  color: var(--accent);
  font-size: 1.2rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

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

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

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f8fafc 0%, #e0ecff 40%, #dbeafe 60%, #f0f7ff 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text);
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 44px;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

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

/* ---- Services ---- */
.services {
  padding: 110px 0;
  background: var(--bg);
  text-align: center;
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  border: 1px solid var(--border);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.service-card h3 { margin-bottom: 12px; color: var(--text); }

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 50px;
}

/* ---- Products ---- */
.products {
  padding: 110px 0;
  background: var(--bg-soft);
}

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

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 50px;
}

.product-card h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.product-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.product-features svg {
  color: var(--accent);
  flex-shrink: 0;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 50px;
}

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

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

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

.about-visual {
  position: relative;
  height: 400px;
  opacity: 0;
  transform: translateX(-30px);
}

.about-visual.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #e0ecff 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.about-card-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.about-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--border);
}

.float-icon { font-size: 1.2rem; }

.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.card-2 { top: 45%; right: 10%; animation-delay: 2s; }
.card-3 { bottom: 15%; left: 20%; animation-delay: 4s; }

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

.about-content {
  opacity: 0;
  transform: translateX(30px);
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.value {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.value h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.value p {
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
}

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

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

.contact-info {
  opacity: 0;
  transform: translateX(-30px);
}
.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

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

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  padding: 14px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(30px);
}
.contact-form.visible {
  opacity: 1;
  transform: translateX(0);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg);
}

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

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

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

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 280px;
}

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

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
}

.footer .logo { color: #fff; }

/* ---- Animations ---- */
[data-animate] { transition: opacity 0.6s ease, transform 0.6s ease; }

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

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

  .mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a { color: var(--text) !important; }

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

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

  .about-visual { height: 300px; }

  .hero-stats { gap: 32px; flex-wrap: wrap; }

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

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

  .contact-form { padding: 24px; }

  .value { padding: 16px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 24px; }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
