

:root {
  --bg: #fffaf2;              /* sun-washed sand */
  --bg-2: #fff4e0;            /* subtle warm tint */
  --text: #2a2a2a;            /* readable warm charcoal */
  --muted: #6d655d;           /* driftwood */
  --accent: #d99152;          /* sunlit terracotta */
  --accent-2: #c87436;        /* deeper accent for hover */
  --ring: rgba(217,145,82,0.35);
  --card: #ffffff;
  --shadow: 0 10px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --radius: 16px;
  --maxw: 1100px;
  --pad: clamp(16px, 2.4vw, 28px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171511;
    --bg-2: #1f1b15;
    --text: #f3efe7;
    --muted: #cfc7bc;
    --card: #201c16;
    --shadow: 0 10px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
    --ring: rgba(217,145,82,0.5);
  }
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 50% -200px, var(--bg-2), transparent 70%),
    var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

header, section, footer {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.4em 0;
}

h1 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: 0.5px; }
h2 { font-size: clamp(22px, 3vw, 34px); }
.subtitle { color: var(--muted); margin-top: 4px; }

/* Header */
header {
  padding-top: clamp(20px, 4vw, 42px);
  padding-bottom: clamp(6px, 1.6vw, 10px);
}

/* Hero */
.hero {
  position: relative;
  margin-top: clamp(10px, 2vw, 14px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 245, 228, 0.7), rgba(255,255,255,0.6));
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--pad);
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 80% -150px, rgba(255,220,150,0.45), transparent 60%);
  pointer-events: none; /* sun glow */
}

.hero .text {
  padding: clamp(18px, 3.5vw, 40px);
  backdrop-filter: blur(2px);
}

.hero .text p {
  margin: 0 0 1rem 0;
  max-width: 60ch;
  color: var(--muted);
}

.hero .illustration {
  padding: clamp(12px, 2vw, 20px);
  display: flex;
  align-items: end;
  justify-content: center;
}

.hero .illustration img {
  width: min(420px, 90%);
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow);
  background: var(--card);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    background-position: 60% center;
  }
  .hero .illustration { display: none; }
}

/* CTAs */
.cta {
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 18px var(--ring);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.03); }
.cta:active { transform: translateY(0); filter: brightness(0.98); }

.cta.buy {
  background: linear-gradient(180deg, #2a6f8f, #225a73); /* sea accent */
  box-shadow: 0 8px 18px rgba(42,111,143,0.25);
}

/* Features */
.features {
  margin-top: clamp(28px, 5vw, 56px);
  padding-block: clamp(12px, 3vw, 28px);
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 18px;
}

.features li {
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 680px) {
  .features ul { grid-template-columns: 1fr; }
}

/* Downloads */
.download {
  margin-top: clamp(22px, 4.5vw, 48px);
  padding: clamp(16px, 3.8vw, 36px);
  background: linear-gradient(180deg, rgba(255,243,219,0.65), rgba(255,255,255,0.8));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download p { color: var(--muted); margin-top: 6px; }

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

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.download-link:hover { transform: translateY(-1px); background: #fffaf4; border-color: rgba(0,0,0,0.1); }

/* Multilang */
.multilang {
  margin-top: clamp(16px, 4vw, 40px);
  padding: clamp(12px, 3vw, 24px);
  color: var(--muted);
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(217,145,82,0.08), transparent 50%);
  border-radius: 8px;
}

/* Footer */
footer {
  margin-top: clamp(28px, 5vw, 60px);
  padding-block: 28px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}
footer a { color: var(--accent-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Focus states (a11y) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Small utilities */
.container { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--pad); }
.hide { display: none !important; }
