/* ============================================================
   KEEP SHINE LIMITED - Design System & Global Styles
   Computer Systems Design & Integrated Solutions
   ============================================================ */

:root {
  --color-deep: #060d1a;
  --color-navy: #0b1a33;
  --color-dark: #101d38;
  --color-primary: #1e5bca;
  --color-primary-bright: #3478f0;
  --color-accent: #00b8d4;
  --color-accent-glow: #00e5ff;
  --color-white: #ffffff;
  --color-snow: #f5f7fb;
  --color-light: #e8ecf4;
  --color-slate: #64748b;
  --color-text: #0f172a;
  --color-text-light: #475569;
  --color-border: #dee4ef;
  --color-success: #10b981;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(30,91,202,0.15);
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: var(--color-deep);
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 13, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-white);
}

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

.nav-links a {
  color: #bcc8dd;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-primary));
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 15px rgba(52,120,240,0.35);
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(52,120,240,0.5);
}

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

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-deep) 0%, var(--color-navy) 40%, #0d2247 70%, #102a56 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,91,202,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,91,202,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow-1 {
  position: absolute;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,184,212,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,91,202,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52,120,240,0.12);
  border: 1px solid rgba(52,120,240,0.25);
  color: var(--color-accent-glow);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-glow);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: #9bacc9;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-primary));
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(30,91,202,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,91,202,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.05);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.hero-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.hero-card h3 {
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-card p {
  color: #8fa0be;
  font-size: 15px;
  margin-bottom: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent-glow);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 13px;
  color: #7a8db3;
  margin-top: 4px;
}

/* --- Section General --- */
.section {
  padding: 100px 0;
}

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

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Services --- */
.services {
  background: var(--color-snow);
}

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

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary-bright), var(--color-accent));
  transition: height var(--transition);
  border-radius: 0 0 4px 0;
}

.service-card:hover {
  border-color: rgba(30,91,202,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(30,91,202,0.08), rgba(0,184,212,0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--color-primary-bright);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- About Section --- */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--color-deep), var(--color-navy));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

.about-image-inner {
  text-align: center;
  z-index: 1;
}

.about-image-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.about-image-text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.about-image-sub {
  color: #7a8db3;
  font-size: 14px;
  margin-top: 6px;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-primary));
  color: var(--color-white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-image-badge .badge-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.about-image-badge .badge-label {
  font-size: 13px;
  color: #c8daf5;
  margin-top: 4px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.about-feature .check {
  width: 24px;
  height: 24px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Tech Stack --- */
.tech-stack {
  background: var(--color-snow);
}

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

.tech-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
}

.tech-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tech-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tech-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-deep), var(--color-navy));
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(0,184,212,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(30,91,202,0.08) 0%, transparent 50%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: #9bacc9;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-deep);
  color: #8fa0be;
  padding: 72px 0 32px;
}

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

.footer-about h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: #8fa0be;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #6a7d9e;
  transition: color var(--transition);
}

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

/* --- Legal Pages --- */
.legal-hero {
  background: linear-gradient(160deg, var(--color-deep) 0%, var(--color-navy) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0,184,212,0.06) 0%, transparent 60%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.legal-hero .updated {
  color: #7a8db3;
  font-size: 14px;
}

.legal-content {
  padding: 80px 0 100px;
}

.legal-content .container {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  margin-top: 24px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 { font-size: 44px; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .about .container { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-deep);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .section-header h2 { font-size: 32px; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .about-image { height: 280px; }
  .about-content h2 { font-size: 30px; }
  .cta-section h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .legal-hero h1 { font-size: 34px; }
}
