:root {
  --navy: #08467b;
  --navy-deep: #073e70;
  --blue: #0875c8;
  --cyan: #0ea9dc;
  --ink: #002f49;
  --muted: #596d7b;
  --surface: #f4f7fb;
  --line: #e4edf3;
  --white: #ffffff;
  --shadow: 0 14px 32px rgba(15, 60, 91, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: white;
}

.header-inner {
  width: min(1460px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  max-width: 210px;
  height: 45px;
  object-fit: contain;
  object-position: left center;
}

.brand-fallback {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.header-login,
.header-private {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.header-login {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
}

.header-private {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-login:hover,
.header-private:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: 830px;
  color: #fff;
  background: linear-gradient(115deg, #074778 0%, #0c5798 43%, #0876c9 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 11% 18%,
      rgba(255, 255, 255, 0.04),
      transparent 24%
    ),
    radial-gradient(
      circle at 80% 28%,
      rgba(255, 255, 255, 0.05),
      transparent 26%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1260px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 245px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  gap: 94px;
  align-items: start;
}

.hero-copy h1 {
  font-size: 55px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 36px;
}

.app-promo {
  display: flex;
  align-items: center;
  margin-bottom: 38px;
}

.app-mark {
  display: inline-flex;
  align-items: center;
}

.app-mark img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.play-circle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 13px;
  padding-left: 2px;
}

.converter-wrap {
  padding-top: 70px;
}

.rate-heading {
  font-size: 14px;
  margin-bottom: 14px;
}

.rate-heading strong {
  font-weight: 700;
}

.converter-field {
  height: 58px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  border-radius: 7px;
  background: #fff;
  color: #133044;
  overflow: hidden;
}

.currency-label {
  height: 34px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid #b6c3cd;
}

.currency-label.has-chevron {
  gap: 10px;
}

.converter-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 22px;
  font-size: 15px;
  color: #354b5b;
}

.converter-field input::placeholder {
  color: #9b9b9b;
}

.swap-button {
  width: 40px;
  height: 40px;
  margin: 14px auto;
  display: block;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.rate-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.info-dot {
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 33px;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  z-index: 4;
}

.hero-dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  background: #fff;
}

.flag {
  position: relative;
  width: 28px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.flag-uae {
  background: linear-gradient(
    #169b62 0 33.33%,
    #fff 33.33% 66.66%,
    #111 66.66%
  );
}

.flag-uae::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: #ff2d41;
}

.flag-india {
  background: linear-gradient(
    #ff9933 0 33.33%,
    #fff 33.33% 66.66%,
    #138808 66.66%
  );
}

.flag-india::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #1a3c8f;
}

.flag.large {
  width: 42px;
  height: 28px;
}

.flag.rectangle {
  width: 44px;
  height: 28px;
  border-radius: 0;
}

.flag-morocco {
  background: #c8102e;
}

.flag-morocco::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0b8e4c;
  font-size: 14px;
}

.flag-nepal {
  background: linear-gradient(
    135deg,
    #d6243b 0 50%,
    #284a9e 50% 62%,
    #fff 62% 67%,
    transparent 67%
  );
}

.flag-pakistan {
  background: linear-gradient(90deg, #fff 0 22%, #0b6b38 22% 100%);
}

.flag-pakistan::after {
  content: "☾";
  position: absolute;
  right: 7px;
  top: 1px;
  color: #fff;
  font-size: 19px;
}

.flag-singapore {
  background: linear-gradient(#ef3340 0 50%, #fff 50%);
}

.rates-and-presence {
  position: relative;
  background: #f4f7fb;
  padding: 178px 24px 86px;
}

.rate-card-shell {
  position: absolute;
  left: 50%;
  top: -108px;
  width: min(1490px, calc(100% - 72px));
  transform: translateX(-50%);
}

.rate-card {
  min-height: 200px;
  padding: 28px 42px 30px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(14, 47, 76, 0.08);
}

.rate-card h2 {
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 500;
}

.rate-card-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr) 54px;
  align-items: stretch;
}

.base-rate,
.rate-item {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.base-rate {
  gap: 18px;
  padding: 0 40px;
  border: 1px solid #e9eff4;
  border-radius: 7px;
  background: #fbfcfe;
}

.base-rate strong {
  font-size: 20px;
}

.base-rate strong span {
  font-size: 16px;
  font-weight: 500;
}

.rate-item {
  position: relative;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
}

.rate-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #edf1f4;
}

.rate-item > div > span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #5c5c5c;
}

