/* Sun City / SWEAi marketing — aligned to Sun City Systems brand book (Feb 2024) */

/* Brand typography: Rubik for headlines, Exo for body */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&family=Exo:wght@400;500;600;700&display=swap');

:root {
    /* Sun City Systems primary palette */
    --brand-eggplant: #2e2138;   /* primary dark — CMYK 79 84 48 56 */
    --brand-orange:   #f7941c;   /* primary accent — CMYK 0 49 100 0 */

    /* Sun City Systems secondary palette */
    --brand-purple:   #4d456e;
    --brand-blue:     #406996;
    --brand-dark-orange: #de7326;

    /* Dark-theme surfaces (eggplant-tinted, not pure navy) */
    --bg:    #1a1421;         /* very dark eggplant */
    --bg-2:  #241a2e;         /* elevated surface */
    --border: #3a2e48;        /* muted eggplant border */

    /* Text */
    --text:   #f5efe9;        /* warm white */
    --muted:  #a79cb0;
    --muted-2: #5f5568;

    /* Semantic */
    --accent:   var(--brand-orange);
    --accent-2: var(--brand-dark-orange);
    --link:     #9bb8d6;       /* derived from brand blue, lightened */
    --green:    #00dd66;
    --green-bg: #00dd6611;
    --red:      #ff4455;

    --card-radius: 10px;
    --max-w: 1100px;

    --font-head: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigation --- */
nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(26, 20, 33, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
nav .logo {
    font-family: var(--font-head);
    font-weight: 800; font-size: 22px;
    color: var(--text); letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
nav .logo img { height: 36px; width: auto; display: block; }
nav .logo span { color: var(--accent); }
nav .nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
nav .nav-links a { color: var(--muted); }
nav .nav-links a:hover { color: var(--text); text-decoration: none; }
nav .cta-small {
    background: var(--accent); color: var(--bg); padding: 8px 16px;
    border-radius: 6px; font-weight: 700; font-size: 13px;
    font-family: var(--font-head);
}
nav .cta-small:hover { background: var(--accent-2); text-decoration: none; color: var(--bg); }
@media (max-width: 720px) { nav .nav-links { display: none; } }

/* --- Hero --- */
.hero {
    padding: 72px 0 56px;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(247, 148, 28, 0.12), transparent 65%);
}
.hero h1 {
    font-size: clamp(34px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--accent); }
.hero .sub {
    font-size: clamp(16px, 1.7vw, 20px);
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 32px;
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-head);
    transition: transform .15s, background .15s;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta.primary { background: var(--accent); color: var(--bg); }
.cta.primary:hover { background: var(--accent-2); color: var(--bg); }
.cta.secondary { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); }
.cta.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- Sections --- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
section h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.15;
}
section .lead { font-size: 17px; color: var(--muted); margin-bottom: 32px; max-width: 720px; }

/* --- Grid --- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* --- Card --- */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
    transition: border-color .15s;
}
.card:hover { border-color: var(--brand-purple); }
.card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}
.card h3 .num {
    display: inline-block; width: 28px; height: 28px; line-height: 28px;
    background: var(--accent); color: var(--bg); border-radius: 50%;
    text-align: center; margin-right: 10px; font-weight: 800;
    font-size: 14px;
    font-family: var(--font-head);
}
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card .icon {
    font-size: 28px; display: inline-block; margin-bottom: 12px;
    opacity: 0.9;
}

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
}
.stat .num {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}
.stat .label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* --- Feature list --- */
ul.feature-list { list-style: none; padding: 0; }
ul.feature-list li {
    padding: 12px 0 12px 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--muted);
    font-size: 15px;
}
ul.feature-list li:last-child { border-bottom: none; }
ul.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
ul.feature-list li b { color: var(--text); font-weight: 600; }

/* --- Pricing / tiers --- */
.tier {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
}
.tier.featured { border-color: var(--accent); position: relative; }
.tier.featured:before {
    content: "Recommended";
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--bg);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 12px;
    letter-spacing: 1px;
    font-family: var(--font-head);
}
.tier h3 { font-size: 20px; margin-bottom: 4px; font-weight: 700; }
.tier .price {
    font-family: var(--font-head);
    font-size: 40px; font-weight: 800;
    color: var(--accent); margin: 8px 0;
}
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier p.sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.tier ul { list-style: none; text-align: left; margin-bottom: 24px; }
.tier ul li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--muted); }
.tier ul li:before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

/* --- FAQ --- */
details {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    margin-bottom: 12px;
    padding: 18px 20px;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    list-style: none;
    position: relative;
    padding-right: 24px;
    font-family: var(--font-head);
}
details summary::-webkit-details-marker { display: none; }
details summary:after {
    content: "+";
    position: absolute; right: 0; top: 0;
    color: var(--accent); font-size: 20px; font-weight: 700;
    transition: transform .15s;
}
details[open] summary:after { content: "−"; }
details p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.7; }

/* --- Form --- */
form.signup { max-width: 520px; margin: 0 auto; }
form.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
form.signup input[type="email"], form.signup input[type="text"], form.signup textarea {
    flex: 1; min-width: 200px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-body);
}
form.signup textarea { min-height: 100px; resize: vertical; width: 100%; margin-top: 8px; }
form.signup input:focus, form.signup textarea:focus {
    outline: none; border-color: var(--accent);
}
form.signup button { cursor: pointer; border: none; }
form.signup button:disabled { opacity: 0.5; cursor: not-allowed; }
.form-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 12px; }

/* --- Code / mono --- */
.mono {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    background: rgba(247, 148, 28, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .logo img { height: 28px; width: auto; vertical-align: middle; }
footer .legal { max-width: 820px; font-size: 11px; margin-top: 24px; opacity: 0.75; line-height: 1.5; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(247, 148, 28, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

/* --- Purple accent block --- */
.accent-block {
    background: linear-gradient(135deg, var(--brand-eggplant), var(--brand-purple));
    border-radius: var(--card-radius);
    padding: 32px;
    color: var(--text);
    margin: 24px 0;
}
