/* Color Palette Variables */
:root {
    --bg-main: #0a0616;         /* Deep spiritual velvet-black */
    --bg-card: #150f2b;         /* Rich cosmic indigo */
    --text-main: #f3efff;       /* Highly legible crystal white */
    --text-muted: #a69cb8;      /* Soft lavender gray */
    --electric-teal: #00f2fe;   /* Accent color for highlights/buttons */
    --energy-gradient: linear-gradient(135deg, #6b11ff 0%, #d500f9 100%); /* Neon violet to magenta */
    --border-color: #2a1e4d;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: rgba(21, 15, 43, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    background: var(--energy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Typography elements */
main {
    padding: 3rem 0;
}

section {
    padding: 2.5rem 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* Concepts Table Layout */
.table-container {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    text-align: left;
}

th, td {
    padding: 1.2rem;
}

th {
    background-color: #1e153b;
    color: var(--electric-teal);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

tr {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child {
    border-bottom: none;
}

td strong {
    color: #ffffff;
}

/* Philosophy & Blockquote Callouts */
.philosophy-box {
    background: linear-gradient(145deg, #181033, #0f0a24);
    border-left: 4px solid #6b11ff;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
}

blockquote {
    background: rgba(213, 0, 249, 0.05);
    border-left: 4px solid #d500f9;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
    font-style: italic;
    color: #e3deff;
}

/* Integration Grid Cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #6b11ff;
}

.step-card.highlight {
    background: linear-gradient(145deg, #221344, #150f2b);
    border: 1px solid #d500f9;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.15);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--energy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interactive Forms */
.connection-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 700px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e3deff;
}

input[type="text"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #0d081f;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--electric-teal);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

input[type="file"] {
    padding: 0.6rem;
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 2rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--electric-teal);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* Action Button */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--energy-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(107, 17, 255, 0.3);
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

/* Footer Layout */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 5rem;
    background-color: #06040e;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}