:root {
  --color-bg: #FDF6F0;
  --color-bg-raised: #FFFFFF;
  --color-ink: #3A2A22;
  --color-brand: #7D5A50;
  --color-brand-deep: #5C4038;
  --color-accent: #7C8363;
  --color-accent-soft: #EDEFE4;
  --color-line: #E8DDD1;
  --color-muted: #8A7A6E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;

  --text-display-xl: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  --text-display-l: clamp(1.9rem, 3vw + 1rem, 2.9rem);
  --text-display-m: clamp(1.4rem, 2vw + 0.5rem, 1.9rem);
  --text-body-l: 1.125rem;
  --text-caption: 0.875rem;
  --text-micro: 0.75rem;

  --radius-button: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(58, 42, 34, 0.04), 0 8px 24px rgba(58, 42, 34, 0.06);

  --container-max: 1120px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }

a { color: inherit; }

/* ===== Tombol ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  font: 500 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--color-brand); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-brand-deep); }
.btn-secondary { color: var(--color-brand); border-color: var(--color-brand); background: transparent; }
.btn-secondary:hover { background: rgba(92, 64, 56, 0.06); }

/* ===== Header ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 246, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 40px; display: block; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--color-muted); }
.nav a:hover { color: var(--color-ink); }
.nav a.btn { color: var(--color-bg); }

/* ===== Hero ===== */
.hero { padding-top: clamp(44px, 8vw, 96px); padding-bottom: clamp(8px, 2vw, 24px); max-width: 900px; }
.eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.hero h1 { font-size: var(--text-display-xl); margin-bottom: 22px; }
.lead { font-size: var(--text-body-l); color: var(--color-muted); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ===== Garis pita (signature element) ===== */
.ribbon { max-width: var(--container-max); margin: clamp(36px, 6vw, 72px) auto; padding: 0 var(--container-padding); }
.ribbon svg { width: 100%; height: 40px; display: block; }
.ribbon path { fill: none; stroke: var(--color-brand); stroke-width: 1.5; opacity: 0.35; }

/* ===== Coba dengan fotomu ===== */
.tryout-head { max-width: 60ch; margin-bottom: 36px; }
.tryout-head h2 { font-size: var(--text-display-l); margin-bottom: 12px; }
.tryout-head p { color: var(--color-muted); }

.tryout-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.preview-frame {
  position: sticky;
  top: 90px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px;
}
.preview-frame iframe {
  width: 100%;
  aspect-ratio: 3 / 4.6;
  border: 0;
  border-radius: 8px;
  display: block;
  background: #1e1b4b;
}

.controls { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: var(--text-caption); font-weight: 500; letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  font: 400 1rem var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button);
  padding: 11px 13px;
  width: 100%;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; border-color: var(--color-brand); }
.field small { font-size: var(--text-micro); color: var(--color-muted); }
.controls-note { font-size: var(--text-caption); color: var(--color-muted); margin-top: 4px; }
.controls .btn { align-self: flex-start; }

/* ===== Galeri ===== */
.gallery-head { max-width: 60ch; margin-bottom: 40px; }
.gallery-head h2 { font-size: var(--text-display-l); margin-bottom: 12px; }
.gallery-head p { color: var(--color-muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card .title-field {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  padding: 26px 24px;
  background: var(--tint, var(--color-accent-soft));
}
.card .title-field h3 { font-size: var(--text-display-m); color: var(--color-ink); }
.card .body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .desc { font-size: var(--text-caption); color: var(--color-muted); flex: 1; }
.card .tag {
  align-self: flex-start;
  font-size: var(--text-micro);
  letter-spacing: 0.03em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.card .demo-link {
  font-size: var(--text-caption);
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.card .try-link {
  font-size: var(--text-micro);
  color: var(--color-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

/* ===== Penutup (kartu ajakan) ===== */
.closing { padding-top: 8px; }
.closing-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 56px);
}
.closing-card h2 { font-size: var(--text-display-l); margin-bottom: 12px; }
.closing-card p { color: var(--color-muted); max-width: 46ch; margin-bottom: 26px; }
.closing-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Footer ===== */
.site-foot { background: var(--color-bg); border-top: 1px solid var(--color-line); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 64px;
  padding-bottom: 56px;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-logo { height: 42px; opacity: 0.9; }
.foot-tagline { font-family: var(--font-accent); font-size: 1.4rem; color: var(--color-brand); }
.foot-copy { font-size: var(--text-micro); color: var(--color-muted); }
.foot-copy a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-copy a:hover { color: var(--color-brand); }

.foot-contact { display: flex; flex-direction: column; align-items: flex-start; }
.foot-q { font-size: var(--text-caption); color: var(--color-brand); margin-bottom: 6px; }
.foot-walink {
  font-size: var(--text-body-l);
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: var(--font-display);
}
.foot-walink:hover { color: var(--color-brand-deep); }
.foot-follow { font-size: var(--text-micro); letter-spacing: 0.03em; color: var(--color-muted); margin: 24px 0 10px; }
.foot-social { display: flex; gap: 14px; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-brand);
  transition: background 180ms ease, border-color 180ms ease;
}
.foot-social a:hover { background: rgba(125, 90, 80, 0.08); border-color: var(--color-brand); }

@media (max-width: 640px) {
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 36px; }
}

/* ===== Responsif ===== */
@media (max-width: 860px) {
  .tryout-grid { grid-template-columns: 1fr; }
  .preview-frame { position: static; max-width: 360px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
