:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel2: #eef2f7;
  --border: #dfe5ec;
  --ink: #16181d;
  --body: #3e434b;
  --muted: #717783;
  --accent: #4f5be8;
  --accent-dark: #2730a8;
  --green: #178a4c;
  --amber: #c77414;
  --red: #d33b3b;
  --blue: #2563eb;
  font-family: "Instrument Sans", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  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;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(22, 24, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

nav a {
  color: var(--body);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(760px, 82svh);
  padding: clamp(64px, 9vw, 108px) clamp(20px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(11, 13, 20, 0.95) 0%, rgba(20, 25, 46, 0.82) 46%, rgba(20, 25, 46, 0.38) 100%),
    url("fancue-ios-inbox.jpg") right 9vw center / auto min(86%, 680px) no-repeat,
    #14192e;
  color: #fff;
}

.hero-copy {
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #aeb7ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--accent-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button.secondary.light {
  border-color: var(--border);
  color: var(--accent-dark);
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(20px, 7vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.intro p,
.policy p,
.feature-card p,
.safety-list p {
  color: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

.product-shot {
  width: min(100%, 300px);
  height: auto;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(22, 24, 29, 0.16);
}

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

.feature-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card:nth-child(1) {
  border-top: 4px solid var(--accent);
}

.feature-card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.feature-card:nth-child(3) {
  border-top: 4px solid var(--blue);
}

.feature-card:nth-child(4) {
  border-top: 4px solid var(--amber);
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 64px);
  background: #fff;
}

.safety-list {
  display: grid;
  gap: 10px;
}

.safety-list p {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel2);
}

.policy {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) 20px;
}

.page-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(42px, 8vw, 76px);
}

.policy-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.policy-section h2,
.support-grid h2 {
  font-size: 24px;
}

.support-grid {
  margin: 32px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list,
.news-list {
  display: grid;
  gap: 14px;
  padding: 32px 0;
}

details,
.news-item,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.news-item,
.contact-card {
  padding: 22px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  padding: 32px 0;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.contact-form label {
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.page-actions {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  padding: 26px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--body);
  text-decoration: none;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 80svh;
    background:
      linear-gradient(180deg, rgba(11, 13, 20, 0.94) 0%, rgba(20, 25, 46, 0.82) 62%, rgba(20, 25, 46, 0.48) 100%),
      url("fancue-ios-inbox.jpg") center bottom 18px / auto 58% no-repeat,
      #14192e;
    align-items: start;
  }

  .hero-text {
    font-size: 18px;
  }

  .intro,
  .safety,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 42px;
  }
}
