:root{
  --navy:#16358b;
  --blue:#3b82f6;
  --bg:#f6f9ff;
  --text:#183153;
  --muted:#667890;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

header{
  min-height:72px;
  background:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 7%;
  box-shadow:0 2px 12px #d6e1f5;
  position:sticky;
  top:0;
  z-index:10;
}

.logo{
  font-weight:800;
  color:var(--navy);
  font-size:22px;
  text-decoration:none;
}

nav a{
  margin-left:22px;
  color:#30415f;
  text-decoration:none;
  font-weight:600;
}

.lang-switch button{
  margin-left:6px;
  padding:6px 10px;
  border:0;
  border-radius:8px;
  background:var(--navy);
  color:white;
  cursor:pointer;
}

.hero{
  text-align:center;
  padding:80px 7% 55px;
  background:linear-gradient(180deg,#f2f7ff,#fff);
}

.hero h1{
  font-size:54px;
  line-height:1.05;
  margin:0;
  color:var(--navy);
}

.hero p{
  font-size:20px;
  color:#435a78;
}

.hero input{
  max-width:680px;
  width:100%;
  padding:21px 26px;
  border:0;
  border-radius:16px;
  box-shadow:0 12px 30px #d8e2f6;
  font-size:17px;
}

.tabs{
  margin:-28px auto 40px;
  max-width:1100px;
  background:white;
  border-radius:16px;
  box-shadow:0 12px 28px #d8e2f6;
  display:flex;
  gap:10px;
  justify-content:space-around;
  padding:18px;
  flex-wrap:wrap;
}

.tabs span{
  font-weight:700;
  color:#334766;
}

.section{
  padding:30px 7%;
}

.section h2{
  font-size:32px;
  color:var(--navy);
  margin-bottom:5px;
}

.section>p{
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(255px,1fr));
  gap:24px;
  margin-top:28px;
}

.card,
.tool-card{
  background:white;
  border:1px solid #e7edf7;
  border-radius:18px;
  padding:28px;
  text-decoration:none;
  color:var(--text);
  box-shadow:0 12px 35px #d6e1f255;
  transition:.2s;
  display:block;
}

.card:hover,
.tool-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 44px #c7d8f3;
}

.card div{
  font-size:28px;
  background:#edf5ff;
  color:var(--blue);
  display:inline-grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:14px;
  margin-bottom:18px;
}

.card h3,
.tool-card h3{
  color:var(--navy);
  font-size:22px;
  margin:0 0 10px;
}

.card p,
.tool-card p{
  color:var(--muted);
  min-height:44px;
}

.card b,
.tool-card a{
  display:block;
  text-align:center;
  background:#f3f7fc;
  color:var(--navy);
  padding:14px;
  border-radius:10px;
  margin-top:14px;
  text-decoration:none;
  font-weight:800;
}

.info{
  background:white;
  border-radius:22px;
  padding:34px;
  box-shadow:0 12px 35px #d6e1f255;
  margin-top:24px;
}

details{
  background:#f7faff;
  margin:12px 0;
  padding:16px;
  border-radius:12px;
}

footer{
  text-align:center;
  padding:32px;
  background:#112554;
  color:white;
  margin-top:40px;
}

/* RTL language support */
body[dir="rtl"]{
  direction:rtl;
  text-align:right;
}

body[dir="rtl"] nav a{
  margin-left:0;
  margin-right:22px;
}

@media(max-width:800px){
  header{
    height:auto;
    display:block;
    text-align:center;
    padding:18px;
  }

  nav{
    margin-top:12px;
  }

  nav a{
    margin:0 8px;
  }

  .hero h1{
    font-size:34px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .lang-switch{
    margin-top:12px;
  }
}