/* ------------------------------------------------------------------ */
/* Altaics Technologies landing page — shadcn-inspired design          */
/* Neutral palette via CSS variables, light/dark theming.              */
/* ------------------------------------------------------------------ */

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --card: 0 0% 100%;
  --border: 240 5.9% 90%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --accent: 240 4.8% 95.9%;
  --brand: 243 75% 59%;          /* indigo-600 */
  --brand-foreground: 0 0% 100%;
  --radius: 0.75rem;
  --ring: 243 75% 59%;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --card: 240 7% 8%;
  --border: 240 3.7% 15.9%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --accent: 240 3.7% 15.9%;
  --brand: 243 75% 66%;
  --brand-foreground: 240 10% 3.9%;
  --ring: 243 75% 66%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark { color: hsl(var(--brand)); }
.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: calc(var(--radius) - 0.25rem);
  border: 1px solid hsl(var(--border));
  background-color: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background-color: hsl(var(--accent)); }
.icon-sun { display: none; }
.dark .icon-sun { display: block; }
.dark .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: calc(var(--radius) - 0.25rem);
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background-color: hsl(var(--primary) / 0.85); }
.btn-outline {
  border-color: hsl(var(--border));
  background-color: transparent;
  color: hsl(var(--foreground));
}
.btn-outline:hover { background-color: hsl(var(--accent)); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  border-bottom: 1px solid hsl(var(--border));
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.5) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(var(--brand));
  background-color: hsl(var(--brand) / 0.1);
  border: 1px solid hsl(var(--brand) / 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.grad {
  background: linear-gradient(90deg, hsl(var(--brand)), hsl(280 75% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: hsl(var(--muted-foreground));
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-muted { background-color: hsl(var(--muted) / 0.4); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.section-head p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 1.05rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--brand) / 0.5);
  box-shadow: 0 10px 30px -15px hsl(var(--foreground) / 0.25);
}
.card-plain { text-align: center; }
.card h3 { margin: 0.75rem 0 0.4rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: calc(var(--radius) - 0.25rem);
  background-color: hsl(var(--brand) / 0.1);
  color: hsl(var(--brand));
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- CTA ---------- */
.cta { padding: 5rem 0; }
.cta-inner {
  text-align: center;
  background: linear-gradient(180deg, hsl(var(--muted) / 0.5), transparent);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.cta-inner p { color: hsl(var(--muted-foreground)); margin: 0 0 1.75rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid hsl(var(--border)); padding: 3rem 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}
.footer-tag {
  color: hsl(var(--muted-foreground));
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  max-width: 340px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}
.footer-meta a:hover { color: hsl(var(--foreground)); }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .footer-inner { flex-direction: row; align-items: center; }
}
