/* --- Variables & Reset --- */
:root {
  /* Palette: Warm Paper Soft */
  --bg-color: #fcfbf9;
  --surface-color: #f2f0eb; /* Slightly darker for cards/sections */
  --text-primary: #2b2a29;
  --text-secondary: #6e6b67;
  --accent-color: #2b2a29; /* Black/Dark text as accent */
  --border-color: rgba(43, 42, 41, 0.08); /* Very soft border */

  /* Soft Tech DNA */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-pill: 100px;

  --font-main: "Plus Jakarta Sans", sans-serif;

  --container-width: 1320px;
  --header-height: 90px;

  --shadow-soft: 0 10px 40px -10px rgba(43, 42, 41, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container,
.header__container,
.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons (Soft Pill Shape) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border: 1px solid var(--text-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(252, 251, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent; /* No hard border */
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.header__nav {
  display: flex;
}

.header__list {
  display: flex;
  gap: 32px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.header__link:hover {
  color: var(--text-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* --- Mobile Menu --- */
@media (max-width: 992px) {
  .header__burger {
    display: block;
  }

  .header__list {
    display: none; /* Hide standard nav list on mobile */
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav.active .header__list {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    gap: 40px;
    text-align: center;
  }

  .header__link {
    font-size: 1.8rem;
    font-weight: 600;
  }
}

/* --- Main Placeholder --- */
.main {
  padding-top: var(--header-height);
  min-height: 80vh;
}

/* --- Footer --- */
.footer {
  margin-top: 80px;
  padding: 80px 24px 40px;
  background-color: var(--surface-color);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.footer__slogan {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
}

.footer__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0.6;
}

.footer__links li {
  margin-bottom: 14px;
}

.footer__links a {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link-contact {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer__note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
}

.footer__meta {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer {
    border-radius: 24px 24px 0 0;
  }
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__col--brand {
    order: -1;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh; /* Full screen feel */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0;
}

/* Abstract Background Blobs */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: blob-bounce 10s infinite ease-in-out alternate;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: #e6e0d8; /* Warm beige shadow */
  top: -100px;
  right: -100px;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: #ebebeb; /* Very light grey */
  bottom: -50px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, 40px) scale(1.1);
  }
}

/* Layout */
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Content */
.hero__content {
  max-width: 600px;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 42, 41, 0.05);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.text-soft-accent {
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 500;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero__note .lucide {
  color: var(--text-primary);
}

/* Visual (Right Side) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* For 3D tilt effect */
}

/* Glass Card */
.glass-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out; /* Smooth follow */
}

.glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-dots {
  display: flex;
  gap: 6px;
}

.glass-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

.glass-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Chat UI */
.chat-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}

.chat-msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0; /* Hidden by default for JS animation */
  transform: translateY(10px);
  animation: fadeUp 0.5s forwards;
}

.chat-msg--bot {
  align-self: flex-start;
  background: white;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--text-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.glass-input-fake {
  margin-top: 24px;
  height: 48px;
  background: white;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 6px 0 20px;
  justify-content: space-between;
}

.glass-input-fake .line {
  height: 4px;
  width: 40%;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.glass-input-fake .btn-circle {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  border-radius: 50%;
}

/* Floating Badge */
.float-badge {
  position: absolute;
  top: 10%;
  right: -20px;
  background: white;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

.float-num {
  font-weight: 800;
  font-size: 1.1rem;
}

.float-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__visual {
    margin-top: 20px;
  }

  .float-badge {
    right: 0;
  }
}

/* --- Sections General --- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.text-accent {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.text-accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: -4px;
  width: 104%;
  height: 12px;
  background-color: rgba(207, 176, 150, 0.3); /* Soft beige highlight */
  z-index: -1;
  border-radius: 4px;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover Effect: Lift & Soft Shadow */
.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-card:hover .bento-icon-box {
  background-color: var(--text-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

/* Grid Spans */
.bento-card--large {
  grid-column: span 1;
  grid-row: span 2;
  background-color: var(--text-primary); /* Dark Card Accent */
  color: white;
}

.bento-card--large p {
  color: rgba(255, 255, 255, 0.7);
}

.bento-card--large .bento-icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.bento-card--wide {
  grid-column: span 2;
}

/* Card Content */
.bento-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--surface-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Specific Layouts */
.bento-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.bento-text {
  max-width: 60%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  gap: 10px; /* Arrow slide animation */
}

/* Mini Chart Decoration */
.bento-chart-mini {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar {
  width: 16px;
  background: var(--surface-color);
  border-radius: 8px;
  transition: height 0.5s ease;
}

.bar-1 {
  height: 40%;
  background: #e0dedb;
}
.bar-2 {
  height: 70%;
  background: #cfb096;
}
.bar-3 {
  height: 100%;
  background: var(--text-primary);
}

.bento-card:hover .bar-1 {
  height: 60%;
}
.bento-card:hover .bar-2 {
  height: 90%;
}

/* Mobile Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card--large,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .bento-content-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-text {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Reveal Animation Initial State */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* --- Process Section --- */
.text-center {
  text-align: center;
}

.center-mx {
  margin-left: auto;
  margin-right: auto;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding: 20px 0;
}

/* Connecting Line */
.process-line-bg {
  position: absolute;
  top: 60px; /* Aligns with the marker circle */
  left: 16%; /* Start after first half of first card */
  right: 16%; /* End before last half of last card */
  height: 4px;
  background-color: var(--border-color);
  z-index: 0;
  border-radius: 4px;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Number Marker */
.step-marker {
  width: 50px;
  height: 50px;
  background-color: var(--bg-color);
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono); /* Mono detail from DNA */
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--bg-color); /* Mask the line behind */
  transition: all 0.3s ease;
}

.process-step:hover .step-marker {
  background-color: var(--text-primary);
  color: white;
  transform: scale(1.1);
}

/* Card Style */
.step-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%; /* Equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-card--accent {
  border: 1px solid var(--text-primary);
  background: #fdfbf8;
}

.step-icon {
  margin-bottom: 16px;
  color: var(--text-primary);
  opacity: 0.8;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.step-note {
  margin-top: auto;
  font-size: 0.75rem;
  background: var(--surface-color);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* CTA Button Container */
.process-cta {
  text-align: center;
  margin-top: 60px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-line-bg {
    top: 0;
    bottom: 0;
    left: 24px; /* Vertical line position */
    width: 2px;
    height: 100%;
    right: auto;
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 40px;
    gap: 20px;
    text-align: left;
  }

  .step-marker {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-top: 0;
    width: 50px; /* Ensure size stays same */
  }

  .step-card {
    text-align: left;
    align-items: flex-start;
    width: calc(100% - 70px); /* Adjust width */
  }

  .step-note {
    margin-top: 12px;
  }
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Featured gets more space */
  gap: 40px;
  align-items: start;
}

/* Featured Card */
.blog-card--featured {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card--featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-img-wrapper {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #e0dedb;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card--featured:hover .blog-img {
  transform: scale(1.05);
}

.blog-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}

.blog-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.blog-card--featured h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-card--featured p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.link-read {
  margin-top: auto;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-read:hover {
  gap: 12px;
  text-decoration: underline;
}

/* Sidebar List */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-item {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.blog-item:hover {
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
  transform: translateX(5px);
}

.blog-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color); /* Uses dark text color */
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  opacity: 0.6;
}

.blog-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.icon-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.blog-item:hover .icon-btn {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

/* Helpers */
.desktop-only {
  display: inline-flex;
}
.mobile-only {
  display: none;
}
.width-100 {
  width: 100%;
}
.mt-30 {
  margin-top: 30px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  .blog-img-wrapper {
    height: 200px;
  }
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 90%;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-link,
.detail-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* --- Form Card --- */
.contact-form-card {
  background: white;
  padding: 40px;
  border-radius: 32px; /* Soft Tech radius */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Soft input radius */
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--bg-color);
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--text-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(43, 42, 41, 0.05);
}

.form-group input.error {
  border-color: #ff4d4d;
  background: #fff5f5;
}

.error-text {
  display: block;
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 6px;
  height: 14px;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-color);
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.custom-checkbox-wrapper:hover {
  background: #f0eeeb;
}

.hidden-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-secondary);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
}

.hidden-checkbox:checked + .custom-checkbox-box {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.hidden-checkbox:checked + .custom-checkbox-box::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-container {
  display: flex;
  align-items: flex-start; /* Вирівнюємо чекбокс по першому рядку тексту */
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkmark {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: 0 0 20px;

  border: 2px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  margin-top: 3px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.checkbox-container input {
  display: none;
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.checkbox-container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.consent-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.consent-text a {
  text-decoration: underline;
  color: var(--text-primary);
}

.btn--full {
  width: 100%;
  margin-top: 10px;
}

/* Success Message */
.success-message {
  display: none; /* Hidden */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e6f7ed;
  color: #00a152;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  color: var(--text-primary);
}

.cookie-popup p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.cookie-popup a {
  text-decoration: underline;
  color: var(--text-primary);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* --- Pages Styles (Privacy, Terms) --- */
.page-section {
  padding: 120px 0 80px;
}

.pages {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.pages p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.pages li {
  margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-card {
    padding: 24px;
    border-radius: 24px;
  }

  .cookie-popup {
    flex-direction: column;
    text-align: center;
    bottom: 20px;
  }

  .pages {
    padding: 30px;
  }

  .pages h1 {
    font-size: 1.8rem;
  }
}
