:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede4;
  --ink: #2f2525;
  --muted: #756966;
  --brand: #7a4a44;
  --coral: #f06f6b;
  --line: rgba(122, 74, 68, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 48px;
  padding: 80px clamp(20px, 7vw, 110px);
  overflow: hidden;
}

.hero h1,
.section h2,
.app-hero h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero p,
.section p,
.app-hero p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral) !important;
  font-size: 13px !important;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.hero-orbit {
  position: relative;
  min-height: 420px;
}

.soft-ring {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(240,111,107,0.16), transparent 64%);
  animation: breathe 6s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 230px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(122, 74, 68, 0.16);
  text-align: center;
  animation: float 5s ease-in-out infinite;
}

.floating-card img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.floating-card span {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
}

.section {
  padding: 84px clamp(20px, 7vw, 110px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.app-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 880px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(122, 74, 68, 0.08);
}

.app-card img {
  width: 156px;
  height: 156px;
  object-fit: contain;
}

.app-card h3 {
  margin: 0;
  color: var(--brand);
  font-size: 42px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 46px;
}

.english,
.contact {
  background: var(--surface-2);
}

.mail {
  color: var(--brand);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  text-decoration: none;
}

.app-hero {
  min-height: 72vh;
  padding: 84px clamp(20px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 980px;
}

.app-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin-bottom: 24px;
}

.english-copy {
  font-size: 18px !important;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}

.mini-card h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.mini-card p {
  font-size: 16px;
}

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 70px 22px 110px;
}

.legal h1 {
  color: var(--brand);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal h2 {
  margin-top: 44px;
  color: var(--brand);
}

.legal p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 30px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -52%); }
  50% { transform: translate(-50%, -46%); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .hero,
  .split,
  .app-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-orbit {
    min-height: 300px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
