/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --friendly: #4facfe;
    --devil: #fa709a;
    --tech: #30cfd0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #1e1e1e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333;
    --border: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary);
    font-size: 1.5em;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-links .btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
}

.nav-links .btn-primary:hover {
    background: var(--primary-dark);
    border-bottom-color: transparent;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Status Badge */
.status {
    display: inline-block;
    padding: 8px 20px;
    background: var(--success);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Content */
.content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.content h2 {
    color: var(--primary);
    margin: 40px 0 20px 0;
    font-size: 1.8em;
}

.content h2:first-child {
    margin-top: 0;
}

/* Model Cards */
.models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.model-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.model-card.friendly {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.model-card.devil {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.model-card.tech {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.model-card h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.model-card p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Code Block */
.code-block {
    background: var(--dark);
    color: #d4d4d4;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Endpoints */
.endpoint {
    background: var(--light);
    border-left: 5px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.endpoint h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.endpoint p {
    margin: 10px 0;
}

/* Method Badges */
.method {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.85em;
    color: white;
}

.method.post { background: var(--success); }
.method.get { background: #17a2b8; }
.method.delete { background: var(--danger); }
.method.put { background: #ffc107; }

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.pricing-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 0.4em;
    color: var(--text);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small,
.btn-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--light);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
    margin: 10px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 40px 20px;
    font-size: 1.1em;
}

footer p {
    margin: 5px 0;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.9em;
    }
    
    .models,
    .pricing,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px;
    }
}
