/* Millify — global styles (light brand theme derived from the logo) */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --ink: #14235f;            /* logo navy */
  --body: #4c5675;
  --muted: #7b849e;
  --border: #e5e9f4;
  --card: #ffffff;
  --blue: #24aef5;
  --purple: #8b3df2;
  --pink: #ef3d9a;
  --orange: #ff9f2e;
  --green: #3fc25c;
  --yellow: #ffd23e;
  --gradient: linear-gradient(115deg, #24aef5 0%, #8b3df2 52%, #ef3d9a 100%);
  --shadow-sm: 0 1px 2px rgba(20, 35, 95, 0.05), 0 4px 12px rgba(20, 35, 95, 0.06);
  --shadow-md: 0 6px 24px rgba(20, 35, 95, 0.10);
  --shadow-lg: 0 16px 48px rgba(20, 35, 95, 0.14);
  --radius: 18px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { width: 38px; height: auto; }
.logo .logo-dot {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.site-nav a {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.lang-switcher {
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237b849e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 30px 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-switcher:hover { border-color: var(--purple); }
[dir="rtl"] .lang-switcher {
  background-position: left 12px center;
  padding: 8px 14px 8px 30px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 14px 30px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 61, 242, 0.30);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(139, 61, 242, 0.38); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--purple); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 12% 0%, rgba(36, 174, 245, 0.10), transparent 65%),
    radial-gradient(640px 420px at 88% 20%, rgba(239, 61, 154, 0.08), transparent 65%),
    radial-gradient(520px 380px at 55% 110%, rgba(139, 61, 242, 0.07), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(139, 61, 242, 0.08);
  border: 1px solid rgba(139, 61, 242, 0.22);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18.5px;
  max-width: 540px;
  margin: 22px 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: min(380px, 80%);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(20, 35, 95, 0.16));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.px {
  position: absolute;
  border-radius: 4px;
  opacity: 0.9;
  animation: floaty 6s ease-in-out infinite;
}
.px-1  { width: 14px; height: 14px; background: var(--blue);   top: 8%;    inset-inline-start: 6%;  animation-delay: -1s; }
.px-2  { width: 10px; height: 10px; background: var(--pink);   bottom: 12%; inset-inline-start: 14%; animation-delay: -3s; }
.px-3  { width: 12px; height: 12px; background: var(--orange); top: 18%;   inset-inline-end: 8%;    animation-delay: -2s; }
.px-4  { width: 8px;  height: 8px;  background: var(--purple); bottom: 6%; inset-inline-end: 16%;   animation-delay: -4.5s; }
.px-5  { width: 9px;  height: 9px;  background: var(--green);  top: 44%;   inset-inline-start: 2%;  animation-delay: -2.5s; animation-duration: 7.5s; }
.px-6  { width: 6px;  height: 6px;  background: var(--blue);   top: 3%;    inset-inline-end: 30%;   animation-delay: -5s;   animation-duration: 5.5s; opacity: 0.7; }
.px-7  { width: 11px; height: 11px; background: var(--yellow); top: 58%;   inset-inline-end: 3%;    animation-delay: -1.8s; animation-duration: 6.6s; }
.px-8  { width: 7px;  height: 7px;  background: var(--pink);   top: 28%;   inset-inline-start: 12%; animation-delay: -3.6s; animation-duration: 5.2s; opacity: 0.75; }
.px-9  { width: 6px;  height: 6px;  background: var(--orange); bottom: 30%; inset-inline-end: 12%;  animation-delay: -0.8s; animation-duration: 7.2s; opacity: 0.7; }
.px-10 { width: 9px;  height: 9px;  background: var(--green);  bottom: 2%; inset-inline-start: 32%; animation-delay: -3.8s; animation-duration: 6.2s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}
.section-head p {
  font-size: 17px;
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---------- App cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.app-icon svg { width: 30px; height: 30px; }
.app-icon-u { background: linear-gradient(135deg, #ff9f2e, #ef3d5e); }
.app-icon-a { background: linear-gradient(135deg, #24aef5, #8b3df2); }

.app-card h3 { font-size: 24px; font-weight: 800; }
.app-card .app-tag {
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 14px;
}
.app-card .app-desc { font-size: 15.5px; }

.app-card ul {
  list-style: none;
  margin: 20px 0 26px;
  display: grid;
  gap: 11px;
}
.app-card ul li {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.app-card ul li .check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--blue);
}

.app-card .app-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Feature / value cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.feature-card .fc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 174, 245, 0.10);
  color: var(--blue);
  margin-bottom: 16px;
}
.feature-card:nth-child(2) .fc-icon { background: rgba(139, 61, 242, 0.10); color: var(--purple); }
.feature-card:nth-child(3) .fc-icon { background: rgba(239, 61, 154, 0.10); color: var(--pink); }
.feature-card .fc-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }

.about-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-size: 17px;
  display: grid;
  gap: 16px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--gradient);
  color: #fff;
}
.cc-icon svg { width: 24px; height: 24px; }
.cc-label {
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cc-email {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.contact-card:hover .cc-email {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #101c4d;
  color: #aab4d4;
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}
.site-footer .logo { color: #fff; }
.footer-brand p { font-size: 14.5px; margin-top: 12px; max-width: 300px; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7f8ab3;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #ccd4ec; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 48px;
  padding-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: #7f8ab3;
}

/* ---------- App detail pages ---------- */
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  text-align: center;
}
.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 360px at 50% -10%, rgba(139, 61, 242, 0.08), transparent 70%);
  pointer-events: none;
}
.app-hero .app-icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 26px;
}
.app-hero .app-icon svg { width: 44px; height: 44px; }
.app-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
.app-hero .app-tag { color: var(--purple); font-size: 17px; font-weight: 700; margin-top: 12px; }

.app-body {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 96px;
  display: grid;
  gap: 18px;
  font-size: 16.5px;
}
.app-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 24px;
}
.app-body ul { list-style: none; display: grid; gap: 12px; }
.app-body ul li {
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.app-body ul li .check {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 4px;
  color: var(--blue);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: 64px 24px 104px;
}
.legal h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
}
.legal .effective { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 38px 0 12px;
}
.legal p, .legal li { color: var(--body); font-size: 15.5px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-inline-start: 24px; margin: 10px 0 16px; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
}
.back-link:hover { color: var(--ink); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual img { width: min(280px, 66%); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; height: 64px; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
