/* ==========
   Base
   ========== */

:root {
  --dimwa-red: #d32f2f;
  --dimwa-red-soft: #fbeaea;
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --text-main: #212121;
  --text-muted: #5f6368;
  --border-subtle: #e0e0e0;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.07);
  --radius-card: 24px;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

/* ==========
   Layout helpers
   ========== */

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

.section {
  padding: 64px 0;
}

/* ==========
   Header
   ========== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background-color: rgba(250, 250, 250, 0.96);
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 32px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dimwa-red);
}

.brand-tagline {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

/* Language switcher */

.nav-langs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;        /* comme .nav-link */
  color: var(--text-muted);
}

.nav-lang {
  padding: 4px 10px;
  border-radius: 999px;
  cursor: default;
  font-weight: 500;
}

.nav-lang.is-active {
  background-color: #212121;
  color: #ffffff;
}

.nav-lang-sep {
  opacity: 0.5;
  font-size: 0.9rem;
}


.nav-lang-sep {
  opacity: 0.4;
}

/* Mobile login pill (top-right) */

.header-login-mobile {
  display: none;
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 0.9rem;
  background-color: #ffffff;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-color: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #333333;
}

/* ==========
   Hero
   ========== */

.hero {
  position: relative;
  color: #ffffff;
  padding: 120px 0 110px;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.62)),
    url("../img/ui/hero-desktop.jpg");
  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;
}

/* white fade at the bottom to blend into page */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(250, 250, 250, 0.92)
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-note-separator {
  margin: 0 8px;
}

.hero-note-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========
   Buttons
   ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease-out, color 0.16s ease-out,
    box-shadow 0.16s ease-out, transform 0.08s ease-out;
}

.btn-large {
  padding: 12px 26px;
  font-size: 1rem;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--dimwa-red);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
  background-color: #b71c1c;
  box-shadow: 0 14px 32px rgba(211, 47, 47, 0.5);
  transform: translateY(-1px);
}

/* outline / secondary button (Log in) */
.btn-outline {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: #f3f3f3;
}

/* ghost button on hero */
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

/* ==========
   Sections – shared
   ========== */

.section h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

.section-lead-full {
  max-width: none;
}

.section + .section {
  border-top: 1px solid rgba(224, 224, 224, 0.7);
}

/* ==========
   How it works / Intentions
   ========== */

.section-how {
  background-color: #ffffff;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 32px;
  align-items: stretch;
}

/* Cards */

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Steps card */

.steps {
  padding: 22px 22px 20px;
  display: flex;
  height: 100%;
}

.steps-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.steps-inner {
  margin-bottom: 12px;
}

.steps-title {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 14px;
}

.steps-list {
  padding-left: 20px;
  margin: 0 0 14px 0;
  color: var(--text-muted);
}

.steps-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.steps-list strong {
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 2px;
}

.steps-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

/* quote at bottom of steps card */

.steps-quote {
  margin: 8px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(224, 224, 224, 0.7);
  max-width: 520px;
}

.steps-quote blockquote {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}

.steps-quote figcaption {
  font-size: 0.82rem;
  color: #9e9e9e;
}

/* Chat mock */

.chat-card {
  padding: 18px 18px 18px;
  height: 100%;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
}

.chat-brand {
  font-weight: 600;
}

.chat-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dimwa avatar uses the logo */
.chat-avatar-dimwa {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-image: url("../img/brand/logo-dimwa.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}

/* User avatar shows "You" */
.chat-avatar-user {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
}

.chat-avatar-user::before {
  content: "You";
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 0.94rem;
  background-color: #f5f5f5;
}

.chat-row-dimwa .chat-bubble {
  background-color: #fbeaea;
  color: #b71c1c;
}

.chat-row-user {
  flex-direction: row-reverse;
}

.chat-row-user .chat-bubble {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.chat-row-user .chat-avatar {
  margin-left: 4px;
}

.chat-row-system {
  justify-content: center;
}

.chat-bubble-system {
  background-color: #eeeeee;
  color: #424242;
  text-align: center;
}

/* ==========
   Categories
   ========== */

.section-categories {
  background-color: #fafafa;
}

.categories-hero {
  margin-top: 28px;
  margin-bottom: 18px;
}

.categories-hero-img {
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.categories-note {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========
   Benefits
   ========== */

.section-benefits {
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.benefit-card {
  padding: 22px 22px 20px;
}

.benefit-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.benefit-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ==========
   Comparison
   ========== */

.section-compare {
  background-color: #ffffff;
}

.compare-card {
  margin-top: 28px;
  padding: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
}

.compare-table th {
  font-weight: 600;
}

.cell-check {
  color: #2e7d32;
}

.cell-cross {
  color: #c62828;
}

/* ==========
   Footer
   ========== */

.site-footer {
  padding: 40px 0 36px;
  background-color: #f5f5f5;
  border-top: 1px solid rgba(224, 224, 224, 0.8);
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-subline {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 10px;
}

.footer-motto {
  font-size: 0.88rem;
  color: #7a7a7a;
  margin: 0 auto 8px;
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* ==========
   Responsive
   ========== */

@media (max-width: 960px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .hero-inner {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-card {
    padding: 18px 14px;
  }
}

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

  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background-color: rgba(250, 250, 250, 0.98);
    border-bottom: 1px solid rgba(224, 224, 224, 0.7);
    padding: 10px 20px 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-langs {
    margin-bottom: 4px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-login-mobile {
    display: inline-flex;
  }

  /* hide nav Log in inside mobile menu, keep top-right pill instead */
  .nav-actions .nav-login {
    display: none;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero {
    padding-bottom: 90px;
  }

  .benefits-grid {
    gap: 18px;
  }

  .compare-table th,
  .compare-table td {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-large {
    width: 100%;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
