/* Apple-inspired Invoice Generator Styles */

:root {
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
    --background: #FFFFFF;
    --surface: #F5F5F7;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --border-color: #D2D2D7;
    --success-color: #34C759;
    --error-color: #FF3B30;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.12);
    
    /* Apple-inspired gradient colors */
    --gradient-1: #E3F2FD;
    --gradient-2: #F3E5F5;
    --gradient-3: #FFF3E0;
    --gradient-4: #E8F5E9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Liquid Glass Animated Background - True Fluid Simulation */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, #667eea 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, #f093fb 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, #00f2fe 0%, transparent 40%);
    animation: liquidFloat 20s ease-in-out infinite alternate;
    opacity: 0.65;
    z-index: -1;
    filter: blur(120px);
}

@keyframes liquidFloat {
    0% { 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        transform: translate(-5%, 5%) scale(1.1);
    }
    100% { 
        transform: translate(5%, -5%) scale(1);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), #5856D6, #FF2D55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
}

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

.subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.header-content > div {
    flex: 1;
}

.header-content h1 {
    margin-bottom: 8px;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
}

/* Success Card */
.success-card {
    text-align: center;
    padding: 60px 40px;
}

.success-card h2 {
    color: var(--success-color);
    font-size: 36px;
    margin-bottom: 16px;
}

.success-card p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Card - True Liquid Glass with Refraction Distortion */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(160%) url(#liquid-distortion);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    animation: cardFadeIn 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Proper Specular Highlight - Realistic Glass Light Rolloff */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%
    );
    mix-blend-mode: overlay;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    /* transform removed - handled by JavaScript for 3D rotation */
}

.card:hover::before {
    opacity: 0.75;
}

/* Inner Refraction Edge - Simulates Lens Thickness */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #5856D6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 100px;
}

/* Form */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

label:hover {
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.15);
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(0, 122, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.2);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15),
                0 4px 16px rgba(31, 38, 135, 0.25);
    transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

/* Grid Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Items Section */
.items-container {
    margin-bottom: 24px;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.6);
    /* transform removed - handled by JavaScript for 3D rotation */
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
button,
.btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Button Ripple Effect */
button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before,
.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(0);
}

.btn-primary:hover {
    background: rgba(0, 122, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 122, 255, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2);
    transform: translateY(0);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 122, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.3);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger {
    background: rgba(255, 59, 48, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
    transform: translateY(0);
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
}

.btn-danger:active {
    transform: translateY(0) scale(0.98);
}

.btn-success {
    background: rgba(52, 199, 89, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
    transform: translateY(0);
}

.btn-success:hover {
    background: rgba(52, 199, 89, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.4);
}

.btn-success:active {
    transform: translateY(0) scale(0.98);
}

/* Add Item Button */
.add-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed rgba(0, 122, 255, 0.4);
    color: var(--primary-color);
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-item-btn:hover {
    border-color: rgba(0, 122, 255, 0.8);
    border-style: solid;
    background: rgba(0, 122, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
}

.add-item-btn:active {
    transform: translateY(0) scale(0.98);
}

.add-item-btn span {
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.add-item-btn:hover span {
    transform: rotate(90deg);
}

/* Status Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert.show {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(52, 199, 89, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--success-color);
    border: 1.5px solid rgba(52, 199, 89, 0.4);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.2);
}

.alert-error {
    background: rgba(255, 59, 48, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--error-color);
    border: 1.5px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.2);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Download Section */
.download-section {
    display: none;
    text-align: center;
    padding: 40px;
}

.download-section.show {
    display: block;
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(52, 199, 89, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(52, 199, 89, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPulse 2s ease infinite;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.3);
}

/* Tone down success pulse for subtlety */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(52, 199, 89, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 24px rgba(52, 199, 89, 0.25);
    }
}

.download-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 18px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    animation: fadeIn 1s ease 0.5s both;
}

footer p {
    transition: color 0.3s ease;
}

footer p:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 18px;
    }

    .card {
        padding: 24px;
    }

    .item-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Remove item button in item row */
.remove-item-btn {
    padding: 8px 12px;
    min-width: auto;
}
/* ============================================
   LIQUID GLASS ADVANCED EFFECTS
   ============================================ */

/* Enhanced glass with depth and refraction simulation */
.card,
.item-row,
button,
input,
select,
textarea {
    will-change: transform;
    transform-style: preserve-3d;
}

/* Enhanced depth layers - Only for item-row */
.item-row {
    position: relative;
}

.item-row::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: inherit;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    filter: blur(3px);
}

/* Subtle Frosted edge glow - More refined */
button,
input:focus,
select:focus,
textarea:focus {
    position: relative;
}

button::after,
input:focus::after,
select:focus::after,
textarea:focus::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 122, 255, 0.4),
        rgba(88, 86, 214, 0.4),
        rgba(255, 45, 85, 0.4),
        rgba(0, 122, 255, 0.4)
    );
    background-size: 300% 300%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(6px);
    transition: opacity 0.3s ease;
    animation: glowPulse 6s ease infinite;
}

