:root {
  /* Colors */
  --c-bg: #fff;
  --c-text-main: #333;
  --c-text-sub: #666;
  --c-link: #333;
  --c-accent: #a0c4ff;
  /* Placeholder for semantic accent */

  /* Typography */
  --font-serif: 'Zen Old Mincho', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;

  /* Spacing */
  --spacing-section: 20vh;
  --spacing-element: 2rem;
  --container-width: 800px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text-main);
  background-color: var(--c-bg);
  line-height: 2.0;
  /* Generous line height */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Canvas Background */
#watercolor-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* Typography Utilities */
.serif {
  font-family: var(--font-serif);
}

.sans {
  font-family: var(--font-sans);
}

/* Layout */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  min-height: 60vh;
  /* Ensure each section has presence */
  padding: var(--spacing-section) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Specific Sections */

/* Hero */
#hero {
  height: 100vh;
  text-align: center;
  padding: 0;
}

.logo-container {
  margin-bottom: 2rem;
}

.hero-logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.hero-copy {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--spacing-element);
  letter-spacing: 0.1em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-sub);
  letter-spacing: 0.05em;
}

/* Experiment Section */
.experiment-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.slider-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.slider-wrapper {
  background: rgba(255, 255, 255, 0.5);
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-display {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#demo-text {
  font-size: 1.1rem;
  line-height: 2;
  transition: filter 0.2s, opacity 0.2s;
  /* Will be manipulated by JS for blur/opacity */
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #ddd;
  border-radius: 2px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--c-text-sub);
  margin-top: -1rem;
}

/* Philosophy */
#philosophy {
  text-align: center;
}

.philosophy-text {
  font-size: 1.25rem;
  line-height: 2.4;
}

/* Services */
.service-intro {
  margin-bottom: calc(var(--spacing-element) * 3);
  text-align: center;
}

.service-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.service-desc {
  color: var(--c-text-sub);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  /* Subtle line */
  padding-bottom: 0.8rem;
  display: block;
}

.card-catch {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.card-text {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* Pricing Section */
.pricing-flow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .pricing-flow {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }
}

.phase-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.3s;
  min-width: 250px;
}

.phase-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.85);
}

.phase-header {
  margin-bottom: 1.5rem;
}

.phase-label {
  display: block;
  font-size: 0.8rem;
  color: var(--c-text-sub);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.phase-title {
  font-size: 1.4rem;
  margin: 0;
}

.phase-price {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.tax {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--c-text-sub);
}

.phase-desc {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  line-height: 1.7;
  text-align: left;
}

/* Connectors */
.phase-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #ccc, transparent);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .phase-connector {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, #ccc, transparent);
    align-self: center;
    margin: 0;
  }
}

/* About */
#about {
  text-align: center;
}

.about-text {
  margin-bottom: var(--spacing-element);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-stack span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #eee;
  border-radius: 20px;
  color: var(--c-text-sub);
  letter-spacing: 0.05em;
}

/* Contact */
#contact {
  text-align: center;
}

.contact-msg {
  margin-bottom: 3rem;
}

/* Form Messages (success / error) */
.form-message {
  display: none;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  display: block;
  background: rgba(0, 150, 100, 0.07);
  border: 1px solid rgba(0, 150, 100, 0.3);
  color: #016f4f;
}

.form-message.error {
  display: block;
  background: rgba(200, 0, 0, 0.05);
  border: 1px solid rgba(200, 0, 0, 0.3);
  color: #8b0000;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-text-main);
}

.contact-form button {
  padding: 1rem 3rem;
  background: var(--c-text-main);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  align-self: center;
  transition: opacity 0.3s;
  letter-spacing: 0.1em;
}

.contact-form button:hover {
  opacity: 0.8;
}

/* File Input */
.file-input-container {
  text-align: left;
  margin-top: 0.5rem;
}

.file-label {
  display: block;
  font-size: 0.9rem;
  color: var(--c-text-sub);
  margin-bottom: 0.5rem;
  margin-left: 0.2rem;
}

.contact-form input[type="file"] {
  padding: 0.5rem;
  /* Adjust padding for file input */
}

/* Section Titles (Common) */
.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-element);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.3;
  /* Subtle */
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
}

.section {
  padding-top: 30vh;
  /* Adjust for absolute title */
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-sub);
}

/* Animation Entry */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: opacity, transform;
}

/* Fix for centered absolute elements (section-title) */
.section-title.fade-in-section {
  transform: translate(-50%, 30px);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title.fade-in-section.visible {
  transform: translate(-50%, 0);
}