:root {
    --color-bg: #F7F7F5;         /* Ivory White */
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;       /* Charcoal Black */
    --color-muted: #9DA3A4;      /* Cool Grey */
    --color-accent: #C9A959;     /* Warm Gold */
    --color-accent-2: #BD9B16;   /* Oro Satinato GZ */
    --color-border: rgba(26, 26, 26, 0.10);
    --color-border-strong: rgba(26, 26, 26, 0.18);
    --color-overlay: rgba(26, 26, 26, 0.72);

    --shadow-sm: 0 8px 24px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 18px 48px rgba(26, 26, 26, 0.10);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container: 1180px;

    --font-heading: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

    --transition: 180ms ease;
}

/* Reset base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), border-color var(--transition);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

small,
.text-small {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* Top bar / Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(26, 26, 26, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

.brand a:hover {
    color: var(--color-accent);
}

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

nav a {
    position: relative;
    color: #F7F7F5;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

nav a:hover {
    color: var(--color-accent);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Main */
main.container {
    padding: 42px 0 72px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(26,26,26,0.92), rgba(26,26,26,0.72)),
        radial-gradient(circle at top right, rgba(201,169,89,0.18), transparent 35%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: clamp(44px, 7vw, 88px);
    box-shadow: var(--shadow-md);
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(201,169,89,0.05) 100%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(201, 169, 89, 0.35);
    border-radius: 999px;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero p {
    max-width: 720px;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: rgba(247, 247, 245, 0.86);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Buttons */
.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn:hover,
button.btn:hover {
    transform: translateY(-1px);
    background: var(--color-accent-2);
    box-shadow: 0 10px 24px rgba(201, 169, 89, 0.20);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
    border-color: rgba(201, 169, 89, 0.45);
    box-shadow: none;
}

.btn-dark {
    background: var(--color-text);
    color: #FFFFFF;
}

.btn-dark:hover {
    background: #000000;
    color: var(--color-accent);
}

/* Sections */
.section {
    padding: 56px 0;
}

.section-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-header p {
    color: #555;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(201,169,89,0.28),
        rgba(201,169,89,0),
        rgba(157,163,164,0.10)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 169, 89, 0.35);
}

.card h2,
.card h3 {
    margin-bottom: 10px;
}

.card h2 a,
.card h3 a {
    color: var(--color-text);
}

.card h2 a:hover,
.card h3 a:hover {
    color: var(--color-accent-2);
}

.card p {
    color: #4e4e4e;
}

.card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(201,169,89,0.22);
    background: rgba(201,169,89,0.08);
    color: #7e6422;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Page intro */
.page-intro {
    margin-bottom: 34px;
}

.page-intro p {
    max-width: 760px;
    color: #555;
}

/* Model detail */
.profile-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.profile-main,
.profile-side {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.profile-list {
    display: grid;
    gap: 14px;
}

.profile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.profile-value {
    color: var(--color-text);
}

/* Forms */
.auth-box,
.form-panel {
    max-width: 520px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--color-text);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(201,169,89,0.65);
    box-shadow: 0 0 0 4px rgba(201,169,89,0.12);
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.alert-error {
    background: #fff2f1;
    border: 1px solid #efc5c0;
    color: #8d2f27;
}

.alert-success {
    background: #eff8f0;
    border: 1px solid #c9dec9;
    color: #275a2b;
}

/* Lists */
ol,
ul {
    padding-left: 1.2rem;
}

ol li,
ul li {
    margin-bottom: 0.55rem;
}

/* Footer */
.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    background: #111111;
    color: rgba(247, 247, 245, 0.80);
}

.site-footer .container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.site-footer a {
    color: #FFFFFF;
}

.site-footer a:hover {
    color: var(--color-accent);
}

/* Utility */
.text-gold {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-muted);
}

.surface {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 960px) {
    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 14px 0;
    }

    nav {
        gap: 14px;
    }

    .profile-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    main.container {
        padding: 26px 0 52px;
    }

    .hero,
    .card,
    .auth-box,
    .form-panel,
    .profile-main,
    .profile-side {
        padding: 22px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    button.btn {
        width: 100%;
    }
}