/* ==========================================================================
   Apogee Studio Ltd — Clean, Aesthetic Light Mode Design
   Typography: Plus Jakarta Sans
   Aesthetic: Minimalist, Airy, Crisp
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Light Mode Palette with 30-40% Translucent Widgets */
  --bg-page: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.35);
  --bg-card-subtle: rgba(241, 245, 249, 0.35);
  --bg-accent-soft: rgba(240, 249, 255, 0.35);
  
  --border-light: #e2e8f0;
  --border-accent: #bae6fd;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-sky: #38bdf8;
  --brand-soft-blue: #e0f2fe;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-family);
  font-size: clamp(14px, 0.85rem + 0.35vw, 17.5px);
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Subtle background accent */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container (Auto-scales on mobile, tablet, laptop, desktop) */
.container {
  width: 100%;
  max-width: min(980px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 0.8rem + 1vw, 2rem);
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 54px + 1.2vw, 76px);
}

/* Brand - Top Left (Name & Icon, Auto-scales) */
.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 6px + 0.5vw, 14px);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand-icon {
  width: clamp(42px, 38px + 0.9vw, 52px);
  height: clamp(42px, 38px + 0.9vw, 52px);
  border-radius: clamp(10px, 8px + 0.3vw, 13px);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.18);
  object-fit: cover;
  display: block;
}

.brand-name {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Navigation Menu (Auto-scales) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.6rem + 0.8vw, 1.75rem);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 0.77rem + 0.2vw, 0.95rem);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-cta {
  text-decoration: none;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Main Content Area (Auto-scales spacing) */
main {
  flex: 1;
  padding: clamp(1.25rem, 1rem + 1vw, 2.5rem) 0 clamp(2.5rem, 2rem + 1.5vw, 4.5rem);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 1rem + 1vw, 2.25rem);
}

/* Aesthetic Cards (Translucent Widgets) */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: clamp(16px, 12px + 1vw, 26px);
  padding: clamp(1.25rem, 1rem + 1.8vw, 2.75rem);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.card:hover {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 28px -4px rgba(15, 23, 42, 0.07);
  border-color: rgba(203, 213, 225, 0.85);
}

/* Badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--brand-soft-blue);
  color: var(--brand-blue);
  border-radius: var(--radius-full);
  font-size: clamp(0.72rem, 0.68rem + 0.15vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(0.85rem, 0.7rem + 0.4vw, 1.25rem);
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
}

/* Section Headings (Auto-scales) */
.section-title {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: clamp(0.4rem, 0.3rem + 0.3vw, 0.75rem);
}

.section-lead {
  font-size: clamp(0.92rem, 0.88rem + 0.3vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Core Value Card */
.core-value-card {
  position: relative;
  overflow: hidden;
}

.core-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.core-statement {
  font-size: clamp(0.98rem, 0.92rem + 0.45vw, 1.25rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Coming Soon Banner Card */
.coming-soon-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(240, 249, 255, 0.3) 100%);
  border: 1px solid rgba(186, 230, 253, 0.6);
}

.coming-soon-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 8px + 0.5vw, 16px);
  margin-bottom: 0.75rem;
}

.app-badge-icon {
  width: clamp(48px, 42px + 1vw, 62px);
  height: clamp(48px, 42px + 1vw, 62px);
  border-radius: clamp(12px, 10px + 0.4vw, 16px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
  object-fit: cover;
  display: block;
}

.coming-soon-text {
  font-size: clamp(0.92rem, 0.88rem + 0.3vw, 1.12rem);
  color: var(--text-secondary);
  margin-bottom: clamp(0.85rem, 0.7rem + 0.4vw, 1.25rem);
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Contact Information Card */
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.email-info {
  display: flex;
  flex-direction: column;
}

.email-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
}

.email-address {
  font-size: clamp(0.95rem, 0.85rem + 0.55vw, 1.25rem);
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  word-break: break-all;
}

.email-address:hover {
  text-decoration: underline;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: inherit;
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--brand-soft-blue);
  border-color: var(--brand-sky);
  color: var(--brand-blue);
}

/* Legal Links Row (Auto-scales) */
.legal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
}

.legal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  border-radius: var(--radius-lg);
}

.legal-title {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-desc {
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.975rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  transition: gap 0.2s;
}

.legal-link:hover {
  gap: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  pointer-events: none;
  z-index: 100;
}

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

/* Standalone Policy Pages (Light mode) */
.standalone-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.policy-content p, .policy-content ul {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.policy-content ul {
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Breakpoints & Device Adaptability */

/* Mobile Phones (Compact view with smaller fonts and screen-fitted widgets) */
@media (max-width: 640px) {
  .nav-wrapper {
    height: 60px;
  }

  .nav-menu {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .card {
    padding: 1.25rem 1.15rem;
  }

  .legal-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-box {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.85rem;
  }

  .btn-copy {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* Tablets & Horizontal Tablets (Balanced scaling) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    max-width: 90vw;
  }

  .legal-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Laptops & Desktops (Bigger widgets, spacious padding and prominent typography) */
@media (min-width: 1025px) {
  .container {
    max-width: 1020px;
  }

  .card {
    padding: 2.75rem 3rem;
  }
}

/* Ultra-wide Monitors */
@media (min-width: 1440px) {
  .container {
    max-width: 1080px;
  }
}
