:root {
  --bg: #070b12;
  --bg-elevated: #0e1524;
  --bg-card: rgba(18, 28, 48, 0.72);
  --ink: #eef2f8;
  --ink-muted: #94a3b8;
  --ink-soft: #64748b;
  --line: rgba(148, 163, 184, 0.14);
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-glow: rgba(34, 211, 238, 0.22);
  --kuponada: #c2185b;
  --kuponada-coral: #f05a3a;
  --radius: 1rem;
  --radius-lg: 1.35rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Instrument Sans', 'DM Sans', system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.09), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.08), transparent 28%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 55%, #06b6d4 100%);
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Hero */

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.08), transparent 45%),
    var(--bg-card);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Sections */

section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.about-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.about-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* IoT */

.iot-section {
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at 78% 50%, rgba(34, 211, 238, 0.07), transparent 38%),
    rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--line);
}

.iot-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.iot-visual {
  margin: 0;
}

.iot-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.iot-content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}

.iot-lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.iot-points {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.iot-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.iot-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.project-card.featured {
  grid-row: span 2;
  border-color: rgba(194, 24, 91, 0.35);
  background:
    linear-gradient(165deg, rgba(194, 24, 91, 0.12) 0%, transparent 42%),
    var(--bg-card);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11.5rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.project-card.featured .project-visual {
  min-height: 16rem;
  padding: 1.75rem 2rem;
  background:
    linear-gradient(135deg, rgba(179, 18, 90, 0.18) 0%, rgba(245, 90, 58, 0.12) 50%, rgba(245, 130, 32, 0.08) 100%);
}

.project-visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.project-visual img.logo-square {
  width: clamp(6.5rem, 42%, 8.5rem);
  height: clamp(6.5rem, 42%, 8.5rem);
}

.project-card.featured .project-visual img.logo-square {
  width: clamp(8.5rem, 52%, 11.5rem);
  height: clamp(8.5rem, 52%, 11.5rem);
}

.project-visual--wide img.wide-logo {
  width: min(100%, 100%);
  height: auto;
  max-height: 7rem;
  object-fit: contain;
}

.project-visual--wide.project-visual--banner img.wide-logo {
  width: min(98%, 100%);
  max-height: 5.75rem;
}

.project-visual--light {
  background: #f4f7fb;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.35rem;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card.featured .project-tag {
  color: #ff8fab;
}

.project-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.project-card.featured .project-body h3 {
  font-size: 1.45rem;
}

.project-body p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.chip {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.02);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.project-card.featured .project-link {
  color: #ffb3c7;
}

.project-link:hover {
  text-decoration: underline;
}

.project-card.placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.015);
}

.project-card.placeholder .project-visual {
  color: var(--ink-soft);
  font-size: 2rem;
  opacity: 0.45;
}

.project-card.placeholder .project-body h3 {
  color: var(--ink-muted);
}

.placeholder-note {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Tech */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tech-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-muted);
  background: var(--bg-card);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-item label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-item a:hover {
  color: var(--accent);
}

.company-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-legal {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: right;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .iot-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: auto;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .tech-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .footer-legal {
    text-align: left;
  }
}
