/* NCC Easy Condo — Public Marketing Site Styles
 * Color palette derived from logo: dark navy bg + ocean blue + orange-gold
 */

.hp-field { position:absolute; left:-9999px; opacity:0; height:0; width:0; }

:root {
  --primary: #0a8fbf;        /* Ocean blue — logo wave */
  --primary-light: #17b8e8;  /* Lighter ocean blue — hover / links */
  --accent: #f08c1e;         /* Orange-gold — "EASY" in the logo */
  --accent-dark: #c96e0e;    /* Darker orange — hover states */
  --dark: #0f1922;           /* Dark navy — logo background */
  --dark-2: #162030;         /* Section alternation */
  --dark-3: #1e2d3f;         /* Card surfaces */
  --dark-4: #253347;         /* Elevated borders / dividers */
  --text: #f0f4f8;
  --text-muted: #8b9ab0;
  --border: #253347;
  --nav-h: 120px;
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* ── Utility ────────────────────────────────────────────────────────────────── */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent  { background: var(--accent); color: #0f1922; }
.btn-accent:hover { background: var(--accent-dark); opacity: 1; }
.btn-outline { border: 2px solid var(--primary-light); color: var(--primary-light); background: transparent; }
.btn-outline:hover { background: rgba(23,184,232,.08); opacity: 1; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */

nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,25,34,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 108px;
  width: auto;
  object-fit: contain;
}
.logo-fallback { display: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--primary-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── Language toggle (flag emoji) ───────────────────────────────────────────── */

.lang-toggle {
  display: flex;
  gap: .2rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  padding: .2rem .5rem;
  border: none;
  border-radius: 5px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  opacity: .45;
  transition: opacity .15s, background .15s;
}
.lang-btn.active {
  background: var(--dark-4);
  opacity: 1;
}
.lang-btn:hover { opacity: .8; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,25,34,.92) 0%, rgba(15,25,34,.75) 60%, rgba(10,143,191,.12) 100%),
    url('/assets/hero.png') center/cover no-repeat;
  background-color: var(--dark);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(10,143,191,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(10,143,191,.15);
  border: 1px solid rgba(10,143,191,.4);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .78rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #fff;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: .6rem;
  max-width: 560px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Pain Points ("¿Te suena familiar?") ───────────────────────────────────── */

.pain {
  padding: 5rem 0;
  background: var(--dark-2);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.pain-item {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  transition: border-color .2s;
}
.pain-item:hover { border-color: var(--primary); }

.pain-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.pain-item p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── How It Works ───────────────────────────────────────────────────────────── */

.how {
  padding: 5rem 0;
  background: var(--dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

@media (min-width: 800px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(33% - 1px);
    right: calc(33% - 1px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .25;
    z-index: 0;
  }
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px rgba(10,143,191,.12);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.step p {
  color: var(--text-muted);
  font-size: .93rem;
}

/* ── Features ───────────────────────────────────────────────────────────────── */

.features {
  padding: 5rem 0;
  background: var(--dark-2);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(10,143,191,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  border: 1px solid rgba(10,143,191,.25);
}

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p  { color: var(--text-muted); font-size: .93rem; line-height: 1.55; }

.card-soon { opacity: .65; }
.card-badge {
  display: inline-block;
  margin-top: .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240,140,30,.12);
  border: 1px solid rgba(240,140,30,.3);
  border-radius: 4px;
  padding: .15rem .5rem;
}

/* ── IoT / LoRaWAN Monitoring ───────────────────────────────────────────────── */

.iot {
  padding: 5rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the section */
.iot::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(10,143,191,.07) 0%, transparent 70%);
  pointer-events: none;
}

.iot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.iot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: iot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes iot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Explainer block */
.iot-explainer {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.iot-explainer-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.iot-explainer-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.iot-explainer-body p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}

.iot-explainer-note {
  font-size: .82rem !important;
  color: var(--primary-light) !important;
  border-top: 1px solid var(--border);
  padding-top: .5rem;
  margin-top: .25rem;
}

/* Sensor cards */
.iot-sensors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.iot-sensor-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.iot-sensor-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.iot-sensor-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .75rem;
}

.iot-sensor-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.iot-sensor-icon.electric  { background: rgba(240,140,30,.15); border: 1px solid rgba(240,140,30,.3); }
.iot-sensor-icon.water     { background: rgba(23,184,232,.15); border: 1px solid rgba(23,184,232,.3); }
.iot-sensor-icon.generator { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.25); }

.iot-sensor-header h4 { font-size: .98rem; font-weight: 700; }

.iot-status-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-top: 3px;
  animation: iot-pulse 2.5s ease-in-out infinite;
}

/* Mini sparkline chart */
.iot-sensor-chart {
  height: 36px;
  margin-bottom: .85rem;
}
.iot-sensor-chart svg { width: 100%; height: 100%; }

/* Alert notification mock */
.iot-alert {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: rgba(240,140,30,.08);
  border: 1px solid rgba(240,140,30,.2);
  border-radius: 6px;
  padding: .5rem .75rem;
  margin-bottom: .85rem;
  font-size: .78rem;
  color: #fcd34d;
  line-height: 1.4;
}

.iot-alert-icon {
  flex-shrink: 0;
  font-style: normal;
  color: var(--accent);
}

.iot-sensor-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 4-step flow */
.iot-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}

.iot-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 80px;
}

.iot-flow-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(10,143,191,.12);
  border: 1px solid rgba(10,143,191,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.iot-flow-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .02em;
}

.iot-flow-arrow {
  font-size: 1.2rem;
  color: var(--primary-light);
  opacity: .5;
  flex-shrink: 0;
}

/* Beta CTA */
.iot-beta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.iot-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(240,140,30,.1);
  border: 1px solid rgba(240,140,30,.35);
  border-radius: 100px;
  padding: .35rem 1.1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.iot-beta-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: iot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.iot-beta p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .iot-explainer { flex-direction: column; gap: .75rem; }
  .iot-flow { gap: .5rem; }
  .iot-flow-arrow { font-size: .9rem; }
  .iot-flow-step { min-width: 60px; }
  .iot-flow-icon { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ── Trust / North Coast section ────────────────────────────────────────────── */

.trust {
  padding: 5rem 0;
  background: var(--dark);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.trust-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(10,143,191,.12);
  border: 1px solid rgba(10,143,191,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.trust-item h4 {
  font-size: .95rem;
  font-weight: 700;
}

.trust-item p {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.trust-cities {
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.trust-cities span {
  color: var(--primary-light);
  font-weight: 600;
}

/* ── CTA Banner ─────────────────────────────────────────────────────────────── */

.cta-banner {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(10,143,191,.1) 0%, rgba(240,140,30,.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn { margin: 0 .5rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-inner p { color: var(--text-muted); font-size: .85rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--primary-light); }

.footer-dev {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  justify-content: center;
}
.footer-dev img { height: 20px; vertical-align: middle; }
.footer-dev a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; }
.footer-dev a:hover { color: var(--primary-light); }

/* ── Demo Modal ────────────────────────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.modal h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.modal-sub { color: var(--text-muted); font-size: .85rem; margin: 0 0 1.25rem; }
.modal-close {
  position: absolute; top: .75rem; right: 1rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

#demo-form { display: flex; flex-direction: column; gap: .75rem; }
#demo-form input,
#demo-form textarea {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem .85rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
#demo-form input:focus,
#demo-form textarea:focus { border-color: var(--primary); }
#demo-form input::placeholder,
#demo-form textarea::placeholder { color: var(--text-muted); }

.demo-submit { margin-top: .25rem; width: 100%; }

.demo-success {
  text-align: center;
  padding: 1.5rem 0;
}
.demo-success .success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,.15);
  border: 2px solid rgba(16,185,129,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #10b981;
  margin: 0 auto .75rem;
}
.demo-success p { color: var(--text); font-size: .95rem; }

/* ── Reveal animations ──────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-logo img { height: 64px; }
  .nav-inner { height: 80px; }
  .hero { padding-top: 80px; }
  html { scroll-padding-top: 80px; }
}

@media (max-width: 640px) {
  .nav-actions .btn-primary { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
