:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8faff;
  --text: #172033;
  --muted: #667085;
  --line: #e3e8f2;
  --brand: #315efb;
  --brand-strong: #2447c7;
  --brand-soft: #e9eeff;
  --accent: #11a68a;
  --dark: #101828;
  --dark-soft: #1d2939;
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  --radius-sm: 12px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0 !important;
  background:
    radial-gradient(circle at 8% 6%, rgba(75, 111, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 94% 22%, rgba(17, 166, 138, 0.1), transparent 22rem),
    var(--bg) !important;
  color: var(--text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-strong);
}

header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.75rem, 7vw, 5.5rem) 1.25rem clamp(2.5rem, 6vw, 4.75rem) !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(105, 137, 255, 0.46), transparent 23rem),
    radial-gradient(circle at 81% 88%, rgba(20, 194, 158, 0.24), transparent 24rem),
    linear-gradient(135deg, #101828 0%, #182844 52%, #13243b 100%) !important;
  color: #ffffff !important;
  text-align: center;
}

header::before,
header::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

header::before {
  width: 34rem;
  height: 34rem;
  top: -27rem;
  right: -12rem;
}

header::after {
  width: 22rem;
  height: 22rem;
  bottom: -17rem;
  left: -7rem;
}

header > * {
  position: relative;
  z-index: 1;
}

header > img {
  flex: 0 0 auto;
  margin-right: auto !important;
  margin-left: auto !important;
}

header img:not(.app-icon) {
  display: block;
  width: min(142px, 38vw) !important;
  height: auto;
  margin: 0 auto 1.15rem !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

header h1 {
  max-width: 920px;
  margin: 0 auto !important;
  color: #ffffff !important;
  font-size: clamp(2.15rem, 5vw, 4.15rem) !important;
  font-weight: 760;
  letter-spacing: -0.055em !important;
  line-height: 1.04;
}

header p {
  max-width: 680px;
  margin: 0.85rem auto 0 !important;
  color: #d8e2f2 !important;
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
  line-height: 1.55;
}

header p a {
  color: #ffffff;
}

main {
  width: min(100% - 2.5rem, 1180px) !important;
  max-width: none !important;
  margin: clamp(2rem, 5vw, 5rem) auto !important;
  padding: 0 !important;
}

section {
  margin-bottom: clamp(1.5rem, 4vw, 3.25rem) !important;
}

h2,
h3,
h4 {
  margin-top: 0;
  color: var(--text) !important;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem) !important;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

p,
li {
  color: var(--muted) !important;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

strong {
  color: var(--text) !important;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.5rem;
}

li::marker {
  color: var(--brand);
}

main > #about,
main > #mission,
main > #why,
main > #notice,
main > #legal,
main > #account,
main > #support,
main > #terms,
main > section:not(#apps):not(#features):not(#plans):not(#privacy):not(#about):not(#mission):not(#why):not(#notice):not(#legal):not(#account):not(#support):not(#terms) {
  padding: clamp(1.4rem, 3vw, 2.35rem);
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(227, 232, 242, 0.9) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
}

main > #about {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.9)) !important;
}

main > #mission {
  border-left: 4px solid var(--accent) !important;
}

.app-card,
.card,
main > div > section {
  padding: clamp(1.2rem, 3vw, 1.7rem) !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 94, 251, 0.28) !important;
  box-shadow: var(--shadow) !important;
}

.app-icon {
  display: block;
  width: 48px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 1rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 15px;
  box-shadow: 0 9px 20px rgba(16, 24, 40, 0.14);
}

header .app-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 0.85rem !important;
  border-radius: 18px;
}

#apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

#apps > h2,
#features > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
}

#apps .app-card {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

#apps .app-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
  border-radius: 10px;
}

#apps .app-card p {
  margin-bottom: 0.8rem;
}

#apps .app-card ul {
  margin: 0 0 1.5rem;
}

#apps .button {
  margin-top: auto;
  align-self: flex-start;
}

#features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

#features > ul,
#plans,
#privacy,
#account,
#support {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#features > ul {
  grid-column: 1 / -1;
  margin: 0;
}

.app-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem !important;
}

