/* ============================================
   INNOVASFT PTE. LTD. — Global Stylesheet
   Design: Premium light theme with subtle tech
   ============================================ */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-purple: #5856d6;
  --color-green: #30d158;
  --color-border: #e8e8ed;
  --color-border-light: #f2f2f7;
  --color-code-bg: #f5f5f7;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 720px;
  --max-width-wide: 1080px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

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

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #0071e3, #5856d6);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active { color: var(--color-text); }

/* ── Light Hero ── */
.hero-light {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  background: var(--color-bg);
}

/* Subtle dot grid */
.light-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 20%, transparent 70%);
}

/* Soft pastel orbs */
.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}

.light-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
  top: -120px;
  left: -80px;
  animation: lightOrb1 14s ease-in-out infinite;
}

.light-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 86, 214, 0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -60px;
  animation: lightOrb2 18s ease-in-out infinite;
}

.light-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.08) 0%, transparent 70%);
  top: 30%;
  left: 55%;
  animation: lightOrb3 11s ease-in-out infinite;
}

@keyframes lightOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.08); }
  66% { transform: translate(-15px, 50px) scale(0.95); }
}

@keyframes lightOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -25px) scale(1.05); }
  66% { transform: translate(25px, -40px) scale(0.92); }
}

@keyframes lightOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 25px) scale(1.12); }
}

.hero-light-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.5);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-light-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.gradient-text-light {
  background: linear-gradient(135deg, #0071e3 0%, #5856d6 60%, #bf5af2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-light-subtitle {
  font-size: 1.12rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-border-light);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.stats-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,113,227,0.07), rgba(88,86,214,0.07));
  color: var(--color-accent);
  flex-shrink: 0;
}

.stat-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

/* ── Values Section ── */
.values-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 4rem 2rem 1rem;
}

.values-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.values-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.values-header p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.values {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-card-tech {
  position: relative;
  overflow: hidden;
}

.value-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.value-card-tech:nth-child(1) .value-card-glow { background: rgba(0, 113, 227, 0.1); }
.value-card-tech:nth-child(2) .value-card-glow { background: rgba(88, 86, 214, 0.1); }
.value-card-tech:nth-child(3) .value-card-glow { background: rgba(48, 209, 88, 0.08); }

.value-card-tech:hover .value-card-glow { opacity: 1; }

.value-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.value-icon-blue { background: rgba(0, 113, 227, 0.08); }
.value-icon-purple { background: rgba(88, 86, 214, 0.08); }
.value-icon-green { background: rgba(48, 209, 88, 0.08); }

.value-card-tech:hover .value-icon-wrap { transform: scale(1.08); }

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ── CTA Section (Light) ── */
.cta-section-light {
  padding: 0 2rem 5rem;
}

.cta-light-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,113,227,0.04) 0%, rgba(88,86,214,0.04) 50%, rgba(48,209,88,0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
}

.cta-light-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-light-inner p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ── Hero (simple, for support page) ── */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ── Legal Content ── */
.legal-hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.legal-toc h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 2rem;
}

.legal-toc li {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-toc li a { color: var(--color-text-secondary); }
.legal-toc li a:hover { color: var(--color-accent); }

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.75;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.info-box {
  background: var(--color-code-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.info-box p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.75rem 1rem;
  background: var(--color-code-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* ── Contact Card ── */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.contact-card h3 { margin-bottom: 0.5rem; }

.contact-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: rgba(0, 113, 227, 0.06);
  margin-top: 0.5rem;
  transition: all var(--transition);
}
.contact-card .email-link:hover {
  background: rgba(0, 113, 227, 0.12);
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}
.footer-links a:hover { color: var(--color-text-secondary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.78rem; }

  .hero-light { padding: 3.5rem 1.25rem 3rem; min-height: 400px; }

  .stats-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }
  .stat-divider { width: 100%; height: 1px; }

  .values-section { padding: 3rem 0 0; }
  .values-header { padding: 0 1.25rem; }

  .hero { padding: 3.5rem 1.25rem 2rem; }
  .hero p { font-size: 1.05rem; }

  .values {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 3rem;
  }

  .cta-section-light { padding: 0 1.25rem 4rem; }
  .cta-light-inner { padding: 2.5rem 1.5rem; }

  .legal-hero { padding: 3rem 1.25rem 1.5rem; }
  .legal-content { padding: 1.5rem 1.25rem 4rem; }
  .legal-toc ol { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .legal-meta { flex-direction: column; gap: 0.25rem; }
}
