@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --------------------------------------------------
   Root Variables
-------------------------------------------------- */
:root {
  --ink: #102a43;
  --muted: #5f6f7f;
  --paper: #f8f9fa;
  --white: #fff;
  --line: #d8e0e7;
  --accent: #2563a6;
  --accent-dark: #174f86;
  --dark: #102a43;
  --soft: #eaf2f8;
  --max: 1180px;
}

/* --------------------------------------------------
   Base
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.55;
}

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

/* --------------------------------------------------
   Updated Typography System
-------------------------------------------------- */

/* H1 — Hero + any large headline */
.hero h1 {
  font: 700 clamp(3rem, 5vw, 4rem) / .9 'Space Grotesk', sans-serif;
  letter-spacing: -.065em;
  margin: 0 0 28px;
}

/* H2 — Section headers, slightly smaller than H1 */
.section-head h2,
.contact h2 {
  font: 600 clamp(2.4rem, 4vw, 3.2rem) / 1 'Space Grotesk', sans-serif;
  letter-spacing: -.065em;
  margin: 0 0 22px;
}

/* Shared underline style for emphasized text */
.hero h1 em,
h2 em,
blockquote em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .14em;
  text-underline-offset: .1em;
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 250, .96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.logo,
.footer-logo {
  font: 700 2rem 'Space Grotesk', sans-serif;
  letter-spacing: -.08em;
}

.logo span,
.footer-logo span {
  color: #2563a6;
}

/* Wrapper holding the links, the CTA, and the hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9rem;
  font-weight: 600;
}

.nav-cta {
  padding: 11px 17px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
}

/* --------------------------------------------------
   Hamburger button (hidden on desktop)
-------------------------------------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------
   Hero Section
-------------------------------------------------- */
.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 5vw;
  align-items: center;
  max-width: var(--max);
  margin: auto;
  padding: 80px 28px 90px;
}

.eyebrow {
  font: 700 .72rem 'Space Grotesk', sans-serif;
  letter-spacing: .15em;
  color: #7a7d86;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.35rem;
  max-width: 590px;
  color: #454750;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: 700 .92rem 'DM Sans';
  padding: 15px 22px;
  border-radius: 4px;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  border: 1px solid #bcbcb7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #70727a;
  font-size: .78rem;
}

/* --------------------------------------------------
   Hero Visual System Card
-------------------------------------------------- */
.hero-visual {
  background: var(--dark);
  padding: 28px;
  border-radius: 8px;
  box-shadow: 25px 25px 0 rgba(16, 42, 67, .10);
}

.system-card {
  color: #fff;
}

.system-top {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #303137;
  padding-bottom: 17px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55575e;
}

.system-label {
  margin-left: auto;
  font: 600 .62rem 'Space Grotesk';
  letter-spacing: .14em;
  color: #858891;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 45px 0;
}

.flow-node {
  min-height: 155px;
  padding: 17px;
  border: 1px solid #35373e;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.flow-node small {
  font: 700 .6rem 'Space Grotesk';
  letter-spacing: .13em;
  color: #92959f;
  margin-bottom: auto;
}

.flow-node strong {
  font: 600 1.05rem 'Space Grotesk';
  margin: 10px 0;
}

.flow-node span {
  font-size: .72rem;
  color: #9b9da5;
}

.flow-node.olso {
  border-color: var(--accent);
  background: #173653;
}

.flow-node.olso small {
  color: var(--accent);
}

.flow-node.result {
  background: #173653;
}

.arrow {
  color: #70737d;
  font-size: 1.3rem;
}

.tech-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-top: 1px solid #303137;
  padding-top: 17px;
}

.tech-strip span {
  font: 600 .58rem 'Space Grotesk';
  letter-spacing: .1em;
  border: 1px solid #36383f;
  padding: 7px 8px;
  color: #a5a7ae;
}

/* --------------------------------------------------
   Industries Strip
-------------------------------------------------- */
.industries {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 34px 28px;
  text-align: center;
}

.industries-label {
  font: 700 .66rem 'Space Grotesk';
  letter-spacing: .14em;
  color: #9a9ca3;
  margin-bottom: 18px;
}

.industries-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
}

.industries-row span {
  font: 600 .78rem 'Space Grotesk';
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  background: var(--paper);
}

