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

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #059669;
    --accent: #dc2626;
    --text: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-hover: #f1f5f9;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

h4 { 
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

strong {
    font-weight: 600;
    color: var(--text);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    transition: var(--transition);
    border-bottom: none;
}

.logo:hover {
    opacity: 0.8;
    border-bottom: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: none;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle::before {
    top: 10px;
    box-shadow: 0 8px 0 var(--text);
}

.mobile-menu-toggle::after {
    bottom: 10px;
}

.mobile-menu-toggle.active::before {
    top: 15px;
    transform: rotate(45deg);
    box-shadow: none;
}

.mobile-menu-toggle.active::after {
    bottom: 15px;
    transform: rotate(-45deg);
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
    border-bottom-color: transparent;
}

nav a:focus {
    outline: none;
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
    padding: 3rem 1.5rem;
    padding-top: calc(3rem + 80px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h1 {
    color: var(--text);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--primary-light);
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--text);
}

.section {
    margin-bottom: 4rem;
    overflow-x: visible;
    overflow-y: visible;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding-left: 0.5rem;
}

ul li {
    list-style-type: disc;
    list-style-position: outside;
}

ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

.checklist {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.checklist li {
    list-style: none;
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 1rem;
}

.checklist li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin: 2.5rem 0;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.card .table-wrapper {
    margin: 0;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    margin: 0;
    display: table;
}

.section > .table-wrapper {
    margin: 2.5rem 0;
}

.section > table,
.card > table {
    margin: 2.5rem 0;
    display: table;
    width: 100%;
    min-width: 600px;
}

.card > table {
    margin: 1.5rem 0 0 0;
}

table thead {
    background: var(--bg-alt);
}

table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: var(--bg-hover);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Forms */
form {
    max-width: 600px;
    margin: 2.5rem 0;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.6;
}

small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
    border-bottom: none;
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-bottom: none;
}

.btn-secondary {
    background: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.2);
}

.btn-secondary:hover {
    background: var(--text-light);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
    color: white;
}

/* Footer */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 0;
    margin-top: 6rem;
    width: 100%;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.footer-section ul {
    list-style: none !important;
    margin-left: 0;
    padding-left: 0;
}

.footer-section li {
    list-style: none !important;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.footer-section li::before,
.footer-section li::after {
    display: none !important;
    content: none !important;
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.company-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 2px 8px var(--shadow);
}

.company-info h3 {
    margin-top: 0;
    color: var(--text);
}

.company-info p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2rem 0 0.75rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Images */
.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px var(--shadow);
    display: block;
}

.image-text-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2.5rem 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 -4px 16px var(--shadow);
    z-index: 2000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.active {
    display: block;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    padding: 2rem 1rem;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.active {
    display: block;
    opacity: 1;
}

.cookie-modal-content {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
    transform: translateY(0);
}

.cookie-setting {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.cookie-setting:last-child {
    border-bottom: none;
}

.cookie-setting-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cookie-setting-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Utility */
.text-center {
    text-align: center;
}

.disclaimer {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px var(--shadow);
}

.disclaimer strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
    }
    
    .cookie-banner-buttons {
        flex-shrink: 0;
    }
    
    .image-text-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .header-main {
        flex: 1;
    }
    
    .header-main nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg);
        border-left: 1px solid var(--border);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -4px 0 16px var(--shadow);
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        visibility: visible;
        opacity: 1;
    }
    
    #nav-menu.active {
        right: 0;
        display: flex !important;
        visibility: visible;
        opacity: 1;
    }
    
    #nav-menu a {
        display: block;
        padding: 1.25rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
        border-bottom-color: var(--border);
    }
    
    #nav-menu a:last-child {
        border-bottom: none;
    }
    
    #nav-menu a::after {
        display: none;
    }
    
    #nav-menu a.active {
        color: var(--primary);
        font-weight: 600;
    }
    
    .card {
        padding: 1.75rem;
    }
    
    .section > table,
    .card > table {
        margin: 0;
        display: table;
        width: 100%;
        min-width: 500px;
    }
    
    table {
        min-width: 500px;
    }
    
    .table-wrapper {
        margin: 2.5rem 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    main {
        padding: 2rem 1rem;
        padding-top: calc(2rem + 80px);
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .card {
        padding: 1.75rem;
    }
}
