:root {
  --forest: #1a3a2f;
  --forest-light: #2d5a47;
  --sage: #7a9e8e;
  --ivory: #f8f6f1;
  --cream: #efe9df;
  --terracotta: #c4704f;
  --bark: #2a2320;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: var(--ivory);
  color: var(--bark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Organic noise 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 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* Custom cursor */
@media (hover: hover) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%231a3a2f'/%3E%3C/svg%3E") 12 12, auto;
  }
  a,
  button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='8' fill='%23c4704f'/%3E%3C/svg%3E") 16 16, pointer;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-sprout {
  width: 24px;
  height: 24px;
  position: relative;
}

.logo-sprout::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--ivory);
  transform: translateX(-50%);
  border-radius: 2px;
}

.logo-sprout::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ivory);
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  border-bottom: none;
  border-right: none;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-size: 0.85rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ivory);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Growing plant animation */
.plant-container {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 200px;
  height: 60vh;
  opacity: 0.15;
}

.stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(to top, var(--sage), var(--ivory));
  transform: translateX(-50%);
  border-radius: 3px;
  animation: grow-stem 3s ease-out forwards;
}

@keyframes grow-stem {
  to {
    height: 100%;
  }
}

.leaf {
  position: absolute;
  width: 40px;
  height: 60px;
  border-radius: 50% 50% 50% 0;
  background: var(--sage);
  opacity: 0;
  transform-origin: bottom left;
}

.leaf-1 {
  bottom: 30%;
  left: 50%;
  transform: rotate(-30deg) scale(0);
  animation: grow-leaf 0.8s ease-out 1.5s forwards;
}

.leaf-2 {
  bottom: 50%;
  left: 50%;
  transform: rotate(30deg) scaleX(-1) scale(0);
  animation: grow-leaf 0.8s ease-out 2s forwards;
}

.leaf-3 {
  bottom: 70%;
  left: 50%;
  transform: rotate(-45deg) scale(0);
  animation: grow-leaf 0.8s ease-out 2.5s forwards;
}

@keyframes grow-leaf {
  to {
    opacity: 1;
    transform: rotate(-30deg) scale(1);
  }
}

.leaf-2 {
  animation-name: grow-leaf-right;
}

@keyframes grow-leaf-right {
  to {
    opacity: 1;
    transform: rotate(30deg) scaleX(-1) scale(1);
  }
}

/* Floating particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  text-align: center;
  color: var(--ivory);
  z-index: 10;
  padding: 2rem;
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-up 1s ease-out 0.5s forwards;
}

.hero-content .tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fade-up 1s ease-out 0.8s forwards;
  color: var(--sage);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fade-up 1s ease-out 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}

/* Sections */
section {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--terracotta);
}

/* About */
#about {
  background: var(--ivory);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
}

.about-shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--cream);
  top: 10%;
  left: 10%;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--sage);
  opacity: 0.3;
  bottom: 10%;
  right: 10%;
}

.shape-3 {
  width: 100px;
  height: 100px;
  border: 2px solid var(--terracotta);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  line-height: 2;
}

.about-text .highlight {
  color: var(--terracotta);
  font-weight: 700;
}

/* Services */
.services {
  background: var(--cream);
  margin: 0;
  max-width: none;
  padding: 8rem 3rem;
}

.services-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--ivory);
  padding: 3rem;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 58, 47, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
}

.icon-web {
  border: 2px solid var(--forest);
  border-radius: 8px;
}

.icon-web::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--forest);
}

.icon-system {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.icon-system span {
  background: var(--forest);
  border-radius: 2px;
}

.icon-consult {
  border-radius: 50%;
  border: 2px solid var(--forest);
  position: relative;
}

.icon-consult::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--forest);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--bark);
  line-height: 1.9;
}

/* Philosophy */
.philosophy {
  text-align: center;
  padding: 10rem 3rem;
}

.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  color: var(--forest);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.philosophy-quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  color: var(--terracotta);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: -1rem;
}

/* Contact */
.contact {
  background: var(--forest);
  margin: 0;
  max-width: none;
  padding: 8rem 3rem;
  color: var(--ivory);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact .section-title {
  color: var(--ivory);
}

.contact .section-title::after {
  background: var(--sage);
}

.contact p {
  margin: 2rem 0 3rem;
  color: var(--sage);
  font-size: 1.05rem;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  transition: left 0.4s ease;
  z-index: -1;
}

.contact-btn:hover {
  color: var(--forest);
}

.contact-btn:hover::before {
  left: 0;
}

/* Footer */
footer {
  background: var(--bark);
  padding: 3rem;
  text-align: center;
  color: var(--sage);
}

footer p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 1rem 1.5rem;
  }

  nav {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.75rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    height: 300px;
    order: -1;
  }

  section {
    padding: 5rem 1.5rem;
  }

  .services,
  .contact {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  nav {
    display: none;
  }

  .hero-content h1 {
    letter-spacing: 0.05em;
  }

  .service-card {
    padding: 2rem;
  }
}
