:root {
    --navy: #0f1e3a;
    --navy-deep: #09152a;
    --navy-soft: #1b3155;
    --beige: #DDB39C;
    --beige-dark: #b98266;
    --beige-light: #f1ddd2;
    --cream: #f7f3ef;
    --paper: #fffdfb;
    --white: #ffffff;
    --ink: #13223c;
    --muted: #6f7786;
    --line: #e8ded8;
    --ok: #117a55;
    --danger: #ad2f3b;
    --shadow-sm: 0 10px 30px rgba(9, 21, 42, .07);
    --shadow-lg: 0 24px 70px rgba(9, 21, 42, .14);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
body::selection { color: var(--navy-deep); background: var(--beige); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(840px, calc(100% - 40px)); }

.site-header {
    position: relative;
    z-index: 30;
    padding: 20px 0 0;
    background: radial-gradient(circle at 12% 15%, rgba(221, 179, 156, .15), transparent 28%), linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.header-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
    backdrop-filter: blur(16px);
}
.header-frame::before, .hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .2;
    background-image: linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, .2) 48%, rgba(255, 255, 255, .2) 52%, transparent 54%), linear-gradient(-45deg, transparent 46%, rgba(255, 255, 255, .14) 48%, rgba(255, 255, 255, .14) 52%, transparent 54%);
    background-size: 38px 38px;
}
.header-frame::after {
    position: absolute;
    right: 215px;
    left: 28px;
    bottom: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.nav-wrap {
    position: relative;
    z-index: 1;
    min-height: 88px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex: 0 0 auto; }
.logo-shell {
    width: 64px;
    height: 64px;
    padding: 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}
.brand-logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; line-height: 1.35; }
.brand small { margin-top: 3px; color: var(--beige-light); font-size: 10px; letter-spacing: .03em; }
nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 700; }
nav > a, .link-button { padding: 10px 12px; border-radius: 11px; transition: color .2s ease, background .2s ease, transform .2s ease; }
nav > a:hover, .link-button:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.inline { display: inline; margin: 0; }
.link-button { border: 0; color: var(--beige-light); background: none; font: inherit; cursor: pointer; }
.nav-signup { margin-right: 4px; color: var(--navy-deep) !important; background: var(--beige) !important; box-shadow: 0 9px 22px rgba(221, 179, 156, .2); }
.nav-signup:hover { transform: translateY(-2px); background: var(--beige-light) !important; }

main { min-height: calc(100vh - 230px); background: var(--cream); }
.hero {
    position: relative;
    z-index: 2;
    min-height: 580px;
    padding: 86px 0 130px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 12% 20%, rgba(221, 179, 156, .22), transparent 30%), radial-gradient(circle at 88% 82%, rgba(47, 76, 119, .46), transparent 33%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #162b4e 100%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.hero::before {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -310px;
    bottom: -390px;
    content: "";
    border: 1px solid rgba(221, 179, 156, .32);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(221, 179, 156, .025), 0 0 0 140px rgba(221, 179, 156, .018);
}
.hero-pattern { opacity: .08; background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.hero-edge {
    position: absolute;
    z-index: 1;
    right: 8%;
    bottom: 18px;
    width: 78%;
    height: 42px;
    border-radius: 0 0 26px 26px;
    background: var(--beige);
    transform: rotate(-1.9deg);
    transform-origin: right center;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 70px; align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--beige-dark); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.eyebrow::before { width: 25px; height: 3px; border-radius: 99px; content: ""; background: var(--beige); }
.eyebrow.light { color: var(--beige-light); }
.hero h1 { max-width: 760px; margin: 12px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.3; letter-spacing: -.025em; }
.hero p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .76); font-size: 17px; line-height: 2; }
.hero-actions { margin-top: 31px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-link { padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 700; }

.journey-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 28px; background: rgba(255, 255, 255, .075); box-shadow: 0 26px 70px rgba(0, 0, 0, .18); backdrop-filter: blur(15px); }
.journey-card::after { position: absolute; left: -40px; top: -40px; width: 125px; height: 125px; border: 1px solid rgba(221, 179, 156, .32); border-radius: 50%; content: ""; }
.journey-label { display: block; margin-bottom: 18px; color: var(--beige-light); font-size: 12px; font-weight: 800; }
.journey-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .11); }
.journey-step:last-child { border-bottom: 0; }
.journey-step i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: var(--navy-deep); background: var(--beige); font-size: 11px; font-style: normal; font-weight: 800; }
.journey-step span, .journey-step b, .journey-step small { display: block; }
.journey-step b { font-size: 14px; }
.journey-step small { margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 11px; }

