:root {
  --bg: #fffbf5;
  --accent: #e07a5f;
  --accent-dark: #3d405b;
  --sand: #f4f1de;
  --green: #81b29a;
  --terracotta: #e07a5f;
  --text: #3d405b;
  --text-light: #f4f1de;
  --border: #d1cec0;
  --shadow: 8px 8px 0px rgba(61, 64, 91, 0.1);
  --shadow-hover: 4px 4px 0px rgba(61, 64, 91, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}
.narrow {
  max-width: 800px;
}
.section {
  padding: 120px 0;
}
.bg-sand {
  background: var(--sand);
}
.bg-terracotta {
  background: var(--terracotta);
}
.bg-soft-green {
  background: #f2f7f5;
}
.center {
  text-align: center;
}
.white {
  color: var(--bg) !important;
}
.text-light {
  color: var(--bg);
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
  line-height: 1.2;
  margin-bottom: 25px;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.accent {
  color: var(--accent);
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-dark);
  color: white;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Header */
.header {
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-family: "Lora", serif;
  font-size: 1.8rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px;
  margin-right: 10px;
  vertical-align: middle;
}
.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.desktop-nav a:hover {
  color: var(--accent);
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.btn-nav {
  padding: 10px 20px;
  background: var(--accent-dark);
  color: white !important;
  border-radius: 4px;
  transition: 0.3s;
}

.aud-content p,
.aud-content li {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
  line-height: 20px;
}

.burger-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.line {
  width: 30px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  padding-top: 180px;
  background-image: url("./image/rm378-09h\ \(1\).jpg");
  background-size: cover;
  background-position: center;
  color: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero-essay p {
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: #555;
  font-weight: 700;
}
.btn-main {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--accent-dark);
  color: white;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 60px;
}
.tactile-blob {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sand);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorph 10s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.inner-circle {
  width: 40%;
  height: 40%;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes blobMorph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Method Cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.method-card {
  background: white;
  padding: 50px 35px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.method-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px rgba(61, 64, 91, 0.2);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--sand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--accent);
}

/* Interactive Tech Section */
.tech-explore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.interactive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}
.chip {
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}
.chip:hover,
.chip.active {
  background: var(--accent);
  color: white;
}

.tech-display {
  background: white;
  padding: 60px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 300px;
  display: flex;
  align-items: center;
}

/* Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}
.timeline-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.time-num {
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.3;
  font-family: "Lora", serif;
}
.time-content h3 {
  margin-bottom: 10px;
}

/* FAQ */
.acc-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
.acc-header {
  padding: 25px 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.acc-header:hover {
  color: var(--accent);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease-out;
}
.acc-item.active .acc-content {
  max-height: 300px;
  padding-bottom: 25px;
}

/* Form (Vertical) */
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.tactile-form {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.form-group input {
  padding: 16px;
  border: 2px solid var(--sand);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 10px 0;
}
.form-check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  cursor: pointer;
}
.form-check label {
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.btn-submit {
  padding: 20px;
  background: var(--accent-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: white;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  text-decoration: none;
  color: #777;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 0.8rem;
  color: #999;
}

/* Cookie */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  z-index: 5000;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 350px;
}
.btn-sm {
  padding: 8px 16px;
  background: var(--accent-dark);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active {
  transform: translateY(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.mobile-nav a {
  font-size: 2rem;
  font-family: "Lora", serif;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .method-grid,
  .tech-explore,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .burger-toggle {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
