/* ==========================================
   RENFIELD SOFTWARE / SWITCHCRAFT
   Unified Design System
   ========================================== */

:root {
    --primary: #0f172a;
    --primary-light: #334155;
    --primary-dark: #020617;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --accent-hover: #ea580c;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 6px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav:hover { background: var(--accent); }

.product-badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.nav-back {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-right: auto;
}

.nav-back:hover { color: var(--accent); }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-large { font-size: 1.125rem; padding: 18px 36px; }

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: rgba(249, 115, 22, 0.05);
    transform: skewX(-15deg);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
    position: relative;
}

.hero-sm { padding: 100px 0 80px; text-align: center; }
.hero-sm h1 { font-size: 3rem; }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    color: #cbd5e1;
    line-height: 1.5;
    position: relative;
}

.hero .highlight {
    color: var(--accent);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(249, 115, 22, 0.3);
    z-index: -1;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-accent { border-top: 4px solid var(--accent); }

/* Service Cards */
.service-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 12px;
    color: var(--primary);
}

.service-icon { font-size: 2.5rem; margin-bottom: 10px; }

.service-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.team-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    margin-right: 20px;
}

.team-meta h3 { font-size: 1.5rem; margin-bottom: 5px; }

.team-body { padding: 30px; flex-grow: 1; }

.team-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-top: 4px solid var(--accent);
}

.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.benefit-icon { font-size: 2rem; margin-bottom: 15px; }

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.benefit-card p { color: var(--text-light); }

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Stats */
.stats-grid { margin-top: 60px; }

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-item p { color: #cbd5e1; font-size: 1.1rem; }

.stat h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 5px; }
.stat p { color: var(--text-light); font-size: 0.95rem; }

/* Trust Section */
.trust {
    padding: 60px 0;
    background: var(--bg);
    border-bottom: 1px solid #e2e8f0;
}

.trust-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

/* Use Cases */
.use-case-category { margin-bottom: 50px; }

.use-case-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.use-case-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-left: 3px solid var(--accent);
}

.use-case-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.use-case-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step { text-align: center; padding: 20px; }

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary); }
.step p { color: var(--text-light); }

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 40px auto;
}

.vs-card { padding: 40px; border-radius: var(--radius); }

.vs-card.traditional {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
}

.vs-card.switchcraft {
    background: var(--primary);
    color: white;
}

.vs-card h3 { margin-bottom: 20px; font-size: 1.25rem; }

.vs-card ul { list-style: none; }

.vs-card li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.vs-card.traditional li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

.vs-card.switchcraft li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.info-card:hover { transform: translateX(5px); }

.info-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.info-content h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; }

.info-content p, .info-content a {
    color: var(--text-light);
    text-decoration: none;
}

.info-content a:hover { color: var(--accent); }

/* Forms */
.form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Product Teaser */
.product-teaser { padding: 100px 0; }

.teaser-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.teaser-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.teaser-visual {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 40px;
    border: 2px solid #e2e8f0;
    position: relative;
}

.badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: var(--primary);
    color: white;
}

.section-dark .section-header h2 { color: white; }
.section-dark .section-header p { color: var(--text-muted); }

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary); }
.cta-section p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; }

.cta-dark {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-dark h2 { color: white; }
.cta-dark p { color: #cbd5e1; }

.cta-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: rgba(249, 115, 22, 0.1);
    transform: rotate(15deg);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: var(--primary-dark);
    color: var(--text-muted);
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-brand .logo { color: white; margin-bottom: 16px; display: inline-block; }
.footer-brand p { line-height: 1.6; max-width: 300px; }

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-simple {
    text-align: center;
    padding: 40px 0;
}

.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 0.9rem; opacity: 0.8; margin-bottom: 20px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    font-size: 0.875rem;
}

/* Utilities */
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-sm h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .grid-2, .grid-4, .comparison-grid, .footer-grid, .contact-grid, .teaser-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .section { padding: 80px 0; }
}