/* ═══════════════════════════════════════════════
   DEPLOY FORGE
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-page: hsl(40, 30%, 97%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-warm: hsl(35, 40%, 95%);
    --bg-soft: hsl(30, 20%, 93%);
    --border: hsl(30, 15%, 88%);
    --border-hover: hsl(30, 20%, 78%);
    --text-0: hsl(220, 20%, 16%);
    --text-1: hsl(220, 10%, 38%);
    --text-2: hsl(220, 8%, 55%);
    --text-3: hsl(220, 6%, 68%);
    --accent: hsl(245, 58%, 56%);
    --accent-light: hsl(245, 58%, 64%);
    --accent-bg: hsl(245, 60%, 96%);
    --teal: hsl(170, 50%, 45%);
    --amber: hsl(38, 92%, 55%);
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 200ms ease;
    --shadow-sm: 0 1px 3px hsla(220, 20%, 16%, 0.06);
    --shadow-md: 0 4px 16px hsla(220, 20%, 16%, 0.08);
    --shadow-lg: 0 8px 32px hsla(220, 20%, 16%, 0.1);
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    background: var(--bg-page);
    color: var(--text-0);
    min-height: 100vh;
}

/* ─── Hero ─── */

.df-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.df-hero {
    text-align: center;
    margin-bottom: 28px;
}

.df-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid hsl(245, 50%, 88%);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.df-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.df-subtitle {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Workspace ─── */

.df-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    min-height: 550px;
}

/* ─── Form Panel ─── */

.df-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.df-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.df-form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.df-form-group select,
.df-form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-page);
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-0);
    transition: border-color var(--transition);
}

.df-form-group select:focus,
.df-form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ─── Cloud Target Tabs ─── */

.df-target-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.df-target-section>label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.df-target-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.df-target-tab {
    padding: 7px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-page);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-1);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.df-target-tab:hover {
    border-color: var(--border-hover);
    background: var(--accent-bg);
}

.df-target-tab.active {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}

/* ─── Checkboxes ─── */

.df-extras {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.df-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-1);
    cursor: pointer;
}

.df-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ─── Actions ─── */

.df-actions {
    margin-top: 6px;
}

.df-download-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: white;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px hsla(245, 58%, 56%, 0.2);
}

.df-download-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px hsla(245, 58%, 56%, 0.25);
}

.df-hint {
    font-size: 0.68rem;
    color: var(--text-3);
    text-align: center;
    font-style: italic;
}

/* ─── Output Panel ─── */

.df-output {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.df-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-warm);
    overflow-x: auto;
    scrollbar-width: none;
}

.df-tabs::-webkit-scrollbar {
    display: none;
}

.df-tab {
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.df-tab:hover {
    color: var(--text-0);
    background: hsla(30, 20%, 93%, 0.5);
}

.df-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.df-code-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.df-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: hsl(220, 16%, 13%);
}

.df-code-filename {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: hsl(38, 90%, 65%);
}

.df-copy-btn {
    padding: 5px 12px;
    border: 1px solid hsl(220, 10%, 25%);
    border-radius: 5px;
    background: hsl(220, 14%, 18%);
    color: hsl(220, 8%, 75%);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.df-copy-btn:hover {
    background: hsl(220, 14%, 24%);
    border-color: hsl(220, 10%, 35%);
    color: white;
}

.df-code {
    flex: 1;
    margin: 0;
    padding: 16px 20px;
    background: hsl(220, 16%, 13%);
    color: hsl(220, 10%, 85%);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.65;
    overflow: auto;
    white-space: pre;
    min-height: 400px;
    tab-size: 2;
}

/* ─── CTA ─── */

.df-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.df-cta p {
    font-size: 0.88rem;
    color: var(--text-1);
    line-height: 1.5;
}

.df-cta strong {
    color: var(--text-0);
}

.df-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px hsla(245, 58%, 56%, 0.2);
    transition: all var(--transition);
}

.df-cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ─── Toast ─── */

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 20px;
    background: var(--text-0);
    color: white;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
}

.copy-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
    .df-workspace {
        grid-template-columns: 1fr;
    }

    .df-form-panel {
        order: 2;
    }

    .df-output {
        min-height: 400px;
    }

    .df-cta {
        flex-direction: column;
        text-align: center;
    }

    .df-main {
        padding: 24px 16px 40px;
    }

    .df-hero h1 {
        font-size: 1.7rem;
    }
}