/* Colours taken from the Linked Gate logo, used over dark photo backgrounds.
   Photos are from Unsplash (Unsplash License): see images/CREDITS.txt */
:root {
  --navy: #0a2848;
  --navy-deep: #061a31;
  --blue: #0d5ac2;
  --deep-blue: #092883;
  --sky: #8cc2ff;
  --white: #ffffff;
  --text: #f4f8ff;
  --muted: #d3deee;
  --line: rgba(160, 200, 255, 0.24);
  --panel: rgba(8, 34, 64, 0.72);
  --error: #ffc2b8;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
  overflow-wrap: break-word;
}

html[lang="ar"] body { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; line-height: 1.8; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 20; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(6, 26, 49, 0.95); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* white tile keeps the dark parts of the logo visible */
.brand img { width: 48px; height: auto; flex: none; background: var(--white); border-radius: 10px; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.brand-name { font: 700 1.1rem "Montserrat", "Segoe UI", sans-serif; letter-spacing: 0.06em; color: var(--white); }
.brand-tag { font: 500 0.72rem "Saira", "Segoe UI", sans-serif; letter-spacing: 0.02em; color: var(--sky); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.nav a:hover { color: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 700 0.9rem "Cairo", "Manrope", sans-serif; color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.lang:hover { border-color: var(--sky); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 800; text-align: center; text-decoration: none; color: var(--white); background: linear-gradient(135deg, #1170e0, var(--blue) 45%, var(--deep-blue)); border: 1px solid #4b97f0; border-radius: 999px; padding: 13px 28px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13, 90, 194, 0.5); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: rgba(6, 26, 49, 0.5); border-color: rgba(255, 255, 255, 0.55); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* Photo backgrounds: a navy layer sits over each photo so the text stays readable */
.hero,
#opportunities,
#models,
#signup { background-color: var(--navy-deep); background-size: cover; background-position: center; background-repeat: no-repeat; }

.hero {
  background-image:
    linear-gradient(180deg, rgba(6, 26, 49, 0.55), rgba(6, 26, 49, 0.62) 60%, var(--navy-deep)),
    url("images/bg-globe.jpg");
}
#opportunities {
  background-image:
    linear-gradient(rgba(7, 30, 56, 0.68), rgba(7, 30, 56, 0.74)),
    url("images/bg-handshake.jpg");
}
#models {
  background-image:
    linear-gradient(rgba(6, 28, 54, 0.76), rgba(6, 28, 54, 0.8)),
    url("images/bg-port.jpg");
}
#signup {
  background-image:
    linear-gradient(rgba(6, 24, 46, 0.7), rgba(6, 24, 46, 0.78)),
    url("images/bg-city.jpg");
}

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--sky); background: rgba(6, 26, 49, 0.65); color: var(--white); border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: 0.9rem; margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.hero h1, .hero-type, .lead { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.15; font-weight: 800; }
.accent { color: var(--sky); display: inline-block; }
.hero-type { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; margin-top: 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-top: 14px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-logo { text-align: center; }

/* Logo card: a small piece of sky with drifting clouds, gently floating */
.sky-card { position: relative; overflow: hidden; isolation: isolate; max-width: 370px; margin: 0 auto; padding: 40px 20px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.75); background: linear-gradient(180deg, #8cc6f2 0%, #bfe0f9 48%, #e9f5fd 100%); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45), 0 0 44px rgba(160, 210, 255, 0.35); animation: float 7s ease-in-out infinite; }
/* two cloud layers, each twice the card width so the drift loops without a jump */
.sky-card::before,
.sky-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; z-index: -1; background: url("images/clouds.svg") repeat-x 0 0 / 50% 100%; animation: drift 60s linear infinite; }
.sky-card::after { opacity: 0.55; transform-origin: top left; animation: drift-back 95s linear infinite; }
.sky-card img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(10, 40, 72, 0.2)); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes drift-back { from { transform: translateX(-50%) scaleY(-1) translateY(-100%); } to { transform: translateX(0) scaleY(-1) translateY(-100%); } }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
#about { background: radial-gradient(ellipse at 50% 0%, #12427a, var(--navy-deep) 75%); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.3; margin-bottom: 18px; }
h2 + p, .section p + p { color: var(--muted); }
.section .narrow p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

ul { list-style: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; backdrop-filter: blur(6px); transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--sky); transform: translateY(-4px); }
.card svg { width: 38px; height: 38px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { font-size: 1.08rem; line-height: 1.45; }

.investors { margin-top: 44px; text-align: center; }
.investors p { color: var(--muted); max-width: 700px; margin-inline: auto; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.pills li { border: 1px solid var(--sky); color: var(--white); background: var(--panel); border-radius: 999px; padding: 7px 22px; font-weight: 700; }
.hero-logo .pills li { font-size: 0.9rem; padding: 5px 18px; }

.models { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.models li { flex: 0 1 calc((100% - 64px) / 5); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 12px; backdrop-filter: blur(6px); }
.models abbr { font: 800 1.5rem "Manrope", "Segoe UI", sans-serif; color: var(--sky); }
.models span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.models-sub { text-align: center; font-size: 1.2rem; margin-top: 52px; }
.models-expand { margin-top: 22px; }
.models-expand li { border: 1px dashed rgba(160, 200, 255, 0.55); }

/* Sign-up */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-card { color-scheme: dark; background: rgba(7, 30, 56, 0.88); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); text-align: start; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--navy-deep); border: 1px solid #6d8bb5; border-radius: 10px; padding: 10px 14px; }
.field input { height: 50px; }
.field textarea { min-height: 110px; resize: vertical; }
html[dir="rtl"] #phone, html[dir="rtl"] #email { text-align: right; }
.field [aria-invalid="true"] { border-color: var(--error); }
.section .error { font-size: 0.85rem; margin-top: 4px; color: var(--error); }
.error:empty { display: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.section .status { margin-top: 14px; text-align: center; font-weight: 700; color: var(--sky); }
.status:empty { display: none; }
.section .form-note { margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.section .contact-email { margin-top: 6px; text-align: center; font-size: 0.92rem; color: var(--muted); }
.contact-email a { color: var(--sky); font-weight: 700; }

.form-note a { color: var(--sky); font-weight: 700; }

/* Privacy policy page */
.policy { padding: 48px 0 72px; background: radial-gradient(ellipse at 50% 0%, #12427a, var(--navy-deep) 55%); }
.policy h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.policy h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.policy p, .policy li { color: var(--muted); }
.policy p { margin-top: 10px; }
.policy ul { list-style: disc; padding-inline-start: 24px; margin-top: 8px; }
.policy li { margin-top: 6px; }
.policy a:not(.btn) { color: var(--sky); }
.policy strong { color: var(--text); }
.policy .updated { font-size: 0.9rem; margin-top: 4px; }
.policy .back { margin-top: 40px; }

/* Footer */
.footer { padding: 40px 0 24px; color: var(--muted); font-size: 0.92rem; background: var(--navy-deep); border-top: 1px solid var(--line); }
.footer .brand { margin-bottom: 10px; }
html[dir="rtl"] .footer .brand { justify-content: flex-end; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
html[dir="rtl"] .footer p[dir="ltr"] { text-align: right; }
html[dir="rtl"] .footer-row > div:last-child p { text-align: left; }
.footer a { color: var(--sky); }
.copyright { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; text-align: center; }

/* Tablet */
@media (max-width: 920px) {
  .nav { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero-grid, .signup-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: center; gap: 28px; }
  .hero-logo { order: -1; }
  .sky-card { max-width: 280px; padding: 28px 14px; border-radius: 26px; }
  .hero-logo { padding-top: 12px; }
  .hero-logo .pills { display: none; }
  .lead { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .models li { flex-basis: calc((100% - 32px) / 3); }
  .signup-grid { gap: 24px; max-width: 560px; text-align: center; }
}

/* Phone */
@media (max-width: 560px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .section { padding: 56px 0; }
  .header .brand { gap: 7px; }
  .header .brand img { width: 36px; padding: 3px; border-radius: 8px; }
  .header .brand-name { font-size: 0.8rem; letter-spacing: 0.02em; }
  .header .brand-tag { display: none; }
  .header-row { gap: 8px; }
  .header-actions { gap: 6px; }
  .lang { padding: 6px 10px; }
  .btn-small { padding: 7px 11px; font-size: 0.8rem; }
  .hero-buttons .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .models li { flex-basis: calc((100% - 16px) / 2); }
  .contact-card { padding: 24px 16px; }
}

@media (max-width: 359px) {
  .btn-small { display: none; }
}

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