/* === GRUPO GARAT — Design System (Linear-adapted) === */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Backgrounds */
  --bg-void: #08090a;
  --bg-panel: #0f1011;
  --bg-elevated: #191a1b;
  --bg-hover: #28282c;

  /* Text */
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-muted: #8a8f98;
  --text-dim: #62666d;

  /* Accent */
  --accent-indigo: #5e6ad2;
  --accent-violet: #7170ff;
  --accent-hover: #828fff;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.05);
  --border-standard: rgba(255,255,255,0.08);
  --border-solid: #23252a;

  /* Fonts */
  --font-sans: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
}

* {
  font-family: var(--font-sans) !important;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv01', 'ss03';
}

/* === Typography === */
.display-xl {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.display {
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.022em;
}

.heading-2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.012em;
}

.heading-3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.012em;
}

.body-large {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.caption {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-violet);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-indigo);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-standard);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-standard);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

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

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-indigo);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  border: 1px solid var(--border-standard);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-solid);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 106, 210, 0.1);
  border: 1px solid rgba(94, 106, 210, 0.2);
  border-radius: 10px;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* === Portfolio === */
.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-standard);
  border-radius: 16px;
  padding: 48px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .portfolio-item {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

.portfolio-screenshot {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.portfolio-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-screenshot .placeholder {
  font-size: 48px;
  opacity: 0.1;
}

.portfolio-info h3 {
  margin-bottom: 12px;
}

.portfolio-info p {
  margin-bottom: 24px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-standard);
  padding: 4px 10px;
  border-radius: 9999px;
}

/* === Team === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  padding: 24px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 14px;
  color: var(--accent-violet);
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-brand span {
  color: var(--accent-violet);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
