/* ============================================================
   Aruvisoft — aruvisoft.in
   Design tokens from aruvisoft-brand-guidelines.md
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Surfaces (dark mode only — brand direction) */
  --surface:           #1C1C1F;
  --surface-secondary: #2B2B2E;
  --surface-tertiary:  #3B3B3D;

  /* Text */
  --text:              #F5F5F7;
  --text-secondary:    #99999E;

  /* Borders */
  --separator:         rgba(84, 84, 89, 0.30);
  --border:            rgba(84, 84, 89, 0.50);

  /* Accents — Meridian (blue) */
  --meridian-light:    #60A5FA;
  --meridian-dark:     #2563EB;

  /* Accents — Jiggler (amber) */
  --jiggler-light:     #F59E0B;
  --jiggler-dark:      #D97706;

  /* Status */
  --pro:               #E6B840;

  /* Spacing (4px scale) */
  --s2:  2px;
  --s4:  4px;
  --s8:  8px;
  --s12: 12px;
  --s16: 16px;
  --s20: 20px;
  --s24: 24px;
  --s32: 32px;
  --s48: 48px;
  --s64: 64px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Type */
  --font-brand: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-body:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-duration: 0.4s;
}


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

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

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* --- Page Container --- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s24) var(--s24) var(--s48);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}


/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--s64) 0 var(--s48);
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.tagline {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-top: var(--s12);
}


/* --- Products Grid --- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s24);
  width: 100%;
}


/* --- Product Card --- */
.product-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  transition: border-color var(--spring-duration) var(--ease-out),
              transform var(--spring-duration) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-2px);
}

.meridian:hover {
  border-color: rgba(96, 165, 250, 0.40);
}

.jiggler:hover {
  border-color: rgba(245, 158, 11, 0.40);
}

/* Ambient glow behind cards */
.card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 70%;
  border-radius: 50%;
  opacity: 0;
  filter: blur(80px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}

.product-card:hover .card-glow {
  opacity: 1;
}

.meridian .card-glow {
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.12), transparent 70%);
}

.jiggler .card-glow {
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.10), transparent 70%);
}

.card-content {
  position: relative;
  z-index: 1;
  padding: var(--s32);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


/* --- App Icon --- */
.app-icon {
  width: 128px;
  height: 128px;
  border-radius: calc(128px * 0.2237);
  margin-bottom: var(--s20);
  /* macOS icon shadow */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}


/* --- Product Typography --- */
.product-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--s8);
}

.product-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: var(--s16);
}


/* --- Feature List --- */
.feature-list {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: var(--s20);
}

.feature-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: var(--s4) 0;
  padding-left: var(--s20);
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.meridian .feature-list li::before {
  background: var(--meridian-light);
  opacity: 0.6;
}

.jiggler .feature-list li::before {
  background: var(--jiggler-light);
  opacity: 0.6;
}


/* --- Badges --- */
.product-meta {
  display: flex;
  gap: var(--s8);
  margin-bottom: var(--s24);
}

.badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--s2) var(--s8);
  border-radius: var(--r-sm);
  background: var(--surface-tertiary);
  color: var(--text-secondary);
}


/* --- Download Button --- */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: var(--s12) var(--s24);
  border-radius: var(--r-md);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: #fff;
  transition: opacity var(--spring-duration) var(--ease-out),
              transform 0.15s var(--ease-out);
  cursor: pointer;
}

.download-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.download-btn:active {
  transform: scale(0.98);
}

.download-btn svg {
  flex-shrink: 0;
}

.meridian-btn {
  background: linear-gradient(135deg, var(--meridian-light), var(--meridian-dark));
}

.jiggler-btn {
  background: linear-gradient(135deg, var(--jiggler-light), var(--jiggler-dark));
}


/* --- Hero Sub --- */
.hero-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: var(--s8);
  max-width: 420px;
  line-height: 1.6;
}


/* --- Product Pitch --- */
.product-pitch {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: var(--s4);
}


/* --- Download Meta --- */
.download-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: var(--s8);
}


/* --- Use Cases --- */
.use-cases {
  width: 100%;
  margin-top: var(--s64);
}

.section-heading {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--s32);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s16);
}

.use-case {
  padding: var(--s20);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.use-case h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--s8);
}

.use-case p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* --- FAQ --- */
.faq {
  width: 100%;
  margin-top: var(--s48);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--separator);
  padding: var(--s16) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item dt {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--s8);
  color: var(--text);
}

.faq-item dd {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- Footer --- */
.site-footer {
  margin-top: var(--s64);
  padding-top: var(--s24);
  border-top: 1px solid var(--separator);
  text-align: center;
  width: 100%;
}

.crafted {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--s4);
}

.legal {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: var(--s4);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--s8);
  margin-bottom: var(--s8);
}

.footer-nav a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.15s var(--ease-out);
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-sep {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.3;
}


/* --- Responsive --- */
@media (max-width: 640px) {
  .products {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--s48) 0 var(--s32);
  }

  .card-content {
    padding: var(--s24);
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: calc(96px * 0.2237);
  }

  .page {
    padding: var(--s16) var(--s16) var(--s32);
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 1.25rem;
  }
}


/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
