/* Niwas360 — marketing site
   Typography: distinctive pairing, not generic “AI slop” stack */

:root {
  --ink: #12151a;
  --ink-muted: #4a5058;
  --paper: #f6f5f2;
  --paper-warm: #efece5;
  --line: #d9d4ca;
  --accent: #1e5c4a;
  --accent-hover: #174a3b;
  --accent-soft: rgba(30, 92, 74, 0.08);
  --sun: #c9a227;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px rgba(18, 21, 26, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— Layout ——— */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(246, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(18, 21, 26, 0.04);
}

.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.2s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-lang {
  display: flex;
  align-items: center;
}

.nav-lang-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-lang-select {
  appearance: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.85rem 0.4rem 0.6rem;
  cursor: pointer;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5058' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-lang-select:hover {
  border-color: var(--accent);
}

.nav-lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-lang--mobile {
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.nav-lang--mobile .nav-lang-inner {
  width: 100%;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--ink);
}

.nav-lang--mobile .nav-lang-select {
  flex: 0 0 auto;
  min-width: 8.5rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
  box-shadow: var(--shadow);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-weight: 600;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 0.25rem;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

/* ——— Hero ——— */
main {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 14vw, 8rem) 0 clamp(4.25rem, 11vw, 7rem);
  text-align: center;
  background-color: #141a20;
  background-image:
    linear-gradient(
      165deg,
      rgba(10, 14, 18, 0.88) 0%,
      rgba(18, 22, 28, 0.72) 38%,
      rgba(22, 45, 40, 0.55) 100%
    ),
    url("../assets/niwas360-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(1120px, 92vw);
  padding-inline: 0;
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sun);
  margin: 0 0 1.2rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s var(--ease-out) 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 1.65rem;
  color: #faf8f5;
  max-width: 100%;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s var(--ease-out) 0.2s forwards;
}

.hero-lead {
  font-size: clamp(1.2rem, 2.65vw, 1.55rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.035em;
  word-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.97);
  max-width: min(52rem, 100%);
  margin: 0 0 2.35rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s var(--ease-out) 0.35s forwards;
}

.hero-lead strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s var(--ease-out) 0.5s forwards;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 92, 74, 0.25);
}

.btn-ghost {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.6);
}

.hero-app-badges {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease-out) 0.62s forwards;
}

.hero-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  line-height: 0;
  border-radius: 10px;
  overflow: visible;
  transition:
    transform 0.22s var(--ease-out),
    filter 0.22s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.hero-store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.42));
}

.hero-store-badge:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Same row height + aligned; Play PNG includes extra canvas padding */
.hero-store-badge img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-store-badge--play img {
  height: 56px;
}

.hero-store-badge--apple img {
  height: 56px;
}

@media (max-width: 560px) {
  .hero-lead {
    letter-spacing: 0.028em;
  }

  .hero-app-badges {
    gap: 0.85rem 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-store-badge {
    height: 54px;
  }

  .hero-store-badge--play img {
    height: 46px;
  }

  .hero-store-badge--apple img {
    height: 46px;
  }
}

/* ——— Sections ——— */
section {
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--sun);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  max-width: min(36ch, 100%);
}

.section-intro {
  color: var(--ink-muted);
  max-width: min(56ch, 100%);
  margin: 0 0 3rem;
  font-size: 1.0625rem;
  line-height: 1.72;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ——— Feature grid ——— */
.features {
  background: #f2f0e9;
  border-block: 1px solid rgba(217, 211, 200, 0.85);
}

.features-header {
  max-width: min(42rem, 58%);
  text-align: left;
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
}

@media (max-width: 800px) {
  .features-header {
    max-width: 100%;
  }
}

.features .section-title {
  max-width: none;
  margin-bottom: 1.35rem;
  line-height: 1.22;
}

.features .section-intro {
  margin-bottom: 0;
  max-width: none;
  font-size: 1.078125rem;
  line-height: 1.74;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(220, 214, 204, 0.9);
  border-radius: var(--radius);
  padding: 2.125rem 1.875rem;
  box-shadow:
    0 10px 32px rgba(18, 21, 26, 0.05),
    0 2px 8px rgba(18, 21, 26, 0.03);
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(30, 92, 74, 0.28);
  box-shadow:
    0 22px 48px rgba(18, 21, 26, 0.08),
    0 4px 12px rgba(18, 21, 26, 0.04);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(30, 92, 74, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 1.015rem;
  color: #4a4a4a;
  line-height: 1.72;
}

/* ——— Split band ——— */
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.35rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split-band {
    grid-template-columns: 1fr;
  }
}

.split-band img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 1.05rem;
  color: var(--ink-muted);
  font-size: 1.015rem;
  line-height: 1.68;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

/* ——— Pricing / CTA block ——— */
.pricing-block {
  background: var(--ink);
  color: #e8e6e1;
  border-radius: var(--radius);
  padding: clamp(3rem, 6vw, 4.25rem);
  position: relative;
  overflow: hidden;
}

.pricing-block::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(30, 92, 74, 0.45) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.pricing-block .wrap {
  position: relative;
  z-index: 1;
}

.pricing-block .section-label {
  color: rgba(201, 162, 39, 0.95);
}

.pricing-block .section-title {
  color: #fff;
  max-width: min(42ch, 100%);
  line-height: 1.24;
}

.pricing-block .section-intro {
  color: rgba(232, 230, 225, 0.78);
  margin-bottom: 2rem;
  line-height: 1.72;
  max-width: min(58ch, 100%);
}

.pricing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 2.1rem;
  padding: 0;
  list-style: none;
}

.pricing-points li {
  font-size: 0.9rem;
  padding: 0.52rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.75rem, 5vw, 3.75rem);
  align-items: start;
}

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

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  box-shadow: 0 8px 24px rgba(18, 21, 26, 0.04);
}

.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 0.35rem;
}

.contact-card dd {
  margin: 0 0 1.5rem;
  font-weight: 600;
  line-height: 1.55;
}

.contact-card dd:last-of-type {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.95rem;
  line-height: 1.55;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.25rem;
  background: var(--paper-warm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer .logo {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-tag {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: min(40ch, 100%);
  margin: 0;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-app-badges {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .hero-store-badge:hover {
    transform: none;
  }
}
