/* ================================
   RESET
   ================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================
   SMOOTH SCROLL
   ================================ */
html {
  scroll-behavior: smooth;
}

/* ================================
   BODY
   ================================ */
body {
  min-height: 100vh;
  font-family: "Space Grotesk", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ================================
   BACKGROUND
   ================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;

  background-image: url("../photos/background/cloud_background_wide.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: kenBurns 17s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* ================================
   HERO — centered content block
   ================================ */
.hero {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  text-align: center;
  padding: 0 24px;
}

/* ================================
   LOGO
   ================================ */
.logo {
  max-width: 420px;
  width: 70%;
  height: auto;

  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   TAGLINE
   ================================ */
.tagline {
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.5s forwards;
}

/* ================================
   ENTER BUTTON
   ================================ */
.enter-button {
  position: fixed;
  bottom: 32px;
  right: 32px;

  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 16px 40px;
  border-radius: 999px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);

  color: #111315;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.enter-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

.arrow {
  display: inline-block;
  animation: bounce 1.8s ease-in-out 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ================================
   SCROLL-TRIGGERED REVEAL
   ================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Staggered delays for cards */
[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.18s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.28s;
}
[data-reveal-delay="4"] {
  transition-delay: 0.38s;
}

/* ================================
   MAIN PAGE
   ================================ */
body.main-page {
  display: block;
  overflow: auto;
  background: #f5f4f0;
}

/* ================================
   NAV
   ================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;

  background: rgba(245, 244, 240, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #111315;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* ================================
   HAMBURGER BUTTON
   ================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111315;
  border-radius: 2px;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  transform-origin: center;
}

/* X state when open */
.nav--open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav--open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   MAIN HERO
   ================================ */
.main-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.main-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../photos/background/cloud_background_wide.jpg");
  background-size: cover;
  background-position: center;
  animation: kenBurns 24s ease-in-out infinite alternate;
  z-index: 0;
}

.main-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  max-width: 720px;
}

.main-hero__headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111315;
  letter-spacing: -0.02em;
  animation: fadeUp 1.1s ease forwards;
  opacity: 0;
}

.main-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: #3a3a3a;
  animation: fadeUp 1.1s ease 0.3s forwards;
  opacity: 0;
}

/* ================================
   BUTTONS
   ================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: #111315;
  color: #f5f4f0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  animation: fadeUp 1.1s ease 0.6s forwards;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #2a2d30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

form .btn-primary {
  animation: none;
  opacity: 1;
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: transparent;
  color: #111315;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid #111315;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #111315;
  color: #f5f4f0;
}

/* ================================
   SECTION SHARED
   ================================ */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111315;
  margin-bottom: 48px;
}

/* ================================
   SERVICES
   ================================ */