.button,
.primary-button,
.action-button,
button.primary,
.header-actions a.button,
.header-actions button,
.lang-toggle button,
.lang-toggle a,
header button,
header a.button {
  display: inline-flex !important;
  min-height: 52px;
  padding: 0.875rem 1.375rem !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 12px !important;
  font: inherit;
  font-weight: 720 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button,
.primary-button,
.action-button,
button.primary {
  background: linear-gradient(135deg, var(--brand), #5279ff) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(49, 94, 251, 0.22);
}

.button:hover,
.primary-button:hover,
.action-button:hover,
button.primary:hover {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand)) !important;
  color: #ffffff !important;
  box-shadow: 0 13px 26px rgba(49, 94, 251, 0.3);
  transform: translateY(-2px);
}

.secondary-button,
.header-actions a.button,
.header-actions button,
.lang-toggle button,
.lang-toggle a,
header button,
header a.button {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.76) !important;
  color: var(--dark) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.secondary-button:hover,
.header-actions a.button:hover,
.header-actions button:hover,
.lang-toggle button:hover,
.lang-toggle a:hover,
header button:hover,
header a.button:hover {
  color: var(--brand-strong) !important;
  background: #ffffff !important;
  transform: translateY(-2px);
}

.header-actions,
.lang-toggle,
header .buttons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem !important;
  margin: 1.25rem auto 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.75rem;
  background: var(--brand-soft) !important;
  border: 1px solid #d4deff;
  border-radius: 999px !important;
  color: var(--brand-strong) !important;
  font-size: 0.83rem;
  font-weight: 720;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border: 1px solid #cfd7e6 !important;
  border-radius: 10px !important;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.13);
  outline: none;
}

label {
  color: var(--text);
  font-weight: 700;
}

table {
  width: 100%;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f4f7ff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
}

tbody tr:nth-child(even) {
  background: #fbfcff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.notice,
.status {
  padding: 0.9rem 1rem;
  border: 1px solid #cfe2ff;
  border-radius: var(--radius-sm);
  background: #eff6ff;
}

.hidden {
  display: none !important;
}

footer {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem !important;
  background: var(--dark) !important;
  color: #cbd5e1 !important;
  text-align: center;
}

footer::before {
  position: absolute;
  top: -12rem;
  left: 50%;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(157, 180, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

footer > * {
  position: relative;
}

footer a {
  color: #afc5ff !important;
}

footer p,
footer div {
  color: #cbd5e1 !important;
}

footer strong {
  color: #ffffff !important;
}

@media (max-width: 900px) {
  #apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  main {
    width: min(100% - 1.25rem, 1180px) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2.75rem !important;
  }

  header {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  header h1 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  header img:not(.app-icon) {
    width: min(124px, 44vw) !important;
    margin-bottom: 0.9rem !important;
  }

  header .app-icon {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 0.7rem !important;
  }

  header p {
    max-width: 34ch;
  }

  section {
    margin-bottom: 1.25rem !important;
  }

  main > #about,
  main > #mission,
  main > #why,
  main > #notice,
  main > #legal,
  main > #account,
  main > #support,
  main > #terms,
  main > section:not(#apps):not(#features):not(#plans):not(#privacy):not(#about):not(#mission):not(#why):not(#notice):not(#legal):not(#account):not(#support):not(#terms),
  .app-card,
  .card,
  main > div > section,
  #features > ul,
  #plans,
  #privacy,
  #account,
  #support {
    padding: 1.15rem !important;
    border-radius: 16px !important;
  }

  #apps {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

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

  main .button,
  main .primary-button,
  main .action-button,
  main button.primary {
    width: 100%;
  }

  #apps .app-icon {
    width: 32px !important;
    height: 32px !important;
  }

  ul,
  ol {
    padding-left: 1.15rem;
  }

  li + li {
    margin-top: 0.4rem;
  }

  .header-actions > *,
  .lang-toggle > *,
  header .buttons > * {
    flex: 1 1 100%;
  }

  th,
  td {
    padding: 0.75rem;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (hover: none) {
  .app-card:hover,
  .button:hover,
  .primary-button:hover,
  .action-button:hover,
  button.primary:hover {
    transform: none;
  }
}
