/* AdatVPN — walnut, brass inlay and Kubachi arabesque, the same palette as the app. */

:root {
  --walnut-high: #3a2418;
  --walnut-mid: #261710;
  --walnut-low: #150c08;
  --walnut-flat: #1c110b;
  --walnut-text: #1f130d;
  --brass: #c99a47;
  --brass-bright: #e8c173;
  --brass-deep: #8e6a2b;
  --ivory: #f4e9d8;
  --sand: #d9c4a5;
  --moss: #93b56c;
  --serif: ui-serif, "New York", "Iowan Old Style", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --content: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ivory);
  background: var(--walnut-low);
  background-image: linear-gradient(180deg, var(--walnut-high) 0, var(--walnut-mid) 38rem, var(--walnut-low) 80rem);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: rgba(232, 193, 115, 0.5); }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: 0.005em; }

.wrap { width: min(var(--content), 100% - 2.5rem); margin: 0 auto; }

/* Review mode: hide every path to obtaining a key. Remove the class from <body> to show them again. */
.hide-key .key-cta { display: none !important; }

/* Header */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ivory); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(201, 154, 71, 0.45); }

.top nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.top nav a { color: var(--sand); }
.top nav .btn { color: var(--ivory); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* Buttons and chips */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }

.btn-primary {
  color: var(--walnut-text);
  background: linear-gradient(135deg, var(--brass-bright), var(--brass) 55%, var(--brass-deep));
  box-shadow: 0 10px 26px rgba(142, 106, 43, 0.35), inset 0 0 0 1px rgba(232, 193, 115, 0.55);
}

.btn-ghost {
  color: var(--ivory);
  background: rgba(244, 233, 216, 0.06);
  border: 1px solid rgba(201, 154, 71, 0.32);
}
.btn-ghost:hover { background: rgba(244, 233, 216, 0.1); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.chips li {
  font-size: 0.85rem; color: var(--sand);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(244, 233, 216, 0.05); border: 1px solid rgba(201, 154, 71, 0.25);
}

/* Hero */

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem;
  padding: 3.5rem 0 3rem;
}
.hero::before {
  /* the medallion, faint, behind the phone — the same halo the connect button wears */
  content: ""; position: absolute; z-index: -1;
  right: -6%; top: 50%; width: 46rem; height: 46rem; transform: translateY(-50%);
  background: url("ornament.png") center / contain no-repeat; opacity: 0.16;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -2;
  right: 4%; top: 50%; width: 36rem; height: 36rem; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(201, 154, 71, 0.28), transparent);
  pointer-events: none;
}

.eyebrow { margin: 0 0 1rem; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--brass-bright); }

.lead { margin: 1.3rem 0 1.8rem; font-size: 1.15rem; color: var(--sand); max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.phone {
  margin: 0; justify-self: center;
  width: min(300px, 78vw); padding: 10px; border-radius: 46px;
  background: #0b0705; border: 1px solid rgba(201, 154, 71, 0.55);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(201, 154, 71, 0.15);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; text-align: center; }
  .lead { margin-inline: auto; }
  .actions, .chips { justify-content: center; }
  .hero::before { right: 50%; top: auto; bottom: -8rem; width: 30rem; height: 30rem; transform: translateX(50%); }
  .hero::after { display: none; }
}

/* Carpet border between the hero and the rest */

.frieze {
  height: 16px; width: min(34rem, 80%); margin: 0.5rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath d='M0 8h28' stroke='%23c99a47' stroke-opacity='.55'/%3E%3Cpath d='M14 4l4 4-4 4-4-4z' fill='%23c99a47'/%3E%3Cpath d='M14 4V2M11.5 2h5M14 12v2M11.5 14h5' stroke='%23c99a47' stroke-opacity='.8' fill='none'/%3E%3Ccircle cx='0' cy='8' r='1.2' fill='%23c99a47' fill-opacity='.8'/%3E%3Ccircle cx='28' cy='8' r='1.2' fill='%23c99a47' fill-opacity='.8'/%3E%3C/svg%3E") center / 28px 16px repeat-x;
}

/* Sections */

.section { padding: 3.5rem 0 0; }
.section:last-of-type { padding-bottom: 3.5rem; }

.section-title {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.6rem; font-size: 1.5rem; color: var(--sand);
}
.section-title::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--brass); transform: rotate(45deg); }
.section-title::after { content: ""; flex: 1; height: 1px; background: rgba(201, 154, 71, 0.22); }

/* Panels: brass hairline with a fainter line inside, like an inlaid frame */

.card {
  background: rgba(244, 233, 216, 0.05);
  border: 1px solid rgba(201, 154, 71, 0.28);
  border-radius: var(--radius);
  outline: 1px solid rgba(201, 154, 71, 0.1);
  outline-offset: -4px;
  padding: 1.5rem 1.5rem 1.4rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; color: var(--ivory); }
.card p { margin: 0; color: var(--sand); font-size: 0.98rem; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 1.7rem; }
.steps .num {
  position: absolute; top: -1rem; left: 1.5rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; color: var(--walnut-text);
  background: linear-gradient(135deg, var(--brass-bright), var(--brass-deep));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Feature grid */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid .card { padding-top: 1.35rem; }
.grid h3 { display: flex; align-items: flex-start; gap: 0.6rem; }
.grid h3::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; margin-top: 0.55em; background: var(--brass); transform: rotate(45deg); }

@media (max-width: 860px) { .steps, .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .grid { grid-template-columns: 1fr; } }

/* Privacy strip */

.privacy .card { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; color: var(--sand); }
.bullets li { display: flex; gap: 0.7rem; align-items: baseline; }
.bullets li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; background: var(--moss); transform: rotate(45deg) translateY(-0.1rem); }
@media (max-width: 720px) { .privacy .card { grid-template-columns: 1fr; } }

/* FAQ */

.faq { display: grid; gap: 0.6rem; }
.faq details { padding: 0 1.4rem; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; font-weight: 600; color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 0.2rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--sand); }

/* Footer */

footer {
  border-top: 1px solid rgba(201, 154, 71, 0.18);
  padding: 1.6rem 0 2.4rem; font-size: 0.9rem; color: var(--sand);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.5rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer nav a { color: var(--sand); }

/* Policy page */

.policy { padding: 2rem 0 3.5rem; max-width: 44rem; }
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.policy .meta { color: var(--brass); margin: 0.6rem 0 2rem; font-size: 0.9rem; }
.policy h2 { font-size: 1.2rem; margin: 1.9rem 0 0.5rem; color: var(--ivory); }
.policy p { margin: 0 0 0.8rem; color: var(--sand); }
.policy .card { margin-top: 1.5rem; }
.policy .lang { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 154, 71, 0.18); }
