/* LottoCore — Blue Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-900: #0a1628; --blue-800: #0f1f3d; --blue-700: #1a2a4a;
  --blue-600: #2563eb; --blue-500: #3b82f6; --blue-400: #60a5fa;
  --blue-300: #93c5fd; --blue-200: #bfdbfe; --blue-100: #dbeafe; --blue-50: #eff6ff;
  --accent: #f59e0b; --accent-light: #fbbf24;
  --white: #ffffff; --off-white: #f8fafc; --gray-100: #eef2f6; --gray-200: #d8dfe6;
  --gray-400: #8899a8; --gray-600: #556b7a; --gray-800: #2d3d48; --gray-900: #1a262e;
  --radius: 12px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.08);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--gray-100); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: white; flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--blue-900); }
.logo-text span { color: var(--blue-500); }
.logo-sub { font-size: 10px; color: var(--gray-400); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-600); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue-500); transition: var(--transition); }
.nav-links a:hover { color: var(--blue-900); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue-900); }
.nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--blue-600); color: white !important; padding: 10px 24px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { background: var(--blue-700) !important; color: white !important; }
.nav-cta::after { display: none !important; }
.nav-cta.active { background: var(--blue-700) !important; color: white !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--blue-900); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,158,11,0.3); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue-600); border: 2px solid var(--blue-500); }
.btn-outline:hover { background: var(--blue-50); }

/* Sections */
section { padding: 100px 0; }
.page-section { padding-top: 140px; }
.section-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); color: var(--blue-900); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-desc { font-size: 17px; color: var(--gray-600); max-width: 640px; line-height: 1.7; }
.section-header { margin-bottom: 56px; }

/* Page Header */
.page-header {
  background: linear-gradient(165deg, var(--blue-900), var(--blue-700));
  padding: 120px 0 60px; color: white; text-align: center;
}
.page-header h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.page-header h1 span { background: linear-gradient(135deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

/* Footer */
footer { background: var(--blue-900); color: rgba(255,255,255,0.5); padding: 60px 0 30px; margin-top: 0; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 300px; }
footer h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { font-size: 14px; color: rgba(255,255,255,0.5); transition: var(--transition); }
footer a:hover { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 24px; text-align: center; font-size: 13px; }

/* CTA section */
.cta-section { background: linear-gradient(135deg, var(--blue-800), var(--blue-700)); text-align: center; padding: 100px 0; color: white; }
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; }
.cta-section .btn-primary { font-size: 16px; padding: 16px 40px; }

/* Card grids */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Feature cards */
.feature-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 32px; transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-2px); }
.feature-card .icon { width: 48px; height: 48px; background: var(--blue-50); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--blue-500); margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* Responsive grid utility classes */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.card-grid-responsive { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 100px; font-size: 13px; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.1); }

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: white; padding: 24px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); gap: 16px; z-index: 99; }
  .nav-links.open ~ .nav-backdrop { display: block; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 98; }
  section { padding: 60px 0; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 28px; }
  .page-header p { font-size: 15px; }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  
  /* All grids collapse */
  .hero-grid, .two-col-grid, .media-row { grid-template-columns: 1fr !important; gap: 32px; }
  .media-row.reverse .media-text { order: 0; }
  .hero-grid { gap: 32px; }
  .two-col-grid { gap: 32px; }
  .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-responsive { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  
  /* Hero */
  .hero-visual { min-height: auto; margin-top: 0; }
  .hero-visual .shot { max-width: 100%; }
  .float-ball { width: 55px; }
  .float-ball.b2 { width: 45px; }
  .float-ball.b3 { display: none; }
  .glass-chip { position: static !important; margin: 10px 0; display: inline-block; }
  .glass-chip .big { font-size: 18px; }
  .glass-chip .lbl { font-size: 10px; }
  
  /* Hero badges */
  .hero-badges { gap: 8px; margin-bottom: 24px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  
  /* Showcase cards */
  .showcase-grid { grid-template-columns: 1fr; }
  
  /* About page */
  .about-story { font-size: 15px; }
  .why-num { font-size: 28px; }
  
  /* Form */
  .contact-form { padding: 0; }
  
  /* Logo strip */
  .logo-strip { gap: 20px 24px; }
  .logo-strip img { height: 22px; }
  
  /* CTA */
  .cta-section h2 { font-size: 28px; }
  .cta-section p { font-size: 15px; }
  
  /* Product / solution cards */
  .product-card .pc-body, .sol-card > div:last-child { padding: 20px 20px 24px !important; }
  
  /* Section headers */
  .section-title { font-size: 26px; }
  .section-desc { font-size: 15px; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

/* Table styles */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--blue-50); color: var(--blue-900); font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--blue-200); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
tbody tr:hover { background: var(--blue-50); }

/* Tag/badge */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-blue { background: var(--blue-50); color: var(--blue-500); }

/* ====== Imagery components ====== */
img { max-width: 100%; height: auto; display: block; }

/* Hero image composition */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.hero-visual .shot { width: 100%; max-width: 520px; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.float-ball { position: absolute; width: 110px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); animation: floaty 6s ease-in-out infinite; }
.float-ball.b2 { width: 90px; animation-delay: -2s; }
.float-ball.b3 { width: 70px; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
.glass-chip { position: absolute; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 14px 18px; color: white; box-shadow: var(--shadow-lg); }
.glass-chip .big { font-size: 22px; font-weight: 800; color: var(--accent-light); }
.glass-chip .lbl { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; text-transform: uppercase; }

/* Logo trust strip */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.logo-strip img { height: 38px; width: auto; opacity: 0.75; filter: grayscale(100%); transition: var(--transition); }
.logo-strip img:hover { opacity: 1; filter: grayscale(0%); transform: translateY(-2px); }
.logo-strip.on-dark img { filter: grayscale(100%) brightness(0) invert(1); opacity: 0.6; }
.logo-strip.on-dark img:hover { filter: none; opacity: 1; }

/* Media rows */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-row + .media-row { margin-top: 80px; }
.media-row.reverse .media-text { order: 2; }
.media-shot { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); background: var(--off-white); }
.media-shot img { width: 100%; }

/* Showcase band (screenshots on dark) */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.showcase-card { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); background: #0d1c3a; transition: var(--transition); }
.showcase-card:hover { transform: translateY(-6px); }
.showcase-card img { width: 100%; display: block; }
.showcase-card .cap { padding: 16px 20px; }
.showcase-card .cap h4 { color: white; font-size: 15px; margin-bottom: 4px; }
.showcase-card .cap p { color: rgba(255,255,255,0.6); font-size: 13px; }

/* Image header for cards */
.card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue-50), var(--off-white)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-img.contain img { object-fit: contain; padding: 18px; }
.case-card:hover .card-img img, .product-card-img:hover .card-img img { transform: scale(1.05); }

/* Product card with image */
.product-card-img { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); transition: var(--transition); display: block; }
.product-card-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.product-card-img .pc-body { padding: 24px 28px 28px; }
.product-card-img h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; }
.product-card-img p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* Decorative balls */
.ball-accent { position: absolute; pointer-events: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }

