/* Google-inspired Design System */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --shadow-hover: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.content-box {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.content-box p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.calculator-form {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calculator-result {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calculator-result h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    box-shadow: var(--shadow);
}

.result-container {
    min-height: 200px;
}

.result-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

.result-item {
    padding: 16px;
    margin-bottom: 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.result-item-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.result-item-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.result-total {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
}

.result-total-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-total-value {
    font-size: 36px;
    font-weight: 500;
}

/* License Cards */
.license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.license-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.license-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.license-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.license-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.license-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.license-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.license-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.license-price {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.license-sku {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* EULA Content */
.eula-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eula-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.eula-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.eula-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 8px;
    max-width: 600px;
}

.contact-box h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.contact-box p {
    font-size: 16px;
    margin-bottom: 12px;
}

.contact-box a {
    color: white;
    text-decoration: underline;
}

.contact-box a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .license-cards {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .section {
        padding: 48px 0;
    }
}
