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

:root {
  --bg: #fdf6ee;
  --bg-dark: #292524;
  --text: #292524;
  --text-soft: #78716c;
  --text-light: #e7e5e4;
  --accent: #c2410c;
  --border: #e7e0d5;
  --card: #fffbf5;
  --radius: 16px;
  --radius-sm: 8px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-h: 64px;
  --max-w: 1080px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,246,238,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 1px 0 var(--border); }

.nav-container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center;
}
.logo-mark {
  height: 24px; width: auto;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

/* Language switcher */
.lang-switcher {
  display: flex; gap: 2px;
  background: var(--border);
  border-radius: 6px; padding: 2px;
}
.lang-btn {
  font-family: var(--font-heading);
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 8px; border: none;
  border-radius: 4px;
  background: transparent; color: var(--text-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--card); color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lang-btn:hover:not(.active) { color: var(--text); }

.nav-menu {
  list-style: none; display: flex; gap: 28px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: min(85vh, 680px);
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 500;
  color: var(--accent);
  background: rgba(194, 65, 12, 0.06);
  border: 1px solid rgba(194, 65, 12, 0.15);
  padding: 6px 14px; border-radius: 24px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-line { display: block; }
.hero-line:nth-child(1) { animation: fadeSlideUp 0.6s 0.1s ease both; }
.hero-line:nth-child(2) { animation: fadeSlideUp 0.6s 0.2s ease both; }
.hero-line:nth-child(3) { animation: fadeSlideUp 0.6s 0.3s ease both; }
.hero-accent {
  background: linear-gradient(135deg, var(--accent), #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 440px; line-height: 1.7;
  animation: fadeSlideUp 0.6s 0.4s ease both;
}

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; justify-content: center;
  padding-top: 6px;
  animation: fadeSlideUp 0.6s 0.8s ease both;
}
.scroll-dot {
  width: 3px; height: 6px;
  background: var(--text-soft);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ===== Section common ===== */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }

.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.section-label {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft);
}
.section-label-light { color: rgba(255,255,255,0.5); }

/* ===== Bento Grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}

.bento-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
a.bento-item { cursor: pointer; }

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

.bento-content { position: relative; z-index: 1; }

.bento-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(194, 65, 12, 0.08);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.9rem; color: var(--text-soft);
  line-height: 1.6; max-width: 400px;
}

.bento-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
  transition: gap var(--transition);
}

.bento-platform {
  display: block;
  font-size: 0.78rem; color: var(--text-soft);
  margin-top: 12px;
}

.bento-stores {
  display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.store-link {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}
.store-link:hover { opacity: 0.7; }

.bento-visual {
  position: absolute;
  right: 24px; bottom: 20px;
  opacity: 0.12;
  font-size: 5rem;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.bento-item:hover .bento-visual {
  opacity: 0.2;
  transform: scale(1.1) rotate(-5deg);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-bio {
  font-size: 1.1rem; line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-top: 20px;
}

.skill-group { margin-bottom: 24px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-label {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  color: rgba(255,255,255,0.7);
  transition: border-color var(--transition), color var(--transition);
}
.pill:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ===== Contact ===== */
.contact-container { text-align: center; padding: 80px 24px; }

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 1rem; color: var(--text-soft);
  margin-bottom: 36px;
}

.contact-links {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 12px;
}

.contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 500;
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.chip-arrow {
  color: var(--accent);
  transition: transform var(--transition);
}
.contact-chip:hover .chip-arrow {
  transform: translate(2px, -2px);
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex; justify-content: center;
  align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-soft);
}
.footer-dot { opacity: 0.3; }

/* ===== Animations ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-wide { grid-column: span 1; }
  .bento-tall { grid-row: span 1; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,246,238,0.95);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 14px 0; }

  .nav-toggle { display: flex; }
  .nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
  .nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

  .section { padding: 72px 0; }
  .hero { min-height: min(75vh, 560px); }

  .contact-links { flex-direction: column; align-items: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
