:root {
    --primary: #512BD4;
    --primary-light: #9A88E0;
    --accent-soft: #F7F5FC;
    --off-black: #1f1f1f;
    --muted: #555555;
    --card-border: #EFEFEF;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--off-black);
    font-family: "Noto Sans Arabic", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, .logo-text, .step-number {
    font-family: "Readex Pro", sans-serif;
}

.icon {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

a { color: inherit; text-decoration: none; }

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 20px 24px;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}

.logo .icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--off-black);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--off-black);
    border: 1px solid var(--card-border);
}

.btn-dark {
    background: #000;
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 16px;
}

.btn-dark .btn-dark-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-dark small {
    font-size: 11px;
    font-weight: 400;
    opacity: .85;
}

.btn-dark strong {
    font-size: 15px;
}

/* Hero */
.hero {
    padding: 40px 24px 100px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 20px;
}

.hero p.lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone mockup */
.phone-wrap {
    display: flex;
    justify-content: center;
}

.phone {
    width: 300px;
    background: #fff;
    border: 10px solid var(--off-black);
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(81, 43, 212, 0.18);
    overflow: hidden;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
}

.phone-header .icon { font-size: 20px; color: var(--off-black); }

.phone-title { font-weight: 700; font-size: 15px; }
.phone-subtitle { font-size: 12px; color: var(--muted); }

.phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
}

.phone-row .icon { color: var(--muted); font-size: 18px; }

.phone-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--accent-soft);
}

.phone-fab {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Sections */
section { padding: 88px 24px; }

.section-steps { background: var(--accent-soft); padding: 80px 24px; }

h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
}

.section-lead {
    font-size: 17px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--card-border);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Gigs preview */
.gig-list {
    display: grid;
    gap: 16px;
}

.gig-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 20px;
}

.gig-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gig-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.gig-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }

.gig-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.gig-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

.gig-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
}

/* Cutting plan */
.bars { display: grid; gap: 28px; }

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bar-label .remaining {
    font-weight: 500;
    color: var(--muted);
}

.bar-track {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.bar-seg {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    border-inline-end: 1px solid rgba(255,255,255,.35);
}

.bar-seg:last-child { border-inline-end: none; }

.bar-seg.leftover {
    background: #eee;
    color: var(--muted);
}

/* Instant calculation */
.section-calc { background: var(--accent-soft); }

.calc-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.calc-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.calc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.calc-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 17px;
}

.calc-card-title .icon { color: var(--primary); font-size: 22px; }

.calc-inputs { display: flex; gap: 8px; flex-wrap: wrap; }

.calc-input {
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--muted);
}

.calc-input strong { color: var(--off-black); font-weight: 700; }

.calc-area {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    white-space: nowrap;
}

.calc-diagram {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.calc-pieces {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.calc-piece {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid var(--card-border);
}

.calc-piece span:first-child { color: var(--muted); }
.calc-piece span:last-child { font-weight: 600; }

.calc-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin: 28px 0 0;
}

.calc-note .icon { font-size: 16px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: 40px; }
.cta .section-lead { margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; }

footer {
    padding: 0 24px 40px;
}

footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

footer .footer-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 900px) {
    nav .nav-links { display: none; }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero { padding-bottom: 60px; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero h1 { font-size: 42px; }
    .steps-grid { grid-template-columns: 1fr; }
    h2 { font-size: 28px; }
    .calc-examples { grid-template-columns: 1fr; }
    .calc-pieces { grid-template-columns: 1fr; }
}
