:root {
  --bg-0: #ffffff;
  --bg-1: #eef6ff;
  /* light blue */
  --bg-2: #f7fbff;
  --text: #0b1220;
  /* very dark blue */
  --muted: #5b6a86;
  --brand: #1a8cff;
  /* crypto-ish neon blue */
  --brand-2: #5ac8fa;
  /* light aqua */
  --card: rgba(255, 255, 255, 0.7);
  --border: rgba(10, 44, 86, 0.08);
  --shadow: 0 10px 30px rgba(22, 119, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, var(--bg-1), transparent 60%),
    radial-gradient(1200px 800px at 10% 10%, var(--bg-2), transparent 60%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 20px 80px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
}

.brand .logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.brand .logo img {
  height: 20px;
  width: auto;
  display: block;
}

.brand .name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 12px;
}

.btn-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}

.btn-primary {
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  font-size: inherit;
  /* ensuring button element looks same as a tag */
}

/* Common Typography & Layout */
h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* specific h1 override for subpages if needed, though clamp usually handles it well enough. 
   Privacy/Support had: font-size: clamp(28px,4vw,40px); line-height: 1.1; margin: 24px 0 8px; 
   Let's keep the index one as primary but maybe add a class or just let clamp handle it. 
   Actually, let's include the subpage differences specifically if they feel distinct enough.
   For now I'll stick to the index styles as base.
*/

.grad {
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 10px 0 22px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 54ch;
}

/* Support/Privacy .sub had slightly different margin/color usage, unifying largely works. */

h2 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

p {
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Increased line-height from 1.6 to 1.75 */

/* Cards */
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  /* Increased padding from 28px to 32px */
}

/* Home Page Specifics */
.hero {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Increased gap from 16px to 24px */
.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

/* Increased padding from 16px to 20px */
.icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.feat h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mock {
  height: 100%;
  display: grid;
  place-items: center;
}

.phone {
  width: min(380px, 90%);
  aspect-ratio: 9/19.5;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(26, 140, 255, 0.15);
  position: relative;
}

.phone:before {
  /* notch */
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 16px;
  border-radius: 10px;
  background: #dfe9f6;
  border: 1px solid var(--border);
}

.phone .screen {
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), rgba(90, 200, 250, 0.06)),
    radial-gradient(600px 300px at 80% 0%, rgba(26, 140, 255, 0.18), transparent 60%),
    white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.screen h2 {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.appshot {
  width: min(300px, 85%);
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(26, 140, 255, 0.18);
  border: 1px solid var(--border);
}

/* Privacy/Content Pages */
ul {
  margin: 8px 0 16px 18px;
  color: var(--text);
}

li {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* Support Form */
form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.consent label {
  margin: 0;
  font-weight: 500;
}

.success {
  display: none;
  margin-top: 10px;
  color: #0a7f2e;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .wrap {
    padding: 28px 18px 60px;
  }
}

@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr;
  }
}