button:hover::after {
    opacity: 0.3;
}

input:focus::after,
select:focus::after,
textarea:focus::after {
    opacity: 0.25;
}

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

/* Glass reflection effect */
.btn-primary,
.btn-success,
.btn-danger {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-success::before,
.btn-danger::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn-primary:hover::before,
.btn-success:hover::before,
.btn-danger:hover::before {
    left: 100%;
}

/* Frosted glass texture overlay */
.card,
.item-row {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Subtle Liquid morphing on hover - More Apple-like */
.card:hover {
    animation: liquidMorph 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes liquidMorph {
    0%, 100% {
        border-radius: 24px;
    }
    33% {
        border-radius: 26px 22px 24px 22px;
    }
    66% {
        border-radius: 22px 26px 22px 24px;
    }
}

/* Subtle input micro-animation - More Apple-like */
input:hover,
select:hover,
textarea:hover {
    animation: inputPulse 0.3s ease;
}

@keyframes inputPulse {
    0%, 100% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Subtle Chromatic aberration effect on buttons - More refined */
button:active {
    animation: chromaticPress 0.15s ease;
}

@keyframes chromaticPress {
    0%, 100% {
        filter: none;
    }
    50% {
        filter: 
            drop-shadow(1px 0 0 rgba(255, 0, 255, 0.15))
            drop-shadow(-1px 0 0 rgba(0, 255, 255, 0.15));
    }
}

/* Liquid loading state enhancement */
.loading::after {
    background: 
        conic-gradient(
            from 0deg,
            transparent 0deg,
            var(--primary-color) 90deg,
            transparent 180deg
        );
    border-radius: 50%;
}

/* Advanced frosted effect for alerts */
.alert {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Performance Optimization - Remove Excessive will-change */
@media (prefers-reduced-motion: reduce) {
    .card::before,
    button::before,
    .card:hover {
        animation: none;
    }
    
    * {
        will-change: auto !important;
    }
}

/* Apply will-change only to actively animating elements */
.card:hover,
.item-row:hover {
    will-change: transform;
}

button:active {
    will-change: transform;
}

/* High performance mode - reduce blur on lower-end devices */
@media (max-width: 768px) {
    .card,
    .item-row {
        backdrop-filter: blur(15px) saturate(140%);
        -webkit-backdrop-filter: blur(15px) saturate(140%);
    }
    
    input,
    select,
    textarea {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Homepage - Method Selection Cards */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.method-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px) saturate(160%) url(#liquid-distortion);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 60%
    );
    mix-blend-mode: overlay;
    opacity: 0.6;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

.method-icon {
    font-size: 64px;
    margin-bottom: 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.method-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

.method-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    width: 100%;
}

.method-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    text-align: left;
}

.method-button {
    background: rgba(0, 122, 255, 0.85);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 17px;
    margin-top: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.method-card:hover .method-button {
    background: rgba(0, 122, 255, 0.95);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
}

.method-button-secondary {
    background: rgba(150, 150, 150, 0.5);
    box-shadow: 0 4px 16px rgba(100, 100, 100, 0.2);
}

.method-card:hover .method-button-secondary {
    background: rgba(150, 150, 150, 0.6);
}

/* Homepage - Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Automatic Page - Integration List */
.integration-list {
    display: grid;
    gap: 20px;
}

.integration-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.integration-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(8px);
}

.integration-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.integration-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.integration-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .header-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px;
    }
    
    .header-content > div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