.rate-item strong {
  font-size: 19px;
  color: #111;
}

.rate-item em {
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.rate-arrows {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 1px solid #e7edf2;
  border-radius: 7px;
  overflow: hidden;
}

.rate-arrows button {
  border: 0;
  background: #fff;
  font-size: 32px;
  cursor: pointer;
  color: #0e1114;
}

.rate-arrows button + button {
  border-top: 1px solid #edf1f4;
}

.presence-content {
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.presence-content h2 {
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-weight: 800;
}

.presence-content > p {
  max-width: 900px;
  margin: 0 auto 34px;
  font-size: 17px;
  line-height: 1.55;
}

.presence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 52px;
}

.presence-stat {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.presence-stat + .presence-stat {
  border-left: 1px solid #e7edf1;
}

.presence-stat strong {
  color: #08a9db;
  font-size: 31px;
  font-weight: 500;
}

.presence-stat span {
  font-size: 15px;
  font-weight: 700;
}

.outline-button {
  min-width: 220px;
  height: 50px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0fa9dc;
  border-radius: 999px;
  background: #fff;
  color: #07344f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.outline-button:hover {
  background: #0fa9dc;
  color: #fff;
}

.whats-new {
  background: #f4f7fb;
  padding: 92px 24px 82px;
}

.section-inner {
  width: min(1460px, 100%);
  margin: 0 auto;
  text-align: center;
}

.whats-new h2 {
  text-align: left;
  font-size: clamp(38px, 3.4vw, 52px);
  margin-bottom: 66px;
  letter-spacing: -0.03em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  margin-bottom: 64px;
  text-align: left;
}

.news-card {
  min-width: 0;
  background: white;
  box-shadow: 0 8px 30px rgba(13, 63, 95, 0.04);
  padding-bottom: 34px;
}

.news-image {
  position: relative;
  aspect-ratio: 1.93 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #216f9f, #d8e8f1);
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-image img[src=""],
.news-image img:not([src]) {
  display: none;
}

.news-image-2 {
  background: linear-gradient(135deg, #d7c5ad, #f0e1c5);
}

.news-image-3 {
  background: linear-gradient(135deg, #1f5489, #77b0d3);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 34px 0;
}

.news-meta span {
  color: #0baae0;
  font-weight: 700;
}

.news-meta time {
  color: #98a3ac;
  font-weight: 600;
}

.news-card h3 {
  min-height: 86px;
  padding: 22px 34px 0;
  color: #171717;
  font-size: 16px;
  line-height: 1.35;
}

.news-card > a {
  display: inline-block;
  margin: 28px 34px 0;
  color: #07344f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.news-card > a:hover {
  color: #0aa8dc;
}

.knowledge-section {
  padding: 78px 24px 96px;
  background: #f4f7fb;
}

.knowledge-card {
  position: relative;
  width: min(1500px, 100%);
  min-height: 610px;
  margin: 0 auto;
  border-radius: 38px;
  overflow: hidden;
  color: white;
  background: linear-gradient(110deg, #074679 0%, #0b5c9f 55%, #0878cd 100%);
}

.knowledge-header {
  position: relative;
  z-index: 3;
  padding: 44px 40px 0;
  text-align: center;
}

.knowledge-header h2 {
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.knowledge-header p {
  font-size: 19px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: end;
  gap: 30px;
  padding: 40px 76px 0;
}

.newsletter-copy {
  padding: 42px 0 82px;
  text-align: center;
}

.newsletter-copy h3 {
  font-size: clamp(30px, 3vw, 42px);
  margin-bottom: 12px;
}

.newsletter-copy > p {
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.35;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.newsletter-form input {
  height: 47px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  outline: none;
}

.newsletter-form button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 185px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: #050505;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.phone-art {
  align-self: end;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 270px;
  height: 510px;
  padding: 8px;
  border: 4px solid #252525;
  border-radius: 42px 42px 0 0;
  background: #0f1012;
  box-shadow: 0 0 0 2px #6d6d6d inset;
}

.phone-island {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #090909;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px 32px 0 0;
  background: #033f6c;
  display: flex;
  flex-direction: column;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  padding: 38px 18px 0;
  font-size: 9px;
}

.phone-logo {
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.phone-logo > span {
  grid-row: 1 / 3;
  font-size: 44px;
}

.phone-logo strong {
  font-size: 28px;
  line-height: 0.9;
  font-weight: 500;
}

.phone-logo small {
  grid-column: 1 / -1;
  font-size: 7px;
  letter-spacing: 0.16em;
  text-align: center;
}

.site-footer {
  padding: 46px 24px;
  background: #073e70;
  color: #fff;
}

.footer-inner {
  width: min(1460px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .hero-inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
  }

  .rate-card-grid {
    overflow-x: auto;
    grid-template-columns: 260px repeat(4, 250px) 54px;
    padding-bottom: 6px;
  }
}

@media (max-width: 1040px) {
  .header-inner {
    width: min(100% - 36px, 1460px);
    min-height: 82px;
  }

  .brand img {
    height: 50px;
    max-width: 190px;
  }

  .hero {
    min-height: 980px;
  }

  .hero-inner {
    width: min(100% - 44px, 850px);
    padding-top: 165px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .converter-wrap {
    width: min(100%, 620px);
    padding-top: 0;
  }

  .rate-card-shell {
    width: calc(100% - 32px);
  }

  .rate-card {
    padding: 24px;
  }

  .news-grid {
    gap: 22px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr 0.6fr;
    padding-inline: 44px;
  }

  .phone-frame {
    width: 230px;
  }
}

@media (max-width: 820px) {
  .brand {
    width: auto;
    min-width: 0;
  }

  .brand img {
    height: 48px;
    max-width: 170px;
  }

  .hero {
    min-height: 1080px;
  }

  .hero-inner {
    padding-top: 145px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .rates-and-presence {
    padding-top: 170px;
  }

  .presence-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .presence-stat + .presence-stat {
    border-left: 0;
    border-top: 1px solid #e7edf1;
    padding-top: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .news-card h3 {
    min-height: auto;
  }

  .knowledge-card {
    border-radius: 28px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
    padding: 22px 28px 0;
  }

  .newsletter-copy {
    padding-bottom: 28px;
  }

  .phone-frame {
    width: 250px;
    height: 420px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 26px);
    min-height: 76px;
    gap: 12px;
  }

  .brand img {
    height: 42px;
    max-width: 150px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-login,
  .header-private {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 1030px;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 125px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .store-button {
    width: 100%;
    padding-inline: 12px;
  }

  .store-button strong {
    font-size: 15px;
  }

  .converter-field {
    grid-template-columns: 125px 1fr;
  }

  .currency-label {
    padding-inline: 16px;
  }

  .rates-and-presence {
    padding-inline: 16px;
    padding-top: 170px;
  }

  .rate-card-shell {
    top: -92px;
    width: calc(100% - 20px);
  }

  .rate-card {
    min-height: 170px;
    padding: 18px;
  }

  .rate-card h2 {
    font-size: 18px;
  }

  .rate-card-grid {
    grid-template-columns: 220px repeat(4, 210px) 48px;
  }

  .presence-content h2 {
    font-size: 46px;
  }

  .whats-new {
    padding-inline: 16px;
  }

  .whats-new h2 {
    margin-bottom: 34px;
  }

  .news-meta,
  .news-card h3 {
    padding-inline: 20px;
  }

  .news-card > a {
    margin-left: 20px;
  }

  .knowledge-section {
    padding-inline: 12px;
  }

  .knowledge-header {
    padding-inline: 20px;
  }

  .knowledge-header h2 {
    font-size: 34px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    grid-column: auto;
  }
}

/* Logo sizing after final cleanup */
@media (max-width: 820px) {
  .app-mark img {
    height: 52px;
    max-width: 190px;
  }

  .footer-brand img {
    height: 40px;
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .app-mark img {
    height: 46px;
    max-width: 165px;
  }

  .footer-brand img {
    height: 36px;
    max-width: 160px;
  }
}