.feature-strip { position: relative; z-index: 5; margin-top: -63px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(15, 30, 58, .07); border-radius: 27px; background: var(--white); box-shadow: var(--shadow-lg); }
.feature-grid > div { position: relative; min-height: 145px; padding: 27px 28px; border-left: 1px solid var(--line); }
.feature-grid > div:last-child { border-left: 0; }
.feature-grid b, .feature-grid small { display: block; }
.feature-grid b { margin: 13px 0 4px; color: var(--navy); font-size: 15px; }
.feature-grid small { color: var(--muted); font-size: 11px; }
.feature-icon, .plan-symbol { display: grid; place-items: center; color: var(--navy-deep); background: linear-gradient(135deg, var(--beige-light), var(--beige)); font-weight: 800; box-shadow: 0 8px 20px rgba(185, 130, 102, .18); }
.feature-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 10px; }

.section { padding: 76px 0; }
.plans-section { position: relative; padding-top: 105px; overflow: hidden; background: radial-gradient(circle at 0 70%, rgba(221, 179, 156, .17), transparent 25%), var(--cream); }
.plans-section::before { position: absolute; top: 90px; left: -210px; width: 430px; height: 430px; border: 1px solid rgba(15, 30, 58, .08); border-radius: 50%; content: ""; box-shadow: 0 0 0 60px rgba(15, 30, 58, .014), 0 0 0 120px rgba(15, 30, 58, .009); }
.section-head, .page-title { position: relative; z-index: 1; margin-bottom: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2, .page-title h1 { margin: 7px 0; color: var(--navy); font-size: clamp(29px, 4vw, 42px); line-height: 1.35; }
.page-title p { margin: 0; color: var(--muted); }

.plans { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; align-items: stretch; }
.plan-card, .panel, .summary, .transfer-account { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.plan-card { position: relative; overflow: hidden; min-height: 100%; padding: 28px; border-radius: var(--radius-lg); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.plan-card::before { position: absolute; top: -155px; right: -145px; width: 360px; height: 260px; border: 1px solid rgba(15, 30, 58, .08); border-radius: 45%; content: ""; box-shadow: 0 0 0 18px rgba(15, 30, 58, .018), 0 0 0 36px rgba(15, 30, 58, .014), 0 0 0 54px rgba(15, 30, 58, .01); transform: rotate(-10deg); }
.plan-card:hover { border-color: rgba(185, 130, 102, .45); box-shadow: 0 25px 65px rgba(9, 21, 42, .12); transform: translateY(-6px); }
.plan-card.featured { border-color: rgba(15, 30, 58, .36); box-shadow: 0 25px 65px rgba(9, 21, 42, .14); }
.plan-card.featured::after { position: absolute; top: 0; right: 28px; left: 28px; height: 5px; border-radius: 0 0 8px 8px; content: ""; background: var(--beige); }
.plan-top { position: relative; z-index: 1; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-symbol { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.plan-top em { padding: 6px 10px; border: 1px solid rgba(221, 179, 156, .6); border-radius: 99px; color: var(--beige-dark); background: #fff8f4; font-size: 10px; font-style: normal; font-weight: 800; }
.plan-card h3 { position: relative; margin: 18px 0 5px; color: var(--navy); font-size: 25px; }
.plan-card > p { position: relative; min-height: 55px; margin: 0; color: var(--muted); font-size: 12px; }
.plan-card ul { position: relative; margin: 24px 0; padding: 0; list-style: none; }
.plan-card li { padding: 9px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.plan-card li b { color: var(--navy); }
.price-options { position: relative; display: grid; gap: 9px; }
.price-option { min-height: 64px; padding: 11px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; border: 1px solid #ead9cf; border-radius: 16px; background: var(--paper); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.price-option:hover { border-color: var(--beige-dark); background: #fff7f2; transform: translateY(-2px); }
.price-option span { color: var(--navy); font-size: 12px; font-weight: 800; }
.price-option strong { color: var(--navy); font-size: 14px; }
.price-option small { grid-column: 1 / -1; color: var(--beige-dark); font-size: 10px; font-weight: 800; }

.panel { position: relative; padding: 30px; margin-bottom: 24px; overflow: hidden; border-radius: var(--radius-md); }
.panel::before { position: absolute; top: 0; right: 0; width: 125px; height: 4px; border-radius: 0 0 0 8px; content: ""; background: var(--beige); }
.panel h2 { margin-top: 0; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; align-content: start; gap: 8px; margin-bottom: 17px; }
.form-grid > label { margin-bottom: 0; }
label span { color: var(--navy); font-size: 12px; font-weight: 800; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #dcd8d5; border-radius: 13px; padding: 13px 14px; outline: none; color: var(--ink); background: #fffefc; font: inherit; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #cabdb6; }
input:focus, select:focus, textarea:focus { border-color: var(--beige-dark); background: var(--white); box-shadow: 0 0 0 4px rgba(221, 179, 156, .2); }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.btn { min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 13px; color: var(--navy); background: var(--white); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { border-color: var(--navy); color: var(--white); background: var(--navy); box-shadow: 0 10px 25px rgba(15, 30, 58, .16); }
.btn.primary:hover { background: var(--navy-soft); }
.btn.beige { min-width: 154px; border-color: var(--beige); color: var(--navy-deep); background: var(--beige); box-shadow: 0 12px 30px rgba(221, 179, 156, .2); }
.btn.beige:hover { background: var(--beige-light); }
.btn.danger { border-color: #f1c8cd; color: var(--danger); background: #fff1f2; }
.btn.ghost { background: var(--cream); }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.btn.full { width: 100%; margin-bottom: 9px; }
.auth-box { max-width: 540px; }
.center { text-align: center; }

.alert { margin-top: 18px; padding: 14px 18px; border: 1px solid transparent; border-radius: 14px; font-size: 12px; font-weight: 700; }
.alert.success { border-color: #c8eadc; color: var(--ok); background: #e7f7f0; }
.alert.error { border-color: #f1c8cd; color: var(--danger); background: #fff0f1; }
.alert.info { border-color: #d8e5f6; color: #24518f; background: #edf4ff; }
.empty { padding: 45px; border: 1px dashed #d7cbc5; border-radius: 20px; color: var(--muted); background: rgba(255, 255, 255, .58); text-align: center; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary { padding: 22px; border-radius: 18px; }
.summary span, .detail-grid span { display: block; color: var(--muted); font-size: 11px; }
.summary strong { display: block; margin-top: 6px; color: var(--navy); font-size: 17px; }
.transfer-account { margin: 14px 0; padding: 22px; display: grid; gap: 5px; border-right: 5px solid var(--beige); border-radius: 18px; background: var(--paper); }
.transfer-account strong, .transfer-account b { color: var(--navy); }
.transfer-account small { color: var(--muted); }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12px; }
th { color: var(--navy); background: var(--cream); font-size: 11px; }
tbody tr:hover { background: #fffaf7; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-grid b { display: block; margin-top: 4px; color: var(--navy); }

.site-footer { position: relative; overflow: hidden; margin-top: 0; padding: 34px 0; color: rgba(255, 255, 255, .72); background: var(--navy-deep); text-align: center; font-size: 11px; }
.site-footer::before { position: absolute; top: 0; right: 10%; left: 10%; height: 3px; border-radius: 0 0 99px 99px; content: ""; background: var(--beige); }
:focus-visible { outline: 3px solid rgba(221, 179, 156, .65); outline-offset: 3px; }

@media (max-width: 930px) {
    .container, .narrow { width: min(100% - 28px, 760px); }
    .site-header { padding-top: 13px; }
    .header-frame { border-radius: 21px; }
    .nav-wrap { padding: 14px; align-items: flex-start; flex-direction: column; gap: 13px; }
    nav { width: 100%; padding-top: 10px; overflow-x: auto; justify-content: flex-start; border-top: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; scrollbar-width: none; }
    nav::-webkit-scrollbar { display: none; }
    nav > a, .link-button { padding: 8px 10px; }
    .hero { min-height: 0; padding: 62px 0 120px; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .journey-card { max-width: 620px; }
    .feature-strip { margin-top: -42px; }
    .plans { grid-template-columns: 1fr; }
    .plan-card { max-width: 650px; width: 100%; margin-inline: auto; }
}

@media (max-width: 650px) {
    .container, .narrow { width: min(100% - 20px, 540px); }
    .logo-shell { width: 54px; height: 54px; border-radius: 15px; }
    .brand strong { font-size: 17px; }
    .brand small { font-size: 9px; }
    .nav-signup { margin-right: 0; }
    .hero { padding-top: 48px; }
    .hero h1 { font-size: clamp(33px, 10vw, 45px); }
    .hero p { font-size: 14px; }
    .journey-card { padding: 22px; border-radius: 22px; }
    .feature-grid { grid-template-columns: 1fr; border-radius: 21px; }
    .feature-grid > div { min-height: 0; padding: 22px; border-left: 0; border-bottom: 1px solid var(--line); }
    .feature-grid > div:last-child { border-bottom: 0; }
    .section { padding: 54px 0; }
    .plans-section { padding-top: 85px; }
    .plan-card, .panel { padding: 22px; border-radius: 22px; }
    .form-grid, .summary-grid, .detail-grid { grid-template-columns: 1fr; }
    .wide { grid-column: auto; }
    .form-actions .btn { width: 100%; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn, .hero-link { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