/* --------------------------------------------------
   Pain Section
-------------------------------------------------- */
.pain-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 105px max(28px, calc((100vw - var(--max)) / 2)) 110px;
}

.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pain {
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 230px;
}

.pain span {
  font: 600 .72rem 'Space Grotesk';
  color: #999b9f;
}

.pain strong {
  display: block;
  font: 600 1.15rem / 1.25 'Space Grotesk';
  margin: 38px 0 13px;
}

.pain p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* --------------------------------------------------
   Process Section
-------------------------------------------------- */
.process {
  padding: 110px 28px;
  max-width: var(--max);
  margin: auto;
}

.centered {
  text-align: center;
  margin: 0 auto;
}

.centered p {
  max-width: 570px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  gap: 0;
}

.step {
  padding: 25px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--line);
  min-height: 270px;
}

.step:last-child {
  border-right: 0;
}

.num {
  font: 700 2.3rem 'Space Grotesk';
  letter-spacing: -.06em;
}

.step h3 {
  font: 600 1.4rem 'Space Grotesk';
  margin: 45px 0 10px;
}

.step p {
  color: var(--muted);
  font-size: .9rem;
}

/* --------------------------------------------------
   Solutions Section
-------------------------------------------------- */
.solutions {
  background: #102a43;
  color: #fff;
  padding: 110px max(28px, calc((100vw - var(--max)) / 2));
}

.solutions .eyebrow {
  color: #90939d;
}

.solutions .section-head {
  margin-bottom: 65px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #35363b;
  border-left: 1px solid #35363b;
}

.solution-grid article {
  padding: 32px;
  border-right: 1px solid #35363b;
  border-bottom: 1px solid #35363b;
  min-height: 320px;
}

.icon {
  font: 400 1.8rem 'Space Grotesk';
  color: var(--accent);
  margin-bottom: 40px;
}

.solution-grid h3 {
  font: 600 1.4rem 'Space Grotesk';
  margin: 0 0 10px;
}

.solution-grid p {
  color: #a8aab2;
  font-size: .9rem;
}

.solution-grid ul {
  padding: 0;
  list-style: none;
  color: #ddd;
  font-size: .8rem;
  line-height: 2;
}

.solution-grid li:before {
  content: '→ ';
  color: var(--accent);
}

/* --------------------------------------------------
   Examples Section
-------------------------------------------------- */
.examples {
  max-width: var(--max);
  margin: auto;
  padding: 110px 28px;
}

.example {
  display: grid;
  grid-template-columns: .35fr 1fr;
  gap: 50px;
  padding: 55px 0;
  border-top: 1px solid var(--line);
}

.example.reverse {
  grid-template-columns: 1fr .35fr;
}

.example.reverse > div:first-child {
  grid-column: 2;
}

.example.reverse > div:last-child {
  grid-column: 1;
  grid-row: 1;
}

.example-label {
  font: 700 .68rem 'Space Grotesk';
  letter-spacing: .13em;
  color: #85878f;
}

.example h3 {
  font: 600 clamp(1.8rem, 3vw, 2.8rem) / 1.05 'Space Grotesk';
  letter-spacing: -.04em;
  margin: 0 0 18px;
  max-width: 720px;
}

.example p {
  color: var(--muted);
  max-width: 700px;
}

.example strong {
  font-size: .9rem;
}

/* --------------------------------------------------
   WhatsApp Before/After Showcase
-------------------------------------------------- */
.wa-showcase {
  border-top: 1px solid var(--line);
  padding: 55px 0 65px;
}

.wa-showcase-label {
  font: 700 .68rem 'Space Grotesk';
  letter-spacing: .13em;
  color: #85878f;
  text-align: center;
  margin-bottom: 32px;
}

.wa-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  max-width: 900px;
  margin: 0 auto;
}

.wa-panel-tag {
  display: inline-block;
  font: 700 .68rem 'Space Grotesk';
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.wa-tag-before {
  background: #f8dede;
  color: #9c3b3b;
}

.wa-tag-after {
  background: #dcf3e4;
  color: #1f7a44;
}

.wa-phone {
  background: #e9edf1;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.wa-phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #d3d9de;
}

.wa-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b7c1c9;
  display: inline-block;
}

.wa-contact-name {
  font: 600 .82rem 'Space Grotesk';
  color: var(--ink);
}