.services {
  background: #f5f4f0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.65s ease,
    translate 0.65s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 24px;
  margin-bottom: 16px;
  color: #555;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111315;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}

/* ================================
   ABOUT
   ================================ */
.about {
  background: #111315;
}

.about .section-label {
  color: #666;
}

.about .section-heading {
  color: #f5f4f0;
  margin-bottom: 24px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #aaa;
  margin-bottom: 36px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 260px;
  max-width: 100%;
  opacity: 0.15;
  filter: invert(1);
}

/* ================================
   CONTACT
   ================================ */
.contact {
  background: #f5f4f0;
}

.contact-inner {
  max-width: 680px;
}

.contact-sub {
  font-size: 1rem;
  color: #555;
  margin-top: -32px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contact-info__item {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.contact-info__item--link {
  font-weight: 500;
  color: #111315;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.contact-info__item--link:hover {
  opacity: 0.5;
}

.contact-info__sep {
  color: #ccc;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #111315;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #111315;
}

.contact-form button {
  align-self: flex-start;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #111315;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  height: 22px;
  width: auto;
  filter: invert(1);
  opacity: 0.6;
}

.footer-phone {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: #f5f4f0;
}

.footer-copy {
  font-size: 13px;
  color: #555;
}

/* ================================
   DEMOS
   ================================ */
.demos {
  background: #fff;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.demo-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #f5f4f0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Browser chrome mockup */
.demo-browser {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.demo-browser__bar {
  background: #e0deda;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  display: block;
}

.demo-browser__bar p {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.03em;
}

/* Demo screen — bakery */
.demo-browser__screen {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-screen--bakery {
  background: linear-gradient(135deg, #f5e6d3 0%, #e8c9a0 100%);
}

.demo-screen--legal {
  background: linear-gradient(135deg, #1a2332 0%, #2d3f55 100%);
}

.demo-screen__hero {
  text-align: center;
  padding: 20px;
}

.demo-screen--bakery .demo-screen__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a07850;
  margin-bottom: 8px;
}

.demo-screen--bakery h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3a2a1a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.demo-screen--legal .demo-screen__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ba7d4;
  margin-bottom: 8px;
}

.demo-screen--legal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5f4f0;
  line-height: 1.2;
  margin-bottom: 12px;
}

.demo-screen__btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.demo-screen--bakery .demo-screen__btn {
  background: #3a2a1a;
  color: #f5e6d3;
}

.demo-screen--legal .demo-screen__btn {
  background: #7ba7d4;
  color: #fff;
}

/* Demo card info */
.demo-info {
  padding: 24px 28px 28px;
}

.demo-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111315;
  margin-bottom: 10px;
}

.demo-info p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 16px;
}

.demo-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
  margin-right: 6px;
}

/* ================================
   PRICING
   ================================ */
.pricing {
  background: #f5f4f0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

/* Featured card — slightly elevated */
.pricing-card--featured {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5f4f0;
  color: #111315;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.pricing-badge:hover {
  transform: translateX(-50%) scale(1.1);
}

.pricing-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111315;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7ba7d4;
  font-weight: 700;
}


.pricing-card .btn-outline {
  background: #f5f4f0;
  border-color: rgba(0, 0, 0, 0.1);
}

.pricing-card .btn-outline:hover {
  background: #111315;
  border-color: #111315;
  color: #f5f4f0;
}

/* ================================
   FAQ
   ================================ */
.faq {
  background: #fff;
}

.faq-inner {
  max-width: 740px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #111315;
  text-align: left;
  line-height: 1.4;

  transition: color 0.2s;
}

.faq-question:hover {
  color: #555;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: #aaa;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    color 0.2s;
  line-height: 1;
}

/* Rotate + into × when open */
.faq--open .faq-icon {
  transform: rotate(45deg);
  color: #111315;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0;
}

.faq--open .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
}

/* ================================
   RESPONSIVE — new sections
   ================================ */
@media (max-width: 768px) {
  .pricing-card--featured {
    transform: none; /* remove the lift on mobile — looks odd stacked */
  }

  .demos-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .nav {
    padding: 19px 24px;
  }

  /* Hide desktop links, show hamburger */
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(245, 244, 240, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: none;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
    padding: 0;
  }

  .nav--open .nav-links {
    max-height: 260px;
    padding: 16px 0 24px;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-right {
    display: flex;
    flex-direction: row; /* force side by side */
    align-items: center;
    gap: 10px;
  }

  .nav-hamburger {
    display: flex;
  }

  .section-inner {
    padding: 72px 24px;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-visual {
    display: none;
  }

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

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}

/* Salon Aava demo screen */
.demo-screen--aava {
  background: linear-gradient(135deg, #f6f1e8 0%, #d8c6af 100%);
}

.demo-screen--aava .demo-screen__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c98f6a;
  margin-bottom: 8px;
}

.demo-screen--aava h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #181715;
  line-height: 1.2;
  margin-bottom: 12px;
}

.demo-screen--aava .demo-screen__btn {
  background: #181715;
  color: #f6f1e8;
}

/* Live demo link */
.demo-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #111315;
  letter-spacing: 0.03em;
  border-bottom: 1.5px solid #111315;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.demo-link:hover {
  opacity: 0.5;
}

/* ================================
   LANGUAGE TOGGLE
   ================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;

  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 6px 14px;

  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;

  color: #111315;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.lang-toggle:hover {
  border-color: #111315;
  background: rgba(0, 0, 0, 0.04);
}

.lang-toggle__active {
  color: #111315;
}

.lang-toggle__divider {
  color: #bbb;
  font-weight: 300;
}

.lang-toggle__other {
  color: #aaa;
}

/* On index.html — fixed position like the enter button */
.lang-toggle--fixed {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.5);
  color: #111315;
}

.lang-toggle--fixed:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}
