:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #183328;
  background: #f5faf7;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.65;

  background:
    linear-gradient(
      180deg,
      #edf8f1 0%,
      #f8fbf9 45%,
      #ffffff 100%
    );
}

img {
  max-width: 100%;
}

.container,
.header-container {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
}

.container {
  padding: 48px 0;
}

.site-header {
  border-bottom: 1px solid #dcebe1;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #183328;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.main-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.main-navigation a {
  color: #24734d;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: 48px 0 32px;
}

.cuisy-hero {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 48px 0 32px;
}

.cuisy-logo {
  display: block;
  width: min(190px, 42vw);
  height: auto;
  border-radius: 32px;
  box-shadow: 0 18px 50px rgba(25, 80, 52, 0.16);
}

.page-header {
  padding: 28px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #24734d;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 1.05;
}

h2 {
  margin-top: 0;
  line-height: 1.2;
}

h3 {
  line-height: 1.3;
}

.introduction {
  max-width: 700px;
  margin-top: 20px;
  font-size: 1.15rem;
}

.application-card,
.content-card {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid #dcebe1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(25, 80, 52, 0.08);
}

.application-card {
  display: flex;
  align-items: center;
  gap: 28px;
}

.application-logo {
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(25, 80, 52, 0.15);
}

.application-information h3 {
  margin: 0;
  font-size: 1.7rem;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 38px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.notice {
  padding: 18px;
  border-left: 4px solid #218653;
  border-radius: 4px 12px 12px 4px;
  background: #edf8f1;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #ffffff;
  background: #218653;
  font-weight: 750;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #176c41;
  text-decoration: none;
}

.back-link {
  color: #24734d;
  font-weight: 650;
  text-decoration: none;
}

.information-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.information-links a {
  padding: 16px;
  border: 1px solid #dcebe1;
  border-radius: 14px;
  color: #24734d;
  background: #f8fcf9;
  font-weight: 700;
  text-decoration: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.steps article {
  padding: 20px;
  border-radius: 16px;
  background: #f4faf6;
}

.steps h3 {
  margin-bottom: 8px;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  place-items: center;
  color: #ffffff;
  background: #218653;
  font-weight: 800;
}

a {
  color: #24734d;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-footer {
  padding: 28px 16px;
  color: #52675d;
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 760px) {
  .header-container {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-navigation {
    width: 100%;
  }

  .cuisy-hero,
  .application-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps,
  .information-links {
    grid-template-columns: 1fr;
  }

  .application-logo {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 600px) {
  .container,
  .header-container {
    width: min(100% - 24px, 1000px);
  }

  .container {
    padding-top: 28px;
  }

  .application-card,
  .content-card {
    padding: 22px;
    border-radius: 18px;
  }

  .cuisy-logo {
    width: 140px;
    border-radius: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e7f3eb;
    background: #10251c;
  }

  body {
    background:
      linear-gradient(
        180deg,
        #10291e 0%,
        #101c17 50%,
        #0c1511 100%
      );
  }

  .site-header {
    border-bottom-color: #294839;
    background: rgba(15, 35, 26, 0.9);
  }

  .brand {
    color: #e7f3eb;
  }

  .eyebrow,
  .back-link,
  a,
  .main-navigation a {
    color: #80d5a4;
  }

  .application-card,
  .content-card {
    border-color: #294839;
    background: rgba(24, 48, 37, 0.92);
    box-shadow: none;
  }

  .notice {
    border-left-color: #80d5a4;
    background: #183427;
  }

  .steps article,
  .information-links a {
    border-color: #294839;
    background: #173126;
  }

  .information-links a {
    color: #80d5a4;
  }

  .site-footer {
    color: #a9bdb1;
  }
}