.wa-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
}

.wa-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.4;
}

.wa-bubble.in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d3d9de;
  border-top-left-radius: 3px;
}

.wa-bubble.out {
  align-self: flex-end;
  background: #d9f2d3;
  border-top-right-radius: 3px;
}

.wa-bubble-time {
  font-size: .68rem;
  color: #8b929a;
  text-align: center;
  margin: 2px 0;
}

.wa-bubble-time.wa-waiting {
  color: #b04b4b;
}

.wa-bubble-time.wa-instant {
  color: #1f7a44;
  font-weight: 600;
}

/* --------------------------------------------------
   Philosophy Section
-------------------------------------------------- */
.philosophy {
  background: var(--soft);
  padding: 105px 28px;
  text-align: center;
}

.quote-mark {
  font: 700 4rem 'Space Grotesk';
  line-height: .5;
}

blockquote {
  font: 600 clamp(3rem, 5vw, 4.5rem) / 1 'Space Grotesk';
  letter-spacing: -.065em;
  margin: 35px auto 25px;
  max-width: 1000px;
}

/* --------------------------------------------------
   Testimonial Section
-------------------------------------------------- */
.testimonial {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 28px;
  text-align: center;
}

.testimonial-mark {
  font: 700 3.2rem 'Space Grotesk';
  color: var(--accent);
  line-height: .5;
  margin-bottom: 18px;
}

.testimonial-quote {
  font: 500 clamp(1.4rem, 2.6vw, 2rem) / 1.4 'Space Grotesk';
  letter-spacing: -.02em;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--ink);
}

.testimonial-author {
  font: 600 .82rem 'DM Sans';
  color: var(--muted);
}

/* --------------------------------------------------
   Contact Section
-------------------------------------------------- */
.contact {
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding: 110px max(28px, calc((100vw - var(--max)) / 2));
}

.contact-copy p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 500px;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  font: 600 .88rem 'Space Grotesk';
}

.contact-form {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--paper);
}

.contact-form label {
  display: block;
  font: 600 .78rem 'Space Grotesk';
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cacac5;
  background: #fff;
  padding: 13px;
  font: 400 .95rem 'DM Sans';
  outline: none;
  border-radius: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.submit {
  width: 100%;
  margin-top: 4px;
}

.contact-form small {
  display: block;
  text-align: center;
  color: #8a8c92;
  margin-top: 13px;
  font-size: .7rem;
}

.flash {
  padding: 12px;
  margin-bottom: 18px;
  font-size: .85rem;
  border-radius: 3px;
}

.flash.success {
  background: #eaf2f8;
}

.flash.error {
  background: #f8dede;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer {
  background: var(--dark);
  color: #a6a8b0;
  padding: 42px 5vw;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: .8rem;
}

.footer-logo {
  color: #fff;
}

.footer-right {
  margin-left: auto;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
  }

  /* Links + language toggle collapse into a dropdown panel */
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 42, 67, .08);
    display: none;
  }

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

  .nav-links .language-toggle {
    margin-left: 0;
    margin-top: 4px;
  }

  /* CTA stays visible in the top bar at all times */
  .nav-cta {
    padding: 9px 14px;
    font-size: .82rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 4rem);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .flow-node {
    min-height: 115px;
  }

  .pain-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .wa-panels {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .nav-cta {
    padding: 8px 12px;
    font-size: .75rem;
  }

  .hero {
    padding: 55px 20px;
  }

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

  .trust-row {
    display: none;
  }

  .hero-visual {
    padding: 18px;
    margin-top: 15px;
  }

  .pain-section,
  .solutions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pain-grid,
  .steps,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .example,
  .example.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .example.reverse > div:first-child,
  .example.reverse > div:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-wrap: wrap;
  }

  .footer-right {
    margin-left: 0;
    width: 100%;
  }

  .industries-row span {
    font-size: .72rem;
    padding: 7px 13px;
  }
}

/* --------------------------------------------------
   Language Selector
-------------------------------------------------- */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-toggle a {
  text-decoration: none;
  color: inherit;
  opacity: 0.55;
  transition: opacity .2s ease;
}

.language-toggle a:hover,
.language-toggle a.active {
  opacity: 1;
}

.language-toggle span {
  opacity: 0.35;
}
